Operator docs Get sandbox access

Guides

Errors and retries

Both directions follow one rule: a lost answer or a timeout doesn’t mean nothing happened. Retry the same operation with the same identity, and let idempotency make the retry safe.

Problem responses

Every Operator API error is an RFC 9457 problem in application/problem+json, sent with Cache-Control: no-store and the effective X-Request-Id.

{
  "type": "https://operator-api.example.com/problems/validation-failed",
  "title": "Request validation failed",
  "status": 422,
  "detail": "One or more request values are invalid.",
  "instance": "/requests/3f0e8f1a-6f7d-4e8c-9a3b-1d2c4b5a6e7f",
  "code": "validation_failed",
  "request_id": "3f0e8f1a-6f7d-4e8c-9a3b-1d2c4b5a6e7f",
  "errors": [
    { "code": "required", "detail": "Currency is required for real mode.", "pointer": "/player/currency" }
  ],
  "retryable": false
}
  • Branch on status and code. type is a stable identifier, not a page to fetch. Never parse title or detail: they’re for people and can change.
  • request_id equals the X-Request-Id header. Quote it when you contact us.
  • errors appears for validation problems. Each item has a code, a detail and at most one location: a JSON Pointer into your body, a query or path parameter, or a header.
  • retryable: true means a retry may help. It never allows a new Idempotency-Key for the same intent.

Operator API errors

StatusCodeRetryableWhat to do
400malformed_requestNoFix the request: malformed JSON, duplicate JSON keys or a bad URL encoding.
401authentication_failedNoFix the token, key or signature. A missing or repeated Idempotency-Key also lands here, because the signature must cover exactly one. See the signing checklist.
403authorization_failedNoYour token lacks the operation’s scope.
404resource_not_foundNoThe resource doesn’t exist or isn’t yours. On session creation: the Brand, Game or launch combination isn’t provisioned for you.
405method_not_allowedNoUse the documented method.
409idempotency_conflictNoThe key belongs to a request with another body. Resend the original body, or use a new key for a new GameSession.
409game_session_not_launchableNoThe GameSession ended or expired, or current launch policy no longer allows it. Create a new one with a new key.
413payload_too_largeNoSend a smaller body.
415unsupported_media_type, unsupported_content_encodingNoSend Content-Type: application/json exactly, with no charset, and without Content-Encoding.
422validation_failedNoFix the values listed in errors. An expired or mismatched catalog cursor also lands here: start the listing again.
429rate_limit_exceededYesWait for Retry-After seconds, then retry with a new signature.
500internal_errorNoSomething failed on our side. Retrying a session creation once with the same key is still safe; if it fails again, contact us with the request_id.
503service_overloaded, dependency_unavailableYesRetry after Retry-After, if present, with the same key.
504request_timeoutYesThe outcome may be unknown. Retry with the same key.

Why 404 can hide a cause

Requests never reveal what belongs to another Operator. A resource that doesn’t exist, one that belongs to someone else and a launch combination you may not use all return the same 404 resource_not_found. If you expect a resource to be there, check the IDs and your launch combinations, then contact us with the request_id.

Answers that don’t come from us

Your request passes through our network edge before it reaches the API, and the edge can answer it on its own. Such an answer isn’t a problem response: its body is plain text, HTML or empty, never application/problem+json, and it has no request_id. So an error status without a problem body came from the edge. Don’t parse that body; act on the status:

StatusWhat it meansWhat to do
429The edge’s flood limit. It sits above our own rate limits, so a client within those never sees it.Wait for Retry-After seconds, then retry as after 429 rate_limit_exceeded.
5xxThe edge couldn’t get an answer from the API, for example a 502, 503 or 504, or a 520–530 error page. Your request may or may not have arrived.Treat it as temporary and retry with backoff; retry a session creation only with the same Idempotency-Key and body bytes.
403The edge didn’t admit the request.Don’t retry: it won’t change. Contact us with the time, the host you called and the IP address your request came from.
Any otherAn unexpected answer.Don’t retry. Contact us if it repeats.

The OpenAPI document describes only our own answers, so a client generated from it won’t know these either.

Retrying Operator API requests

  • Reads can be retried freely, each attempt with a new signature.
  • Session creation after a timeout, a dropped connection, a 429, 500, 503 or 504, or a 5xx from the edge: retry with the same Idempotency-Key and the same body bytes, and a new nonce and signature. You get the original GameSession, or a new one if the first attempt never arrived, never two.
  • Wait between attempts, honor Retry-After, and add jitter. Stop well before 24 hours after the first attempt: then the key no longer protects you.
  • Our server-side deadline is 10 seconds per request by default. A client timeout shorter than that is fine, as long as you retry with the same key.

How we treat your Wallet’s answers

For a Debit, Credit or Reversal, only a 200 receipt whose identity matches the command is final. Here’s what each other answer means to us:

Your Wallet answersWe concludeWe do next
200 receipt with the matching identityFinal outcomeRecord it and continue the Round.
200 that’s malformed or doesn’t match the commandOutcome unknownAsk the status endpoint, then retry the same ID.
A timeout, a dropped connection, 429, 500, 503 or 504Outcome unknownAsk the status endpoint, then resend the same ID with backoff.
401 or 403Our credentials need attention; the outcome of earlier attempts stays unknownBack off and fix the credentials with you, then look the transaction up.
409 transaction_conflictThe request conflicts with what you stored; the original’s outcome is unknownStop sending it and investigate with you.
Status lookup: pendingStill in progressAsk again later.
Status lookup: 404 not_foundNo record right nowResend the same ID while that’s still allowed.
Two receipts that contradict each otherAn incidentHold it for review. The later answer never simply wins.

A later error never erases an earlier unknown: a 401 after a timeout doesn’t mean the timed-out Debit failed. And no answer of yours makes us invent a new transaction ID, a balance or a Reversal. How we retry has the timing.

Timeouts in short

You call us

Retry with the same key

A timeout on session creation means “unknown”. Repeat it with the same Idempotency-Key and body; you can’t create a duplicate.

We call you

Return the original receipt

When we repeat a transaction_id, answer with the receipt you stored. Your deduplication is what makes our retries safe.