Authentication and permissions
Dockt checks who is making each request, which Account they can access, and which permissions they have. A caller is either a signed-in console user or a backend using an API credential.
Backend credentials
Section titled “Backend credentials”Both api_key and m2m credentials use bearer authentication. An API key is the bearer value. An M2M credential exchanges its client ID and one-time client secret at its token_url, then uses the short-lived access token as the bearer value.
Secret material is returned only when a credential is created. Later reads return metadata and, for an API key, an api_key_hint.
| Operation | Call | Permission |
|---|---|---|
| List credentials | GET /v1/api-credentials |
api-credentials:read |
| Create a credential | POST /v1/api-credentials |
api-credentials:manage |
| Rename, change permissions, enable or disable | PATCH /v1/api-credentials/{credentialId} |
api-credentials:manage |
| Delete | DELETE /v1/api-credentials/{credentialId} |
api-credentials:manage |
You can grant, change and delete only credentials whose permissions you hold. Omitting allowed_scopes, or sending an empty list on create, grants account:read and api-credentials:read. You must hold both permissions. Send an explicit list to grant only the permissions your integration needs.
The Account scope
Section titled “The Account scope”A credential acts in the Account it was created in. A browser session acts in the Account the user signed in to. Ordinary data requests cannot select another Account through a header or body field. A browser session can switch Accounts through POST /v1/auth/scope, as described in Browser sessions.
GET /v1/auth/me returns the authentication type, the Account (active_scope), and the permissions:
{ "object": "single", "data": { "object": "auth_context", "auth_type": "api_credential", "api_credential_type": "api_key", "principal_scope_type": "account", "permissions": ["account:read", "account:write"], "active_scope": { "object": "principal_scope", "scope_type": "account", "scope_id": "acc_4Np8", "account_id": "acc_4Np8", "name": "Example Construction", "role": null, "status": "active" }, "available_scopes": [], "actor": null, "onboarding_required": false, "updated_at": "2026-11-02T09:00:00Z" }}Browser sessions
Section titled “Browser sessions”The Dockt console and other browser clients sign users in with:
| Call | Does |
|---|---|
GET /v1/auth/login |
Returns the URL that starts sign-in. |
GET /v1/auth/signup |
Returns the URL that starts sign-up. |
GET /v1/auth/callback |
Completes sign-in and returns where to go next. |
POST /v1/auth/logout |
Ends the session and returns where to go next. |
GET /v1/auth/me |
Returns the signed-in user under actor, their Account and their permissions. |
A user who belongs to several Accounts sees them under available_scopes, and can switch the session with POST /v1/auth/scope. An API credential can’t switch Accounts.
Backend integrations should use API credentials, not browser sessions.
Permissions
Section titled “Permissions”| Permission | Allows |
|---|---|
account:read |
Read every Account resource: the Account and its credits, users and invitations, catalogues, Policies, Workplaces, Persons, Companies, Assignments, Engagements, Documents, Registry Checks, Decisions, Outcomes, notification destinations, Connections and usage. |
account:write |
Create, change, withdraw and erase those resources, upload documents, record Outcomes, manage notification destinations and Connections, and manage users and invitations. |
api-credentials:read |
List API credentials. |
api-credentials:manage |
Create, update and delete API credentials. |
Reads need account:read and changes need account:write. Listing API credentials needs api-credentials:read; creating, changing and deleting them needs api-credentials:manage.
User roles
Section titled “User roles”| Role | Permissions |
|---|---|
owner |
All four permissions. |
admin |
All four permissions. |
developer |
account:read, api-credentials:read and api-credentials:manage. |
viewer |
account:read. |
The last active owner can’t be removed or demoted.
Authentication failures
Section titled “Authentication failures”A 401 Unauthorized response means the bearer value is missing, invalid, expired or disabled. The response includes WWW-Authenticate.
A 403 Forbidden response means authentication succeeded but the credential or user lacks the permission the operation needs. Check GET /v1/auth/me before you change application logic or credentials.