API conventions
The Dockt API uses consistent HTTP, JSON, and resource conventions across /v1.
Base URL
Section titled “Base URL”Send production requests to https://api.dockt.com. Product routes begin with /v1.
The API accepts and returns JSON for structured requests. Document uploads use multipart/form-data. Error responses use application/problem+json.
Choose the relevant API area
Section titled “Choose the relevant API area”A backend verification integration normally uses:
Authto inspect its authenticated Workspace and permissions.FeaturesandCompliancePackagesto read Workspace configuration.Documents,Assessments, andDecisionsfor verification workflows.Webhooksfor asynchronous completion events.
The API reference also includes browser-session, Account, Workspace, account-user, and API-credential administration. You don’t need those operations when your backend already has a workspace credential. Plan your backend integration provides a workflow-oriented endpoint map.
Authentication
Section titled “Authentication”Send an API key or M2M access token with every protected request:
Authorization: Bearer YOUR_TOKENResponse envelopes
Section titled “Response envelopes”A single resource uses an object: "single" envelope:
{ "object": "single", "data": { "object": "document", "id": "doc_example" }}A collection uses an object: "list" envelope:
{ "object": "list", "data": [], "has_more": false, "next_cursor": null}Deletion operations return a single envelope whose resource includes deleted: true.
Resource identifiers
Section titled “Resource identifiers”Dockt IDs are opaque strings with a resource prefix. Common prefixes include:
acc_for Accounts.wsp_for Workspaces.feat_for Features.ast_for Assessments.doc_for Documents.dec_for Decisions.cred_for API credentials.whk_for webhook endpoints.evt_for webhook events.
Treat IDs as case-sensitive opaque values. Don’t derive authorization or business state from a prefix.
Dates and times
Section titled “Dates and times”Date-time fields use ISO 8601 strings with a time-zone offset, such as 2026-08-06T09:30:00Z.
Calendar-date fields use YYYY-MM-DD, such as 1990-05-17. Don’t apply a time zone to calendar dates.
Request correlation
Section titled “Request correlation”Dockt returns these headers:
x-request-id: the request identifier to include in logs and support requests.traceparent: distributed trace context you can propagate according to your tracing setup.
Dockt accepts an incoming traceparent header. Never place personal data or secrets in tracing attributes.
Status codes
Section titled “Status codes”Common successful responses are:
200 OKfor reads, updates, deletions, and accepted invitation resends.201 Createdwhen a resource or Outcome is created synchronously.202 Acceptedwhen asynchronous Document processing or webhook test delivery is accepted.
Common error responses are:
400 Bad Requestfor malformed input or an invalid cursor.401 Unauthorizedfor missing or invalid authentication.403 Forbiddenfor an incompatible scope or missing permission.404 Not Foundwhen the resource isn’t available in the authenticated scope.409 Conflictfor state or idempotency conflicts.422 Unprocessable Contentfor structured validation or invalid references.429 Too Many Requestswhen a rate limit is exceeded.500 Internal Server Errorfor an unexpected Dockt failure.
OpenAPI contract
Section titled “OpenAPI contract”Use OpenAPI JSON for exact operation, parameter, request, response, enum, and permission definitions. The interactive API reference is generated from the same document.
Review API compatibility and updates before replacing generated client types.