DocuTray
API ReferenceDocument types

getDocumentType

Get a document type by ID

GET/api/document-types/{id}

Retrieve the full definition of a single document type by its ID, including its JSON Schema, prompt hints, and conversion settings.

Use this endpoint to inspect how a document type extracts data, or to export a type's configuration so you can recreate it elsewhere with POST /api/document-types or update it with PUT /api/document-types/{id}.

Access rules — the API key's user can read a document type when any of these hold:

  • The type is public and published (isPublic: true, status: PUBLISHED).
  • The user created the type.
  • The user is a member of the organization that owns the type.

If none apply, the endpoint responds with 404 (the existence of private types is never disclosed). Only public, reusable fields are returned — internal metadata such as the owning organization or creator is omitted.

Authorization

ApiKeyAuth
AuthorizationBearer <token>

Bearer token for API authentication

In: header

Path Parameters

id*string

Document type ID

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json