Get a document type
GET/api/v1/document-types/:key
Retrieves a single document type by ID or, with by=code, by code, in its default representation (every section) or one narrowed by select. Both lookups return the identical representation for the same document type.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 406
- 500
- 503
The document type.
The request is invalid (invalid_request): the body or a parameter failed validation, or the multipart body or a request header is malformed. A body that is not valid JSON uses invalid_json.
The authentication credential is invalid or has expired (unauthorized).
The request has no authentication credential, or the user is not allowed to use the API (forbidden).
The addressed resource does not exist, or no route matches the request method and path (not_found).
The request does not accept any representation the operation can produce (not_acceptable).
An unexpected server error occurred (internal_error).
The service is temporarily unavailable, for example while it restarts (service_unavailable). Retry the request later.