Overview
Every versioned Platform API error returns a structured envelope: a stable code, HTTP status, headline message, and a data object carrying id, why, fix, retryable, and category. JSON-RPC and Server-Sent Events streams use the same registry framed for their transport.
{
"code": "USER_EMAIL_ALREADY_EXISTS",
"status": 409,
"message": "A user with this email already exists.",
"data": {
"id": "DALP-0670",
"why": "Each platform user must have a unique email address.",
"fix": "Use a different email or open the existing user in User management.",
"retryable": false,
"category": "client"
}
}Use this page as the wire-format reference for error fields, module refusals, and contract error metadata. For retry decision trees, backoff policies, domain recovery, and back-office escalation, see Error handling.
Fields to branch on
Never parse message or data.why in control flow because copy can change between releases.
Decide what to do
Branch on data.id, data.retryable, and data.fix:
- Retry: Only when
data.retryableistrue, the blocking condition has cleared, and the route documents replay safety. Read uncertain write state before resubmitting. - Fix the request: When
data.retryableisfalseanddata.fixnames an action you control. Readdata.fixbefore assuming a human cannot retry manually. - Escalate: When neither applies, attaching
data.id, theX-Request-Idheader value, and the affected resource.
data.category is for routing and telemetry, not retry logic: two errors in the same category can differ on data.retryable. See Decide whether to retry for the full decision flow.
Which failures deserve a person
Error responses carry no severity field, while platform logs record each catalogued error at its registry severity (info, warning, error, or fatal). Expected client rejections (such as validation or compliance blocks) log at info so alerts keyed on log severity do not page operators for routine refusals. See Criticality and escalation.
Licensed module refusals
A write to a licensed module switched off by the caller's organisation returns 403 platform.module.DISABLED (DALP-20531, category: "domain", retryable: false) naming data.module. Reads continue working for both sessions and API keys.
{
"code": "platform.module.DISABLED",
"status": 403,
"message": "This module is switched off for your organization",
"data": {
"id": "DALP-20531",
"retryable": false,
"module": "tradingVenue"
}
}The response also includes why, fix and category, and the X-Request-Id header. Do not retry until an organisation owner enables the module in Organisation settings.
Modules disabled at the deployment level return a standard 404 instead. The Canton wallet routes (/api/v2/wallets/*) return 404 while features.canton is off (the release 3.2 default), which the CLI surfaces as FEATURE_NOT_ENABLED. Multi-family routes like GET /api/ return 400 COLLECTION_ if given filter[family]=canton, a Canton filter[network], or X-Network-Id while Canton is off. Token reads such as GET /api/ return 400 ASSET_ if given instrumentAdmin while Canton is off, and GET /api/ returns 422 OPERATION_. Token writes that send instrumentAdmin are refused the same way before any wallet verification: mint, approve, transfer and the holding unlock return 400 ASSET_, and the Canton-only writes (account registration, holding freeze, burner capability revocation, account snapshot and transfer acceptance) return 422 OPERATION_.
Authentication comes before request checks
Authenticated routes validate credentials before parsing path, query, or body fields. Missing or invalid credentials return 401 AUTHENTICATION_ without listing field errors. Only authenticated callers receive 400 REQUEST_ with data.errors.
Request bodies that serve two families
Write routes serving both EVM tokens and Canton instruments (such as POST /api/) inspect instrumentAdmin to select the family. Bodies without it validate against the EVM schema, and bodies with it validate against the Canton schema, so data.errors lists only fields for the chosen family.
While features.canton is off, a Canton body on a write outside the token routes is refused before any wallet verification, and the refusal is not retryable. A Canton token create (POST /api/ with type: "canton") and its creation preflight return 422 OPERATION_ with supported. The Canton feature attach, dividend declaration and dividend claim return 400 ASSET_, and the Canton feature revocations return 422 OPERATION_ with an empty supportedFamilies. Governance proposals, votes, queue operations and executions with instrumentAdmin return 422 OPERATION_ with ["evm"]. Governance configurations, execution capabilities and every airdrop write, which serve only Canton, return it with an empty list. XvP create, approve and execute with instrumentAdmin return 400 REQUEST_, and data.errors says Canton is not enabled. A Canton body on the token compliance module install or uninstall returns 422 OPERATION_ with ["evm"], and PUT /api/ and the attester registry update, which serve only Canton, return it with an empty list. When an approval policy holds one of these writes, the approval gate still asks for wallet verification first, as it does for every held write, and the refusal follows before anything is queued.
Where to look up a code
- DALP error index: complete list of
DALP-####ids, categories, HTTP statuses, and retry flags. - Platform API error reference: REST and workflow errors by domain.
- Smart contract error code reference: on-chain revert reasons for compliance, settlement, and system contracts.
Contract errors carry extra fields
Reverted smart contract calls add dalpCode, reverting function selector, Solidity solidityError, and (when recorded) transactionId. Across gas estimation, broadcast, receipts, bundler failures, and raw reverts, DALP resolves the four-byte selector against the contract error catalogue so identical on-chain reverts return consistent ids and copy.
Compliance reverts carry a reason
Compliance-blocked mints and transfers may include data.args.reason alongside party, sender/recipient, wallet, and module:
Classification is best effort and role-gated: branch on data.id first and treat an absent reason as normal. Transfers disclose classification only when the executing wallet holds System manager, Identity manager, or Verification issuer (mints also admit Supply management). Forced transfers disclose only identity-not-registered or classification- without that role check.
Present errors to a user
Display message as the headline, data.why as the explanation, and data.fix as the recovery step rather than hardcoding text per data.id.
Next steps
- Error handling covers retry policies, funding/custody/indexing failures, and escalation workflows.
- Idempotency and async settlement covers
409 Conflictidempotency responses. - Authentication and API keys covers
DALP-14386andDALP-0036.