Operator API
Lists available games
get
/v1/gamesPaginated catalog of the active games of the products enabled for the merchant.
Authentication#
Request signed with HMAC-SHA256: headers X-Merchant-Id, X-Timestamp, X-Nonce and X-Signature. See Authentication.
Parameters#
| Field | Description |
|---|---|
pagenumber | Page (starts at 1) minimum 1 · default: 1 |
limitnumber | Items per page 1–100 · default: 50 |
providerstring | Provider code |
type"slot" | "live" | Game type |
categorystring | Game category |
searchstring | Search by part of the name (case-insensitive) up to 100 characters |
Example#
# TALOS_API_HOST (without /v1), TALOS_MERCHANT and TALOS_SECRET are provided by TALOS
TS=$(($(date +%s) * 1000))
NONCE=$(openssl rand -hex 16)
REQ_PATH='/v1/games'
BODY=''
SIG=$(printf '%s' "$TS.$NONCE.GET.$REQ_PATH.$BODY" | openssl dgst -sha256 -hmac "$TALOS_SECRET" | sed 's/^.* //')
curl -X GET "$TALOS_API_HOST$REQ_PATH" \
-H "X-Merchant-Id: $TALOS_MERCHANT" \
-H "X-Timestamp: $TS" \
-H "X-Nonce: $NONCE" \
-H "X-Signature: $SIG"import { talos } from './talos' // signed client (see Authentication)
const res = await talos('GET', '/v1/games')
if (!res.success) throw new Error(`${res.error.code}: ${res.message}`)
console.log(res.data)Responses#
200Success
| Field | Description |
|---|---|
successtruerequired | — |
messagestringrequired | — |
statusCodenumberrequired | — |
dataobject[]required | — |
data[].codestringrequired | Game code, used in the launch game field |
data[].namestringrequired | — |
data[].providerstringrequired | Provider code |
data[].type"slot" | "live"required | — |
data[].categorystring | nullrequired | — |
data[].rtpnumber | nullrequired | — |
data[].volatilitystring | nullrequired | — |
data[].bannerstring | nullrequired | Game image URL |
data[].tagsstring[]required | — |
data[].featuredbooleanrequired | — |
data[].is_newbooleanrequired | — |
data[].demo_availablebooleanrequired | Whether the game opens in fun mode (demo: true) |
metaobjectrequired | — |
meta.pagenumberrequired | — |
meta.limitnumberrequired | — |
meta.totalnumberrequired | — |
meta.totalPagesnumberrequired | — |
Response example
{
"success": true,
"message": "OK",
"statusCode": 200,
"data": [
{
"code": "minha-bet",
"name": "Minha Bet",
"provider": "PGSOFT",
"type": "slot",
"category": "string",
"rtp": 0,
"volatility": "string",
"banner": "string",
"tags": [
"string"
],
"featured": true,
"is_new": true,
"demo_available": true
}
],
"meta": {
"page": 1,
"limit": 50,
"total": 120,
"totalPages": 3
}
}| HTTP | Code (error.code) |
|---|---|
| 401 | MISSING_AUTH_HEADERSINVALID_MERCHANTMERCHANT_BLOCKEDREQUEST_EXPIREDINVALID_SIGNATURENONCE_REUSEDIP_NOT_ALLOWED |
| 422 | Body or query does not match the schema |
| 429 | RATE_LIMITED |
| 500 | LIST_GAMES_FAILED |
| 503 | AUTH_UNAVAILABLE |
Error format and the meaning of each code in Errors.