API Document

Endpoint, SEAMLESS mode

Get the result page of a bet (SEAMLESS mode only) POST

The same request and answers as /api/v1/result, for an agent in SEAMLESS mode only. It stays open for all of version 1, so an agent that already calls it keeps working; use /api/v1/result in new code.

HTTP Request

POST {{ API_URL }}/api/v1/seamless/result

Headers

PropertyTypeRequiredDescription
X-Api-KeystringRequiredOn the endpoints: the API key of your API credential. A missing header or a key we do not know is answered 401 with code 1001. Send it with X-Timestamp and X-Signature on every request.
X-TimestampstringRequiredOn the endpoints: Unix time in seconds when you signed the request. One more than 300 seconds away from our clock, in either direction, is answered 401 with code 1025. Keep your clock in sync (NTP).
X-SignaturestringRequiredOn the endpoints: lowercase hex of HMAC-SHA256 with the secret of your API credential as the key, over the X-Timestamp value, a dot (.), then the raw request body exactly as you send it. One that does not match is answered 401 with code 1030. There is no nonce.
Accept-LanguagestringOptionalThe language of message. English when absent or when we do not have the language; th for Thai. It is the only way to choose the language. message is for people only: decide on code.

Parameter Description

PropertyTypeRequiredDescription
bet_idstringRequiredThe id of a bet record.

Request Body

Request bodyjson
{
  "bet_id": "7d8e9f01-2a3b-4c5d-9e6f-708192a3b4c5"
}

Response

PropertyTypeRequiredDescription
successbooleanRequiredAlways true
codenumberRequiredAlways 0
messagestringRequiredFor people only. Never decide on it.
request_uuidstringRequiredOur id of the request. Quote it to support.
dataobjectRequired
data.result_urlstringRequiredThe result page of the bet.
JSON response examplejson
{
  "success": true,
  "code": 0,
  "message": "Result URL fetched",
  "data": {
    "result_url": "https://games.example.com/history?bet=T-1001"
  },
  "request_uuid": "90011223-4455-46e7-98f9-1a2b3c4d5e6f"
}

Errors

HTTPcodeWhen
4004001A field has the wrong shape
4011001A header is missing or the key is unknown
4011030The signature does not match
4011025X-Timestamp is too far from our clock
4031031The caller's IP is not on the key's allowlist
4031032The endpoint is not for your agent's wallet mode
4031026A production key without an IP allowlist
4031002The request could not be checked
4043016No bet of yours with this id
4223015The provider has no result page for this bet
5009001Something failed on our side
5039002The provider is not reachable through us right now