v4

OpenAPI 3.1.02026-08-01166346466.7 KB
responses

Upload a response attachment

Upload an attachment for use as response input.

The returned ID is referenced from input_image or input_file content parts of a user message. An attachment becomes part of its conversation when the referencing response is stored and is deleted with the conversation; attachments never referenced by a stored response expire.

post/v1/responses/attachments

Response

The staged attachment, referenced from response input via its ID

idstring required
object'response.attachment'
filenamestring nullable
mime_typestring required
size_bytesinteger required
created_atinteger required
urlstring nullable

Short-lived presigned URL for downloading the attachment