Stream a chat image attachment
GET
/api/workspaces/{workspaceId}/chat-images/{attachmentId}
const url = 'http://localhost:8080/api/workspaces/example/chat-images/example';const options = {method: 'GET', headers: {cookie: 'auth_session=<auth_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url http://localhost:8080/api/workspaces/example/chat-images/example \ --cookie auth_session=<auth_session>Streams a chat image attachment from object storage. Private to the chat creator.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
attachmentId
required
string
Responses
Section titled “Responses”Attachment bytes.
Media typeapplication/octet-stream
string format: binary
Not modified (matched If-None-Match).
Invalid request
Media typeapplication/json
object
success
boolean
error
string
Example
{ "error": "Error message"}Internal server error
Media typeapplication/json
object
success
boolean
error
string
Example
{ "error": "Error message"}