Endpoint
Authentication
This endpoint requires authentication via API key. Include your API key in theX-API-Key header:
Request Body
The request body must be a JSON object with the following fields:Required Fields
Optional Fields
Attribute Object
Each object in theattributes array contains:
Document Field Override Object
Each object in thefield_overrides array sets a pre-filled value for a specific org field, overriding the value Chamelio’s AI extraction would produce:
Request Example
Response
Success Response
Status Code:200 OK
Response Fields
Error Responses
401 Unauthorized
Returned when authentication fails. See the authentication errors section for details.400 Bad Request
Returned whendocument_type_id is not a valid document type for your organization. Use GET /core/document-types to retrieve valid values.
422 Validation Error
Returned when the request body is invalid or missing required fields.500 Internal Server Error
Returned when the document upload fails due to a server error.Notes
Documents are processed asynchronously. After a successful upload, the document will be queued for processing. Processing time varies depending on document size and complexity.
Use Cases
This endpoint is useful for:- Automated document ingestion - Integrate document uploads into your existing workflows
- Bulk document processing - Upload multiple documents programmatically
- System integration - Connect your document management system with Chamelio
- Custom metadata - Attach structured metadata to documents during upload for better organization and searchability