Errors
HTTP statuses, error bodies and error codes of /api/v1.
HTTP statuses#
| Status | Meaning |
|---|---|
400 | Invalid parameters, unknown game, unavailable provider or unsupported feature |
401 | API key missing, wrong, inactive or expired |
403 | Provider or game not enabled for your account, or no callbackUrl (Validator) |
404 | Provider, free-spin campaign, round or validation run not found |
429 | Rate limit: 200 requests / 60 s per server IP, per endpoint; see Retry-After |
500 | Unexpected error on our side |
Error body#
statusCode and message are always present. message is a string, or an array of strings for request-body validation. error is absent on 429 and 500. Launch, games, free-spin and round errors with status 400 also carry a canonical object; 401, 403, 404, 429, 500 and body validation errors do not. Check statusCode first, then canonical.errorCode when present.
// 400 from POST /api/v1/launch
{
"statusCode": 400,
"message": "gameId must be a numeric string",
"error": "Bad Request",
"canonical": {
"errorCode": "INVALID_REQUEST",
"message": "gameId must be a numeric string",
"provider": "PRAGMATIC_PLAY"
}
}
// 400 from request-body validation: message is an array, no canonical object
{
"statusCode": 400,
"message": ["betId must be an integer number"],
"error": "Bad Request"
}
// 401
{ "statusCode": 401, "message": "API key required", "error": "Unauthorized" }Error codes returned today#
| Code | Meaning | What to do |
|---|---|---|
INVALID_REQUEST | A parameter is missing or malformed, or the game is unknown | Fix the request |
PROVIDER_UNAVAILABLE | The provider is inactive, or answered with an error or too late | Show another game; try again later |
GAME_BLOCKED | The game or its studio is blocked | Hide it and refresh your games list. A game blocked only for your account returns 403 without a code. |
CONTRACT_NOT_ENABLED | GAME_AGGREGATOR: the currency is not in the contract | Use a supported currency |
NOT_SUPPORTED | No demo, free spins or round history for this provider or game | Hide the feature |
Reserved for future use, never returned by /api/v1 today: PLAYER_NOT_FOUND, INVALID_SIGNATURE, INSUFFICIENT_FUNDS, RATE_LIMITED, INTERNAL_ERROR, SESSION_EXPIRED, DUPLICATE_TRANSACTION, VALIDATION_FAILED.
Questions about your integration?Write to us with your account name and, if you have one, a sessionId or transactionId. integration@agixx.net