Skip to main content

Endpoint

Authentication

This endpoint requires an OAuth access token. Send it as a bearer token:
Required scope: sor:read

Request

This endpoint takes no path, query, or body parameters. The document types returned are scoped to the organization the access token belongs to.

Request Example

Response

Success Response

Status Code: 200 OK

Response Fields

Document Type Object

Each object in the document_types array contains:

Error Responses

400 Bad Request

Returned when the access token has no user behind it. client_credentials tokens act as the admin who created the application, so this applies only to tokens issued before application creators were recorded.

401 Unauthorized

Returned when the access token is missing, unknown, revoked, or expired, or when an X-API-Key was sent instead of a bearer token. See OAuth error responses.

403 Forbidden

Returned when the token does not carry the required scope.

429 Too Many Requests

Returned when your organization exceeds its per-minute request limit.

500 Internal Server Error

Returned when the document types could not be retrieved due to a server error.

Notes

The result is organization-global and is not filtered per user. A user who may reach only some document types still sees every name here - the token’s user is used only to authenticate and scope-check the request.
Call this endpoint to discover valid document_type_id values before uploading a document. Passing an invalid document_type_id to POST /v2/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