Overview
An API key authenticates a script, backend service, or other direct integration with the Platform API. Each key belongs to one user and one organisation, carries a read or read-write scope, and can carry an expiry. Create one key per integration with only the access that integration needs.
Send the key in the X-Api-Key header. The platform does not accept API keys as bearer tokens or query parameters.
curl -sS "$DALP_API_URL/api/v2/tokens" \
-H "X-Api-Key: $DALP_API_KEY"Routes marked x- in the OpenAPI specification also accept a valid Console session cookie. When a request sends X-Api-Key, the platform authenticates with the key alone: an invalid key fails even if a valid session cookie is present.
Some routes accept only a signed-in session. An API key on such a route receives DALP-0036 (HTTP 403). Private file routes under /dalp/private/* return 401 to any request that sends X-Api-Key, even when it also carries a valid session cookie, as Files describes. Use a Console session for those calls.
Create a key
Create a key in the Console on API keys (API keys), run dalp login for the browser device-code flow, or call POST /api/ from a signed-in session. Install and set up the command-line tool covers dalp login, which creates a 90-day read-write key for the chosen organisation, or a read key with dalp login --.
The /api/auth/* routes are unversioned, and the key they create authenticates against the versioned /api/v2 Platform API. A request authenticated with an API key cannot create another key, so a backend service gets its keys from the Console, dalp login, or an operator session.
curl -sS -X POST "$DALP_API_URL/api/auth/api-key/create" \
-H "Cookie: $DALP_SESSION_COOKIE" \
-H "Content-Type: application/json" \
-d '{
"name": "treasury-sync",
"expiresIn": 7776000,
"metadata": {
"organizationId": "org_019c4d2e1f007a11",
"scope": "read-write"
},
"walletVerification": {
"verificationType": "PINCODE",
"secretVerificationCode": "482913"
}
}'The create response returns 200 with the full key secret once. Store it immediately, because later reads return metadata only. The example shows part of the response.
{
"id": "key_019c4d2e8a107c34",
"name": "treasury-sync",
"prefix": "sm_dalp_",
"start": "sm_dalp_7kQ2mN",
"key": "sm_dalp_7kQ2mN9vP4xR8tL2wJ6yH3cB5fD1gS0aE9uK4zM7qW3nB8",
"enabled": true,
"expiresAt": "2027-02-17T09:15:00.000Z",
"metadata": {
"organizationId": "org_019c4d2e1f007a11",
"scope": "read-write"
},
"referenceId": "usr_019c4d2e2b9f7d51",
"rateLimitEnabled": false,
"rateLimitMax": 10000,
"rateLimitTimeWindow": 60000,
"requestCount": 0,
"lastRequest": null,
"createdAt": "2026-11-19T09:15:00.000Z",
"updatedAt": "2026-11-19T09:15:00.000Z"
}Request fields
Wallet step-up and server-only fields
An account with an authenticator must send its authenticator code. Sending a PIN or recovery code instead returns 400 WALLET_. A missing proof returns 400 WALLET_, and an account with no wallet factor returns 401 WALLET_.
The account password is never accepted as wallet verification. During the cooling-off period after a wallet security change, creation returns 403 WALLET_ with heldUntil. When the deployment sets enforce2fa, an account without two-factor sign-in receives 403 LOGIN_ unless it signs in only through an identity provider. Every new key emails the account holder.
The platform sets rate-limit, request-budget, permission, and prefix fields itself. Sending rateLimitEnabled, rateLimitMax, rateLimitTimeWindow, remaining, refillAmount, refillInterval, permissions, or prefix returns 400 SERVER_.
Key format
A key is 54 characters: sm_dalp_, a random 6-character label, and a random 40-character secret using ASCII letters and digits. The platform stores a digest of the full key plus the first 14 characters (start, the prefix and label) in clear text. GET /api/ and GET /api/ return start so you can identify a key without exposing its secret.
Scope: read or read-write
Every key carries a scope of read or read-write, and every Platform API route declares whether it reads or writes. A read key can call read routes only. Calling a write route with a read key returns DALP-0036 (SESSION_POLICY_DENIED, HTTP 403) before the handler runs, regardless of HTTP method.
DALP-0036 is not retryable with the same key. Issue a read-write key or update the key's scope as Manage keys describes. A key stays bounded by its creator's organisation roles: raising a key's scope never grants a wider organisation role.
API keys and delegated authority
An API key identifies the caller. Delegated Authority lets an entitled caller act in another participant's context. Send X-Participant to act for that participant when the key's holder has the required authority. The key never grants that authority by itself.
Without X-Participant, an API-key request uses the acting participant selected for its holder in the key's organisation. After you switch the acting participant, requests with the same key pick up the new selection within 30 seconds.
Manage keys
Create and update require a signed-in session. List and read one also accept an API key.
An update that only renames a key or sets enabled to false needs no walletVerification, even during a cooling-off period. Enabling a key or changing its scope, organizationId, or expiry requires walletVerification, enforces the same errors as create, and emails the account holder.
An update without metadata keeps the key's organisation and scope. An update can set a new expiry up to 365 days ahead, or null to remove the expiry. Extend a key before it expires: the platform deletes expired key records as keys are listed, read, created, updated, or deleted.
Delete accepts a signed-in session (for any key the user owns) or an API key naming itself as keyId. An API key that tries to delete another key receives 403 API_. No user can delete another user's key.
Disabling a key is reversible: the record stays and enabling it restores the same secret without redeploying your integration. Deleting is permanent and is the right action once a secret leaks.
The server handling a change drops its cached identity immediately, and every other server refreshes within 30 seconds. A disabled or deleted key fails with DALP-14386 no later than 30 seconds after the change.
Read a key's record before assuming an integration lost its secret. The API returns DALP-14386 whether a key is expired, disabled, unknown, unorganised, has an unknown scope, or belongs to a former member. Check enabled, metadata, and presence in GET /api/ to tell them apart.
Store and rotate a key
Store the secret in a secrets manager or environment variable, never in source control or a shared document. Rotate a key by creating a replacement, updating your integration to send the new key, and deleting the old key once traffic moves over. The platform never rolls a key's secret in place.
What stops a key
A key is a credential of its own, separate from a browser sign-in. Each Platform API server caches a key's resolved identity for up to 30 seconds (35 seconds for a membership change that leaves the key active, such as a role update).
A write submitted with an API key for maker-checker approval runs as the key's holder once approved. If the key is revoked, disabled, expired, or read-only by then, or its holder is banned or no longer in the organisation, the approved write does not run.
API keys on /api/auth routes
An API key is accepted on these nine /api/auth routes only:
GET /api/auth/ get- session GET /api/auth/ organization/ list GET /api/auth/ organization/ get- full- organization GET /api/auth/ organization/ list- members POST /api/auth/ organization/ has- permission GET /api/auth/ api- key/ list GET /api/auth/ api- key/ get POST /api/(for the presenting key only)auth/ api- key/ delete GET /api/auth/ passkey/ list- user- passkeys
On these routes, a key reads only its own organisation. GET /api/ returns that one organisation, and GET /api/ returns only your keys for that organisation. A signed-in session lists all of your organisations and keys.
An API key on any other /api/auth route returns 403 API_, including POST /api/ and routes that require no sign-in. The v2 API reference documents eight of these nine routes and omits GET /api/ because GET /api/ lists the same members.
On get-full-organization, list-members, and has-permission, passing a different organizationId (or organizationSlug on the two GET routes) returns 403 YOU_, even if the holder belongs to it. Omitting the organisation reads the key's organisation.
Error codes
Platform API (/api/v2) errors
Key management (/api/auth) errors
These codes come from the auth layer and carry no DALP-#### id, so match on the code string. Platform API errors carry DALP-#### ids listed on the DALP error index.
Organisation scope
Every key stores its organizationId in metadata. You can create or move a key only for an organisation you belong to. Naming any other organisation returns 400 API_. The platform reads the organisation from the key automatically, so callers do not repeat an organisation id on every request.
Legacy keys
Keys created before the platform enforced organisation metadata, scope checks, or key labels have narrower compatibility behaviour:
Rate limit
Keys created through the Console, dalp login, or POST /api/ are not rate limited. Each record stores a 60-second window of 10,000 requests with rateLimitEnabled set to false. No API call turns the limit on, so bound an integration using scope and expiresIn instead.
Only keys with rate are counted. Read GET /api/ for rateLimitEnabled, rateLimitMax, rateLimitTimeWindow (milliseconds), lastRequest, and requestCount. Budgets belong to each key individually and reset only after a full quiet window with no accepted requests. Requests refused because the key is unknown, disabled, expired, banned or throttled are not counted. A request the key authenticates is counted even when the platform then refuses it, such as a read key on a write route.
When a rate-limited key fills its window, the platform returns HTTP 429 with no Retry-After header:
{
"code": "auth.apikey.THROTTLED",
"status": 429,
"message": "This API key filled its request window",
"data": {
"id": "DALP-12136",
"why": "This key used its full request allowance for the current window, so the platform did not authenticate the request.",
"fix": "Wait for the key's request window to reopen, then send the request again.",
"retryable": true,
"category": "permission"
}
}retryable is true, but not at once: an immediate retry hits the same refusal. Stop sending until lastRequest plus rateLimitTimeWindow has passed, then retry.
API servers count requests in memory and flush counts in batches, so multi-server deployments can admit up to 50 extra requests per additional server before reconciling. A single server enforces the limit exactly. lastRequest trails the actual request by up to about one second.
Next steps
- Pagination covers listing resources once you can authenticate.
- Errors covers the full error envelope and how to branch your integration on it.
- Install and set up the command-line tool covers
dalp login, which creates aread-writekey, or areadkey with--read-only, through a browser device-code flow.