Upload file to a document
Documents
Upload file to a document
Upload binary file content to an existing document record. The document must be in queued or processing status. On success, the document status changes to available.
POST
Upload file to a document
Upload Format
This endpoint uses binary upload (not JSON:API format). Send the raw file content as the request body.Required Headers
| Header | Format | Example |
|---|---|---|
Content-Disposition | attachment; filename="<name>" | attachment; filename="report.csv" |
Content-Type | MIME type of the file | text/csv |
Example (cURL)
Status Transitions
- Document must be in
queuedorprocessingstatus - After successful upload, status becomes
available - If the document is already
availableorfailed, the upload will be rejected
Authorizations
OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Headers
File name in the format: attachment; filename="report.csv"
Path Parameters
The unique identifier of the document to upload to
Body
application/octet-stream
Raw binary file content
Response
Document uploaded successfully

