Sessions

Get an image

GET /v1/sessions/{session_id}/images/{id}
Permission
read:sessions
Tokens
API key, CLI user token, Session token

Read an image sent with a message to a session. Each message lists the IDs of its images.

Path parameters

session_idstringrequired
idstringrequired
{
"data": str,
"media_type": str
}

Response

datastringrequired

The raw image bytes, base64-encoded. 5 MiB cap.

media_typeenumrequired

The image's MIME type: image/png, image/jpeg, image/gif, or image/webp. The bytes must match.

one ofimage/pngimage/jpegimage/gifimage/webp

On this page

No Headings
Schedule a demo