Skip to content

Error reference

When a request fails, Dockt returns a JSON response that describes the error and identifies its type. Responses use the Problem Details standard with Content-Type: application/problem+json.

An error response contains these fields:

{
"type": "https://docs.dockt.com/errors/attribute-unknown",
"title": "Invalid attributes",
"status": 422,
"detail": "Some attributes are not in the catalogue, belong to another record, or have an invalid value.",
"instance": "req_example1042",
"errors": {
"issues": [
{
"path": ["person.attributes", "person.nationality"],
"message": "Expected a two-letter country code."
}
]
}
}

Use type as the stable machine-readable error code. Use detail and the optional errors.issues to explain the specific failure; path locates the field. instance is the Dockt request ID when available.

Don’t branch application logic on title or detail. They are written for people and can become more specific.

A 401 response includes WWW-Authenticate. A 429 response includes Retry-After in seconds. Every response includes x-request-id; log it and include it when you contact hello@dockt.com.

Error type Typical status Action
Account required 409 Select one of the user’s Accounts for the browser session.
Account user conflict 409 Keep an active owner, or resolve the user state.
Attribute unknown 422 Send catalogue codes on the record they belong to.
Authentication state error 500 Retry authentication and keep the request ID.
Billing setup pending 503 Show the balance as unavailable until billing is set up.
Billing unavailable 503 Retry later and show the data as unavailable.
Conflict 409 Resolve the duplicate or conflicting state.
Document not reprocessable 409 Wait for processing to finish, or reprocess the file the part was split from.
Dry run reference missing 422 Create the records before the dry run.
File deleted 410 The original file is gone; the Document remains.
Forbidden 403 Use a credential with the needed permission.
Forbidden scope 403 Switch the session only to an available Account.
Idempotency conflict 409 Retry the same request unchanged, or use a new key for new work.
Internal error 500 Retry safely and keep the request ID.
Invalid account user 400 Don’t invite someone who already has access.
Invalid API credential 400 or 401 Correct credential input or authentication.
Invalid billing query 400 Correct the cursor or limit.
Invalid connection 409 or 422 Resolve the Connection state or correct its input.
Invalid document upload 400 Send one supported, non-empty file within the size limit.
Invalid reference 422 Refer to a record in your Account that fits the relationship.
Invalid reference object 422 Use id or external_ref, with details only next to external_ref.
Invalid request 400 or 422 Correct the syntax, value or cursor.
Invalid session scope 409 Select the session’s Account again.
Missing authentication 401 Send a valid bearer token or browser session.
Not found 404 Check the ID and your Account.
Operation unavailable Varies Use a documented operation.
Policy in use 409 Move its Workplaces and delete the Policies built on it first.
Policy invalid 422 Fix every failing item, then activate again.
Policy version not editable 409 Copy the version into a new draft.
Rate limit exceeded 429 Wait for Retry-After before retrying.
Reference conflict 409 Resolve references that identify different records or contracting relationships.
Reference not found 404 Refer to a record that exists.
Session changed 401 Refresh the browser session before retrying.
Validation failed 422 Correct every structured validation issue.