API conventions
The Dockt API uses the same HTTP, JSON and resource conventions on every endpoint.
Base URL
Section titled “Base URL”Send requests to https://api.dockt.com. Paths start with /v1, such as POST /v1/assignments or GET /v1/decisions/{decisionId}, and include browser sign-in and GET /v1/auth/me, the Account’s credits, users, API credentials and connection management. Removed Workspace and Assessment routes return 404.
The API accepts and returns JSON. Document uploads use multipart/form-data. Errors use application/problem+json.
Authentication
Section titled “Authentication”Send an API key or M2M access token with every request:
Authorization: Bearer YOUR_TOKENEvery request acts in the credential’s Account. No header or field selects another one.
API areas
Section titled “API areas”| Area | Endpoints |
|---|---|
| Authentication | /v1/auth/me, and browser sign-in under /v1/auth/login, /v1/auth/signup, /v1/auth/callback and /v1/auth/logout |
| Account | /v1/account, /v1/account/users, /v1/account/invitations, /v1/api-credentials, and /v1/account and /v1/account/credits |
| Catalogues | /v1/compliance-packages, /v1/document-types, /v1/qualifications, /v1/attribute-definitions |
| Policies and sites | /v1/policies, /v1/policy-versions, /v1/workplaces |
| Subjects | /v1/persons, /v1/companies |
| Work | /v1/assignments, /v1/engagements |
| Evidence | /v1/persons/{personId}/documents, /v1/companies/{companyId}/documents, /v1/documents, /v1/registry-checks |
| Results | /v1/decisions, /v1/outcomes, /v1/corrections |
| Events | /v1/notification-destinations |
| Connections | /v1/account/connectors and /v1/account/connections to manage Connections, and /v1/source-bindings, /v1/source-workers and /v1/source-intakes |
| Usage | /v1/usage |
Response envelopes
Section titled “Response envelopes”A single resource uses an object: "single" envelope:
{ "object": "single", "data": { "object": "assignment", "id": "asg_6Pw3" }}A collection uses an object: "list" envelope:
{ "object": "list", "data": [], "has_more": false, "next_cursor": null}Top-level resources have an object field naming their kind. Nested references can contain only an ID and reference fields. The resource examples in this section are shortened to show the envelope. Field names use snake_case.
Create and update by reference
Section titled “Create and update by reference”Persons, Companies, Workplaces, and Assignments support upsert: create a record if the reference is new, or update the matching record if it exists. For those collections:
| Call | Effect |
|---|---|
POST /v1/{collection} without external_ref |
Creates a record. 201 Created. |
POST /v1/{collection} with external_ref |
Creates the record (201) or updates the one with that reference (200). |
PATCH /v1/{collection}/{id} |
Updates fields of an existing record. |
GET /v1/{collection}?external_ref=…&namespace=… |
Finds a record by your reference. Without namespace, in any namespace. |
Companies also match by registration number. Engagements match by Workplace, Company, and contracted_by; creating an existing Engagement widens its period. Document uploads behave differently: an existing file or external_ref returns the Document unchanged. Other collections, such as Policies, do not support upsert by external_ref.
References
Section titled “References”Wherever a request names a Person, Company or Workplace, send a reference object with Dockt’s id or your external_ref. For example, use a Dockt ID:
{ "id": "per_7Hq2" }Or use your own reference:
{ "external_ref": "worker-4821", "namespace": "hr-system" }namespace defaults to api. Responses return references in full, with id, external_ref and namespace.
Resource identifiers
Section titled “Resource identifiers”Dockt IDs are opaque, case-sensitive strings with a prefix for their kind, such as per_ for a Person or dec_ for a Decision. Don’t derive meaning or access from a prefix.
Dates and times
Section titled “Dates and times”- Timestamps are ISO 8601 strings in UTC, such as
2026-11-03T08:00:00Z. - Dates are
YYYY-MM-DD, such as2026-11-03. Work periods andevaluated_forare dates at the Workplace, in its timezone.
Request correlation
Section titled “Request correlation”Dockt returns:
x-request-id: the request identifier to log and include in support requests.traceparent: distributed trace context you can propagate.
Dockt accepts an incoming traceparent header. Never put personal data or secrets in tracing attributes.
Status codes
Section titled “Status codes”Common successful responses:
200 OKfor reads, updates, and creates that matched an existing record.201 Createdwhen a record is created.202 Acceptedwhen Dockt accepted asynchronous work, such as a document upload, a source sync, or a test event.204 No Contentfor deletes and erasure. Withdrawing a Document and unbinding a source site return the record with200 OK.
Common error responses:
400 Bad Requestfor malformed input, an invalid upload, or an invalid cursor.401 Unauthorizedfor missing or invalid authentication.403 Forbiddenfor a missing permission.404 Not Foundwhen the resource isn’t in your Account.409 Conflictfor state, reference or idempotency conflicts.410 Gonefor a document file that retention deleted.422 Unprocessable Contentfor validation failures, invalid references, unknown attributes and invalid Policies.429 Too Many Requestswhen a rate limit is exceeded.500 Internal Server Errorfor an unexpected Dockt failure.503 Service Unavailablewhen billing data is temporarily unavailable.
OpenAPI contract
Section titled “OpenAPI contract”Use OpenAPI JSON for exact operations, parameters, request and response schemas and enums. The API reference is generated from the same document. The requests Dockt sends to your webhook endpoint are described in Webhook events and delivery.
Review API compatibility and updates before you replace generated client types.