Skip to content

API basics ​

Send your API key as a bearer token, an Idempotency-Key on createWallet, and an external_id on createPayout. Page through lists with cursor, and branch on the error code.

Keys and scopes ​

Send Authorization: Bearer <key> with every call. A missing or unknown key gets 401 with authentication_required; a key without the call's scope gets 403 with permission_denied.

ScopeAllows
ledger:readReading networks, assets, rates, customer addresses, balances, payments and payouts
wallets:writecreateWallet
payouts:writecreatePayout
webhooks:manageWebhook endpoints and deliveries. Rotating a secret returns the new one, so give this scope only to the service that holds your secrets

The install loads its keys when it starts. A new or removed key takes effect only after the operator restarts it.

Idempotency ​

createWallet requires an Idempotency-Key header, and createPayout takes one too. The install keeps each key for 24 h.

You sendYou get
The same key and body againThe first response, with Idempotent-Replayed: true
The same key while the first call runsThe first response, once it is stored
The same key with another body409 with idempotency_key_conflict
The same key on the other callA new key: createWallet and createPayout keep separate keys
No key on createWallet400 with idempotency_key_required

A payout needs no key: its required external_id makes a retry safe at any age, and a key is forgotten after 24 h. See Retry a payout safely.

registerWebhookEndpoint takes no key: the same URL returns the same endpoint, without its secret.

Lists ​

A paged list returns data and next_cursor. While next_cursor is not null, call again with cursor set to it and the same filters. Set limit to change the page size; listBalances returns every row at once.

Times ​

Every time is RFC 3339 in UTC, ending in Z, such as 2026-11-23T12:15:38Z, in answers and in events alike.

Request IDs ​

Every response carries X-Request-ID, and an error body repeats it as request_id. Send your own to trace a call. The install replaces one that is too long or has characters other than letters, digits, ., _ and -.

Errors ​

A request body must be JSON sent with Content-Type: application/json, or the call gets 415 with unsupported_media_type. An unknown field or query parameter gets 400 with invalid_request, and so does a filter that names nothing on the install, such as an unknown wallet_id; 404 is only for an id in the path, or a network id a create call names; a network or asset code that names nothing on the install gets 400.

Every error has this body. Branch on code; message is for people. field names the request field the error is about, when there is one: a body member's path, such as destination.address, or a parameter's name.

json
{
  "error": { "code": "invalid_request", "message": "invalid request field: amount", "field": "amount" },
  "request_id": "9481da45-9ae5-4fce-a252-0190235a8f45"
}
CodeMeaning
internal_errorThe install failed; retry later, and give the operator the request_id.
authentication_requiredThe key is missing or unknown; send a key the operator issued.
invalid_requestA field, query parameter or cursor is malformed or unknown; fix the request.
unsupported_media_typeThe body was not sent as JSON; send it with Content-Type set to application/json.
resource_not_foundNothing has this id; check it.
resource_conflictThe resource's state refuses the call, such as a second address for one external_id, or a payout external_id used with another body.
idempotency_key_requiredThe call has no Idempotency-Key; send one.
idempotency_key_conflictThe key was used with another body of this call; use a new key.
asset_unavailableThe asset cannot be used for this call; check its capabilities.
invalid_amount_precisionThe amount has more decimal places than the asset allows; round it.
amount_below_dust_limitA Bitcoin payout is below its destination's dust limit, which no node relays; send at least 546 sat to a P2PKH address, 540 to P2SH, 294 to P2WPKH or 330 to P2TR.
permission_deniedThe key lacks the scope this call needs; ask the operator for one.
rates_unavailableStored rates could not be read; retry later.
service_unavailableSomething the call needs, such as a network's node, did not answer; retry later.
webhook_endpoint_limit_reachedThe install has as many active webhook endpoints as it allows; disable one first.
webhook_endpoint_disabledThe webhook endpoint is disabled, and a disabled one stays so; register its URL again for a new endpoint.
webhook_delivery_not_failedOnly a failed delivery can be replayed; wait for it to end, or replay the one that failed.