If you haven’t set up a wallet yet, start with Non-Custodial Wallets first, then return here for the complete signing reference.
The Endorsed Request Model
An endorsed request wraps two things:- An intent — a JSON object describing exactly what you want to do
- One or more signatures — ECDSA P-256 signatures (or WebAuthn assertions) proving that authorized signers approved the intent
- A transaction is checked against the wallet’s policies, including any approval threshold.
- Every other intent is a governance change (to a signer group, a policy, a wallet’s signer groups or policies, or a signed destination). It needs signatures from the governance of the signer group that controls the resource, and at least as many distinct signers as that group’s governance quorum. The quorum is 1 by default. A group can set its own, and with governance enforcement on the default is 2 for a group whose governing group has 3 or more members. See Signer Group Governance.
- You never send private keys — only signatures
- The server cannot fabricate intents — every action has cryptographic proof of authorization
- Multiple signers can co-approve — for a transaction, the
signaturesarray accepts as many entries as the threshold rules in the wallet’s policies require (approval_threshold, oramount_thresholdfor an amount at or above its minimum); for a governance change, as many as the governance quorum requires; at most 100 signatures per request. A request with more is refused with400validation_errorbefore any signature is checked:errors[0].fieldissignatures(codeinvalid_field_value) on a signer group member add, member removal or governance update and on a crypto destination, andendorsement.signatureselsewhere. Some requests are refused at fewer: card settlement enablement above 16 (400invalid_request), and a wallet transaction above 16 on a wallet whose mandate or agent signer checks the signatures (403)
How Signing Works
Every signature follows the same three-step process, regardless of intent type.Step 1: Build the Intent JSON
Create the intent object with the exact fields required for the operation. Field names aresnake_case. Amounts are strings (e.g., "10.5", not 10.5). Omit any optional fields that don’t apply.
Sign the JCS canonicalization of exactly the intent JSON you send, no more and no less. The server rebuilds the intent from what it received and verifies your signature against that, so every field you submit must appear in the bytes you signed, including fields holding a zero. In particular, an
add_policy_rule intent for an amount_threshold rule must carry min_amount in the signed intent even when it is 0; dropping it because the value looks empty produces a signature the server cannot match. The same applies to threshold: a hard-cap rule with threshold: 0 must carry threshold in the signed intent.Step 2: Canonicalize with RFC 8785 (JCS)
RFC 8785 JSON Canonicalization Scheme produces a deterministic byte sequence from any JSON object by sorting keys alphabetically and removing insignificant whitespace. This ensures that your client and Dakota’s policy engine hash identical bytes, regardless of how your language orders JSON keys.Step 3: Hash with SHA-256, Sign with ECDSA P-256
Hash the canonical bytes with SHA-256, then sign the hash using your ECDSA P-256 private key. The signature must be in ASN.1 DER encoding (not rawr || s), then base64-encoded.
This is the flow for
ES256 signers. If your signer is a WebAuthn credential (key_type: WEBAUTHN) — a passkey or hardware authenticator — the signature is a WebAuthn assertion bundle rather than a DER signature over the hash, and the intent is carried as the assertion’s challenge. See WebAuthn & Passkey Signing.Code Examples
Intent Types Reference
Every endorsed request carries one of fourteen intent types. The table below lists all of them with their discriminator value, endpoint, and required fields.enable_card_settlement is signed by the governance of the signer group that the wallet’s customer policy names in signer_group_id (its members, or its governing group’s), at that group’s governance quorum. No approval threshold from the wallet’s policies applies. A key from another signer group attached to the wallet is refused. See Wallet enablement.
The last four intents are not sent as an
intent object. Their endpoints take an ordinary request body plus signatures, and Dakota builds the intent from the path, the body and the X-Idempotency-Key header. You sign the intent Dakota will build, so it must match field for field:idempotency_keyis theX-Idempotency-Keyheader of the request, verbatim. It must be a lowercase UUID; an uppercase one is refused with400, because the signed intent carries the header exactly as sent. Generate the key first, put it in the intent, sign, then send the same value in the header.- For the three signer group intents,
signer_group_versionis the group’s currentversion(read it withGET /signer-groups/{signer_group_id}). It is always in the intent, even when it is0.create_crypto_destinationhas no version. - Numbers stay numbers (
"signer_group_version": 3, not"3").
Send Transaction
Send crypto from a wallet. This is the only intent type without atype discriminator field.
operation.kind field determines which sub-fields are required:
A contract call carries the whole call in
data: the ABI-encoded calldata (function selector and arguments), starting with a lowercase 0x and decoding to 4 to 32768 bytes. to is the contract address. The call moves no funds, so it has no amount or asset_id, and caip2 must be an EVM chain (eip155:<chain id>). method and args are not supported: an intent that carries them is refused with 400.
contract_call_allowlist rule that lists it, and an address_list allow-list on the wallet also denies it unless the allow-list sets deny_contract_calls: false; see Policies — address_list.
Amounts are strings (
"10.5", not 10.5). The caip2 field uses CAIP-2 chain identifiers (e.g., eip155:1 for Ethereum mainnet, eip155:11155111 for Sepolia).Attach Signer Group to Wallet
Detach Signer Group from Wallet
Attach Policy to Wallet
policy_version is optional. Send the policy’s current version (from GET /policies/{policy_id}) so the signatures approve the rules the signers saw: if the policy changes before the request lands, it is refused with 409 stale_policy_version and the policy is not attached. Leave it out and the intent is signed and checked exactly as before. See Signatures can be tied to the policy version.
Detach Policy from Wallet
policy_version is optional here too, and works the same way: a detach signed at an old version is refused with 409 stale_policy_version and the policy stays attached.
Add Policy Rule
Remove Policy Rule
Update Policy Rule
updated_definition is a JSON string, not a nested object. Serialize the definition object to a string before including it in the intent.An update replaces the definition outright, so send a complete one — anything you leave out is gone from the rule. Keys outside the rule type’s schema are rejected. The accepted shapes:approval_threshold:{"threshold": int32 (> 0), "description"?: string}amount_threshold:{"min_amount": int64 (>= 0), "threshold": int32 (>= 0), "asset": {"id"}}. Thethresholdkey is required, even when it is0.0is valid only when the stored rule’s action isdeny.address_list:{"addresses": [string], "match"?: "recipient_only" | "any_involved", "deny_contract_calls"?: bool}. On anallowrule,addressesmay be empty (the rule then blocks every payment, and contract calls and typed-data signatures whiledeny_contract_callsis on),matchmust berecipient_onlyor left out, anddeny_contract_callsdefaults totruewhen left out. On adenyrule,addressesmust not be empty. Because the update replaces the definition, leaving outmatchordeny_contract_callsresets it to the default. See Policies —address_list.
amount_threshold update, asset.id is the only asset field you need to send. The rest of the asset identity — network, contract address, token standard, decimals — describes the asset rather than the rule, and the server restores whatever the stored rule already recorded for that asset.Delete Policy
- With governance enforcement on, the delete is refused with
409andreasonpolicy_attached, and nothing changes.params.wallet_idslists up to 20 of the wallets that still hold the policy andparams.wallet_countgives the total;GET /policies/{policy_id}/walletslists them all. Detach it from each of them first with Detach Policy from Wallet (DELETE /policies/{policy_id}/wallets/{wallet_id}), which needs the wallet’s governance as well as the policy’s (see Who signs). Then send the delete again with a new idempotency key and new signatures: the refusal is kept for the old key. Deleting a policy that no wallet holds works as before, signed by its signer group’s governance at its quorum; too few signatures is403 insufficient_endorsements. If Dakota cannot read whether enforcement is on, it treats the delete as enforced. - With governance enforcement off, the delete also detaches the policy from every wallet that holds it.
With governance enforcement on, a policy whose signer group is one Dakota manages (for payment agents or card settlement) cannot be deleted: the delete is refused while a wallet holds it, and once it is detached no group can sign for it. It stays as an inactive record that governs nothing.
Add Signers to Group
Adds a member to a signer group. Signed by the group’s governance, as it was before the addition: the new key cannot endorse its own addition.new_member_keysis a list holding exactly one key: themember_keyyou send in the body, as registered withPOST /signers. Adding a key that is already a member returns409.signer_group_idis the{signer_group_id}of the path.
POST /signer-groups/{signer_group_id}/signers with header X-Idempotency-Key: 3f1c2b7e-8d4a-4f6e-9b2c-1a7d5e9f0c3b and body:
Remove Signers from Group
Removes one or more members. Signed by the group’s governance.- The key is
group_idhere, notsigner_group_id. members_to_removeholds public keys as the group lists them, in the order you send them in the body. Order matters: the list is not sorted before signing.
POST /signer-groups/{signer_group_id}/signer-removals with header X-Idempotency-Key: 7a0e4c1d-2b3f-4e5a-8c6d-9f0b1a2c3d4e and body:
422 below_threshold: at least one member, enough endorsers for its governance quorum, and enough endorsers for any group it governs. A policy’s approval_threshold does not block a removal; a policy left unmeetable refuses transactions until you add a member.
Update Signer Group Governance
Sets who governs a group and how many of them must agree. Signed by the group’s current governance.- The body replaces the group’s whole governance. A field you leave out is cleared: no
governance_thresholdmeans the default quorum, and nogovernance_signer_group_idmeans the group governs itself. - A field you leave out of the body is also left out of the signed intent, never sent as
null. To clear both settings, sign{"idempotency_key", "signer_group_id", "signer_group_version", "type"}only. governance_thresholdis at least 1 and at most the number of members of the governing group (or the group itself) who can sign governance changes.governance_signer_group_idis another signer group of your team: not the group itself, not a group Dakota manages, and not a group that is itself governed. A group that governs other groups cannot be given a governing group.- The result must leave a quorum someone can meet. Settings that break these rules are refused with
400.
PATCH /signer-groups/{signer_group_id}/governance with header X-Idempotency-Key: c5d6e7f8-0a1b-4c2d-8e3f-4a5b6c7d8e9f and body:
Create Crypto Destination
An optional signed form ofPOST /recipients/{recipient_id}/destinations for a crypto destination. Governance enforcement does not require it: a Full access key can add a crypto destination without signatures, with enforcement on or off. With enforcement on, the signed form lets an Operate API key add a destination that the signer group’s governance approved (see Governance enforcement).
addressis the body’scrypto_address, andrecipient_idis the{recipient_id}of the path.network_idis required when you send signatures, because the signed intent names it.signer_group_idmust be attached to a wallet of the recipient’s customer; otherwise the request is refused with403 insufficient_endorsements. Send it in the body next tosignatures.- The signatures are checked only when the destination is created; they are ignored on an update.
- Each signed approval creates one destination. Use a new
X-Idempotency-Key, and new signatures over it, for every destination; an approval that was already used is refused.
Customers without a wallet. With governance enforcement on, an Operate key can add a crypto destination only with signatures from a signer group attached to one of the recipient’s customer’s wallets. If the customer has no wallet, no signer group can approve the destination, and the request is refused with
403 insufficient_endorsements. Two ways round it:- Add the destination with a Full access key or from the dashboard. Neither needs signatures.
- Create a wallet for the customer first, with one of your existing signer groups (
POST /walletswith the customer’scustomer_idand the group insigner_groups; an Operate key can do this). Then have that group’s governance sign the destination.
Signer Group Governance
A governance change is every intent except a transaction: member changes, governance updates, attaching or detaching signer groups and policies, policy rule changes, card settlement enablement and signed destinations. Each one must be signed by the governance of the signer group that controls the resource, at that group’s quorum.Who signs
A signer group is governed by its own members, unless it names another signer group of your team ingovernance_signer_group_id. Then the members of that governing group sign the group’s governance changes, and the group’s own members cannot.
Which group’s governance applies depends on the intent:
When several groups must sign, put all their signatures in one
signatures array: they all sign the same intent. Signer groups that Dakota manages for payment agents and card settlement never govern: “every signer group on the wallet” means every group except those, and when a policy’s own signer group is one Dakota manages, the signer groups of the wallets it concerns sign instead.
How many: the quorum
GET /signer-groups/{signer_group_id} returns the group’s governance:
effective_governance_threshold is:
governance_threshold, when you set one with Update Signer Group Governance; otherwise- the default: 1, or 2 when your team has governance enforcement on and the governing group (the group itself, when it governs itself) has 3 or more members;
- for the default only, capped at the number of members who can sign governance changes, and never below 1. A
governance_thresholdyou set stands as set.
approval_threshold of its policies, which applies to transactions only.
Signatures are tied to the group version
add_signers_to_group, remove_signers_from_group and update_signer_group_governance sign over signer_group_version. Once a membership change or governance settings update lands, the version moves on and every signature made over the old version is refused with 409 stale_signer_group_version: read the group again and sign again. Sending the same request again with the same idempotency key within 24 hours of a successful response returns that response and changes nothing. A refusal from the policy engine (403 insufficient_endorsements, 409 stale_signer_group_version, 409 stale_policy_version, 409 policy_attached, and the passkey checks 400 webauthn_wrong_type and 400 webauthn_user_not_present) is kept for the same 24 hours and returned again for that key, and the same key with a different request, such as one with more signatures, is refused as a different request. So to retry such a refusal, prepare the change again with a new idempotency key and collect every signature again. Other refusals, such as 400 endorsement_required and a malformed X-Idempotency-Key, are not kept: fix the request and send it again. A signature cannot be reused under a new X-Idempotency-Key, because the key is part of what was signed.
Signatures can be tied to the policy version
A policy attach or detach (attach_policy_to_wallet, detach_policy_from_wallet) can sign over the policy’s version. Without it, the signatures name only the wallet and the policy, so they still apply if the policy’s rules change after the signers approved it: a policy’s own signer group could loosen the rules between the wallet owners’ signatures and the request landing.
- Read the policy with
GET /policies/{policy_id}and take itsversion. The version starts at 1 and normally only rises: with every rule change (added, updated or removed), and when the policy’s endorser scope, signer group or client changes. - Show the signers the policy’s rules at that version, and put the same number in the intent’s
policy_version. It is part of the canonical JSON, a JSON number betweenpolicy_idandtypein key order. A value below 1 is refused with400. - Send the request with the same
policy_versionin itsintent.
409 stale_policy_version and nothing changes: read the policy again, check its rules, and sign again with a new idempotency key. Don’t resend the old signatures: under the same idempotency key, the same refusal comes back for 24 hours. The check also holds when a rule change lands while the attach or detach is being processed.
Sign over a version you have just read, and send the request soon after the signatures are collected. Don’t keep signatures to send later. In rare cases Dakota restores a policy to an earlier version, for example when it undoes a change it made to the policy’s signer group. A version number that was used before can then come back later with different rules, and a signature kept from the earlier time would match it.
policy_version is optional, with governance enforcement on or off. Leave it out and the request is signed and checked exactly as before, so existing integrations keep working. The Go and TypeScript SDKs build the canonical JSON with it.
Governance enforcement
We plan to make governance enforcement the default for all clients. Today it is off unless Dakota turns it on for your team, so build and test your integration as if it is on. In practice: collect signatures from signer group members for signer group, policy and wallet changes; manage API keys and users from a signed-in session, not with an API key; give your servers Operate keys that pass along those signed changes; and handle
insufficient_endorsements and retry 503 responses, such as check_unavailable.- Every member change must be signed.
POST /signer-groups/{signer_group_id}/signerswithoutsignatures, andDELETE /signer-groups/{signer_group_id}/signers/{signer_id}, are refused with400 endorsement_required. - A group whose governing group has 3 or more members needs 2 signatures by default instead of 1 (fewer only when fewer of those members can sign governance changes).
- Attaching or detaching a signer group needs the governance of every signer group on the wallet. A signer group whose governance could never be met cannot be attached.
- Attaching or detaching a policy (
attach_policy_to_wallet,detach_policy_from_wallet) needs the governance of the policy’s signer group, and the governance of every signer group attached to the wallet except groups Dakota manages for payment agents and card settlement. Each of these groups must reach its owneffective_governance_threshold. A member of several of these groups counts toward each of them with one signature. Send all signatures in onesignaturesarray; a signature from a key that belongs to none of these groups refuses the whole request with403 insufficient_endorsements. - Changing a rule (
add_policy_rule,update_policy_rule,remove_policy_rule) on a policy that wallets hold needs the governance of every signer group on every one of those wallets, except groups Dakota manages for payment agents and card settlement, as well as the policy’s, each at its own quorum, in onesignaturesarray. This holds for every rule change, including one that only tightens the policy: whoever governs only the policy cannot change the rules of a wallet it does not govern. A policy no wallet holds needs only its own signer group. To change a policy shared by wallets with different owners, collect every owner’s signatures, or detach the policy from the wallets first. - A policy that is still attached to a wallet cannot be deleted; detach it first. See Delete Policy.
- An API key cannot create or replace an x402 spend mandate (
POST /payment-agents/{payment_agent_id}/x402/mandates); it is refused with400 endorsement_requiredand nothing changes, so a leaked key cannot set or raise an agent’s x402 budget. A signed-in team member whose role can create and approve mandates can still create one. If Dakota cannot confirm whether enforcement is on, the key’s request is refused with a retryable503. Listing and cancelling mandates, and paying under a mandate already in force, are unchanged, and mandates created before enforcement was turned on stay in force: review them and cancel any you did not intend. - API keys cannot manage API keys or users. Creating or changing a key (
POST /api-keys,PATCH /api-keys/{api_key_id}), rotating another key, and inviting, changing or removing a user (POST /users,PATCH /users/{user_id},DELETE /users/{user_id}) are refused with403andreasonsession_required, whatever the key’s scope, so a leaked key cannot create a key or invite an admin. Do these as a team member signed in to Dakota. A key can still rotate itself, and deleting a key with an API key works as before. If Dakota cannot confirm whether enforcement is on, the key’s request is refused with a retryable503 check_unavailable. - An Operate API key may submit a governance change that carries the required signatures: signed member changes, governance updates, signer group and policy attachments, policy rule changes, policy deletion and signed crypto destinations. The signatures authorize the change; the key only delivers it. The same request without the signatures is refused with
403 Forbidden, not400 endorsement_required, because the key’s scope is checked first. Without enforcement, these endpoints need a Full access key, and an Operate key is refused with403even when the request is signed.
governance_threshold or governance_signer_group_id set, or that governs another group, takes member changes only when signed.
A signed change runs once
A signed governance change (a signer group, policy or wallet-attachment intent, a policy rule change or delete, or a card settlement enablement) can run only once, with or without enforcement. Within 24 hours, resending it with the same idempotency key returns the stored response, as described above. After that, the same signed intent is refused with409 (problem type conflict, reason and code endorsement_already_used, detail this endorsement has already been used; sign a new intent) and nothing changes. An intent also counts as used when an earlier attempt with it failed after all its signatures verified, for example one refused for too few signatures or one that timed out and may have landed, so this refusal does not always mean the change ran: read the resource to see where it stands. A card settlement enablement for a wallet whose enablement is already active is answered before the signatures are checked and never gets this refusal: it returns 200 with the current enablement, or card-enablement-conflict when the settlement destination Dakota has configured differs from the recorded one, or card-spend-option-conflict when the requested spend option differs from the recorded one. Branch on code, not on detail. To make the same change again, build a new intent with a new idempotency key and collect the signatures again.
Errors
Governance refusals areapplication/problem+json responses whose reason (and code) is one of:
The two passkey reasons come with status
400 and the validation-error problem type, except on a mandate approval, cancellation or amendment, where the problem type is invalid-request (see Signing with a passkey); as in every row above, reason and code carry the same value. The errors page has an entry for each reason.
A 400 saying X-Idempotency-Key must be a lowercase UUID means the header held uppercase letters; send it in lowercase and sign that same value.
Policy changes and wallet attachments keep their earlier error while nothing about them is governed (enforcement off, and no governance settings on the groups involved): a signature that fails is a 400 validation error on endorsement.signatures, as described under Troubleshooting. Once governance applies, the same failure is 403 insufficient_endorsements.
Signer Group Lifecycle
A signer group controls who can authorize wallet actions. Here is the complete lifecycle from creation through teardown.Step-by-step
Adding and removing signers (steps 3 and 7) are signed by the group’s governance and tied to its
version:- Add: send
signaturesandsigner_group_versionwithmember_key. Without them, the member is added unsigned; that is refused with400 endorsement_requiredwhen your team has governance enforcement on, the group has governance settings (governance_thresholdorgovernance_signer_group_id), or the group governs another group. - Remove: use
POST /signer-groups/{id}/signer-removals, which takes signatures. The olderDELETE /signer-groups/{id}/signers/{signer_id}takes none, so it refuses those same groups with400 endorsement_required; it still works only for a group with no governance settings that governs no other group, while enforcement is off. - Each change raises the group’s
versionby 1, so read the group again before signing the next one.

