Operator API
Lists available providers
get
/v1/providersProviders of the enabled products, with the count of active games.
Authentication#
Request signed with HMAC-SHA256: headers X-Merchant-Id, X-Timestamp, X-Nonce and X-Signature. See Authentication.
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/providers'
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/providers')
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 | — |
data[].namestringrequired | — |
data[].type"slot" | "live"required | — |
data[].gamesnumberrequired | Active games of the provider |
Response example
{
"success": true,
"message": "OK",
"statusCode": 200,
"data": [
{
"code": "minha-bet",
"name": "Minha Bet",
"type": "slot",
"games": 0
}
]
}| 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_PROVIDERS_FAILED |
| 503 | AUTH_UNAVAILABLE |
Error format and the meaning of each code in Errors.