v2
latestOpenAPI 3.1.02026-08-0382170235.8 KBcontext-attachments
Create a context_attachment from a file upload (≤80KB)
Create a context_attachment on the given document via multipart form-data. Use this when the payload exceeds 16 KB; for smaller inline text payloads use the JSON-body variant of this endpoint.
The uploaded file MUST be valid UTF-8 text — extraction injects the raw bytes into the LLM prompt, so non-UTF-8 binaries cannot be decoded.
post/documents/{document_id}/context-attachments/upload
Path parameters
document_idstring uuid required
Response
Attachment created and stored