Skip to content

API conventions

The Dockt API uses the same HTTP, JSON and resource conventions on every endpoint.

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.

Send an API key or M2M access token with every request:

Authorization: Bearer YOUR_TOKEN

Every request acts in the credential’s Account. No header or field selects another one.

Authenticate your backend

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

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.

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.

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.

Refer to a record

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.

Resource IDs

  • Timestamps are ISO 8601 strings in UTC, such as 2026-11-03T08:00:00Z.
  • Dates are YYYY-MM-DD, such as 2026-11-03. Work periods and evaluated_for are dates at the Workplace, in its timezone.

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.

Common successful responses:

  • 200 OK for reads, updates, and creates that matched an existing record.
  • 201 Created when a record is created.
  • 202 Accepted when Dockt accepted asynchronous work, such as a document upload, a source sync, or a test event.
  • 204 No Content for deletes and erasure. Withdrawing a Document and unbinding a source site return the record with 200 OK.

Common error responses:

  • 400 Bad Request for malformed input, an invalid upload, or an invalid cursor.
  • 401 Unauthorized for missing or invalid authentication.
  • 403 Forbidden for a missing permission.
  • 404 Not Found when the resource isn’t in your Account.
  • 409 Conflict for state, reference or idempotency conflicts.
  • 410 Gone for a document file that retention deleted.
  • 422 Unprocessable Content for validation failures, invalid references, unknown attributes and invalid Policies.
  • 429 Too Many Requests when a rate limit is exceeded.
  • 500 Internal Server Error for an unexpected Dockt failure.
  • 503 Service Unavailable when billing data is temporarily unavailable.

Handle errors

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.