Endpoint
Authentication
This endpoint requires authentication via API key. Include your API key in theX-API-Key header:
Request
This endpoint takes no path, query, or body parameters. The document types returned are scoped to the organization that owns the API key.Request Example
Response
Success Response
Status Code:200 OK
Response Fields
Document Type Object
Each object in thedocument_types array contains:
Error Responses
401 Unauthorized
Returned when authentication fails. See the authentication errors section for details.500 Internal Server Error
Returned when the document types could not be retrieved due to a server error.Notes
Use Cases
This endpoint is useful for:- Document classification - Look up the document type to assign when uploading a document
- Validation - Confirm a
document_type_idis valid for your organization before uploading - Integration mapping - Map your own document categories to Chamelio’s document types