Operator API

Lists available providers

get/v1/providers

Providers 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"

Responses#

200Success

FieldDescription
success
truerequired
—
message
stringrequired
—
statusCode
numberrequired
—
data
object[]required
—
data[].code
stringrequired
—
data[].name
stringrequired
—
data[].type
"slot" | "live"required
—
data[].games
numberrequired
Active games of the provider
Response example
{
  "success": true,
  "message": "OK",
  "statusCode": 200,
  "data": [
    {
      "code": "minha-bet",
      "name": "Minha Bet",
      "type": "slot",
      "games": 0
    }
  ]
}
HTTPCode (error.code)
401MISSING_AUTH_HEADERSINVALID_MERCHANTMERCHANT_BLOCKEDREQUEST_EXPIREDINVALID_SIGNATURENONCE_REUSEDIP_NOT_ALLOWED
422Body or query does not match the schema
429RATE_LIMITED
500LIST_PROVIDERS_FAILED
503AUTH_UNAVAILABLE

Error format and the meaning of each code in Errors.