Skip to main content

Endpoint

Authentication

This endpoint requires authentication via API key. Include your API key in the X-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 the document_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

Call this endpoint to discover valid document_type_id values before uploading a document. Passing an invalid document_type_id to POST /core/upload returns a 400 error.

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_id is valid for your organization before uploading
  • Integration mapping - Map your own document categories to Chamelio’s document types