Document types
Lists all document types available to the API client: the builtin catalog (identified by stable keys) and the client's custom document types (identified by uuid). Reference them from template document requirements.
Authorization
bearerAuth Partner API key, sent as Authorization: Bearer <api key>.
In: header
Query Parameters
Maximum number of items to return. Values above 100 are clamped to 100.
1 <= value <= 10050Opaque pagination cursor from the previous page's next_cursor.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/document_types"{ "data": [ { "id": "string", "key": "abgeschlossenheit", "builtin": true, "display_name": "string", "description": "string", "category": "personal", "archived": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } ], "next_cursor": "string"}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}Creates a custom document type for use in template document requirements.
Authorization
bearerAuth Partner API key, sent as Authorization: Bearer <api key>.
In: header
Request Body
application/json
The document type's attributes.
TypeScript Definitions
Use the request body type in TypeScript.
Attributes for a new custom document type.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/document_types" \ -H "Content-Type: application/json" \ -d '{ "display_name": "string" }'{ "id": "string", "key": "abgeschlossenheit", "builtin": true, "display_name": "string", "description": "string", "category": "personal", "archived": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}Returns one document type, builtin or custom.
Authorization
bearerAuth Partner API key, sent as Authorization: Bearer <api key>.
In: header
Path Parameters
The document type's id — a builtin document-type key or a custom uuid.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v1/document_types/string"{ "id": "string", "key": "abgeschlossenheit", "builtin": true, "display_name": "string", "description": "string", "category": "personal", "archived": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}Updates a custom document type. The change is versioned internally: the
id stays stable, templates referencing it resolve the new attributes, and
existing submissions keep their materialized snapshot. Builtin document
types cannot be updated (422 invalid_field).
Authorization
bearerAuth Partner API key, sent as Authorization: Bearer <api key>.
In: header
Path Parameters
The document type's id — a builtin document-type key or a custom uuid.
Request Body
application/json
The attributes to change.
TypeScript Definitions
Use the request body type in TypeScript.
Custom document type changes; omitted fields stay unchanged.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X PATCH "https://example.com/v1/document_types/string" \ -H "Content-Type: application/json" \ -d '{}'{ "id": "string", "key": "abgeschlossenheit", "builtin": true, "display_name": "string", "description": "string", "category": "personal", "archived": true, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}Archives a custom document type: it disappears from listings and can no
longer be added to templates. Templates and submissions already referencing
it keep working. Builtin document types cannot be archived
(422 invalid_field).
Authorization
bearerAuth Partner API key, sent as Authorization: Bearer <api key>.
In: header
Path Parameters
The document type's id — a builtin document-type key or a custom uuid.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/v1/document_types/string"{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}{ "error": { "code": "invalid_field", "message": "external_submission_id must not be empty", "param": "external_submission_id", "request_id": "req_9b2cf1f4-6f6e-4a7e-8f8e-2d5c7a1b0c3d" }}