Reference
Idempotency and limits
Which calls are safe to repeat, what makes them safe, and the limits a well-behaved client stays under.
What makes a call safe to repeat
Networks fail between your request and our answer. Every call that creates something has a key of yours that makes a repeat return what the first one created instead of creating it twice. Send it every time and a retry after a timeout is always safe.
| Call | Key | A repeat with the same key |
|---|---|---|
POST /v1/direct/sessions | external_order_id | Same session with a fresh link, while the order is still pending. 409 if the parameters differ or a payment is already on the chain. |
POST /v1/direct/init | external_order_id | The session you already have. |
POST /v1/wallet/address | player_id + network | Always the same address. No need to cache it. |
POST /v1/wallet/sessions | none needed | A new link to the same addresses. Links are cheap, addresses never change. |
POST /v1/payout/sessions | external_id | Same session with a fresh link until the player submits a wallet, then 409. |
POST /v1/payout | external_id | The payout you already have. Required. |
POST /v1/payout/authorize | payout_id | The same signature is accepted again and the payout is relayed once. A different signature after the first answers 409. |
Reads (/status calls, GET /v1/balance) change nothing and can be repeated freely.
A nonce is single use: a retry is a new request with a new nonce and timestamp,
and the key above is what makes it the same operation.
Webhooks are at least once
A delivery that did not get a 2xx is retried: 30s, 1m, 2m and so on up to 1h, eight attempts in all.
Your endpoint can therefore see the same event more than once, and two events of one payment out of
order. Deduplicate on X-Idempotency-Key, apply each change
once, and let a terminal status win over an earlier one.
Limits
| What | Limit | When you hit it |
|---|---|---|
| Request timestamp and nonce | 5 minutes from our clock; a nonce once in that window | 401. Keep your servers on NTP. |
| Hosted page loads | 30 per link per minute | 429 on the page. A player reloading by hand never gets near it. |
| Hosted links | 60 seconds to 24 hours (ttl_seconds) | 400 validation on create. |
| Networks per link | 32 | 400 validation. |
player_id, external_id | 128 characters | 400 validation. |
| Batch payouts | 100 items | 400 validation. |
| Abusive traffic | can be throttled per IP during an attack | 429. Back off and retry later. |
There is no fixed request quota on the API itself. A well-behaved client retries a 5xx
or 429 with exponential backoff and a cap, and never retries a 4xx other than
429 unchanged: see What a correct retry looks like.