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
| Field | Type | Description |
|---|---|---|
document_types | array | List of document types available to your organization. Each entry is a Document Type Object |
Document Type Object
Each object in thedocument_types array contains:
| Field | Type | Description |
|---|---|---|
document_type_id | integer or null | Identifier of the document type. Pass this value as document_type_id when uploading a document via POST /core/upload |
name | string | Human-readable name of the document type |
global_type_id | integer or null | Identifier of the global (platform-wide) document type this org-specific type maps to, if any |
org_id | integer | Identifier of the organization the document type belongs to |
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