Files are processed asynchronously and become AI-searchable once ready. The AI can then reference the attachment’s content during chat (e.g., “rewrite section 3 to match the style guide PDF I attached”). Images are queryable via multimodal vision. Poll get_attachment_status to know when ready. Distinct from upload_document_base64: attachments are read-only context for the AI to reference, not the editable working document. Supported formats: .pdf, .docx, .txt, .rtf, .md, .html, .htm. Max 50 MB. Requires session_id.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
JSON request body for base64-encoded file uploads.
Original filename with extension (e.g. 'contract.pdf'). Used for file type detection.
512Base64-encoded file content.
50000000Session ID. Auto-generated if not provided.
256Successful Response