Agent Attachments

Upload attachments

Upload image files to attach to the next agent message. Max 8 files, 20MB each.

post/api/v0/agent/sessions/{session_id}/attachments

Request

Path parameters

session_idstring uuid required

Request body multipart/form-data

filesstring[] required

Response

Successful Response

attachment_idstring uuid required

Public ID of the attachment.

filenamestring required

Original filename.

content_typestring required

MIME type of the stored image, which may differ from the uploaded one: formats the vision models reject (BMP, GIF) are stored as PNG.

size_bytesinteger required

Size of the stored file in bytes.

Changes

No recorded changes to this operation across all 11 revisions of this API.