For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tournaments API

List your tournaments

post

Returns the tournaments assigned to your operator.

If you don't send a status, you get every active and scheduled tournament in a single response. To browse finished tournaments instead, send status: "ended". Those come back most recently ended first, up to 100 at a time, and this is the only case where the list is paged.

While there are more ended tournaments to fetch, the response includes a next_cursor. Send it back as cursor, with the same status and user as before, to get the next page. Keep going until a response arrives without a next_cursor. A page with fewer than 100 tournaments doesn't on its own mean you have reached the end.

Authorizations
X-Hub88-SignaturestringRequired

Every request must carry an X-Hub88-Signature header. To build it, sign the exact bytes of the request body with your operator private key, using RSA with SHA-256, then Base64-encode the result. Hub88 checks the signature against the public key registered for your operator.

The body must include your operator_id. Send exactly the bytes you signed. If your HTTP client re-serializes the JSON or changes its whitespace after you sign it, the signature no longer matches and the request is refused.

BODY='{"operator_id":10}'
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -sign operator-private.pem | openssl base64 -A)
curl -X POST https://$HOST/operator/generic/v2/tournaments/list \
  -H 'content-type: application/json' \
  -H "x-hub88-signature: $SIG" \
  -d "$BODY"
Body
operator_idintegerRequired

The Hub88 ID of your operator. It must belong to the operator whose key signed the request.

Example: 10
statusstring · enumOptional

The state of the tournaments to return. The value is case-sensitive, so Ended is rejected.

Default: active and scheduled tournaments together.

Possible values:
userstring · min: 1Optional

The identifier you use for one of your players. If you set it, the list contains only tournaments that this player has opted into.

Example: 1786107157_EUR
cursorstring · min: 1Optional

A paging token taken from the next_cursor of a previous response. Treat it as opaque and send it back exactly as you received it.

Example: c2FtcGxlLWN1cnNvcg
Responses
200

The tournaments that match your request. If nothing matches, you get an empty tournaments list. That is a normal answer, not an error.

application/json
next_cursorstring · min: 1Optional

A paging token taken from the next_cursor of a previous response. Treat it as opaque and send it back exactly as you received it.

Example: c2FtcGxlLWN1cnNvcg
post/operator/generic/v2/tournaments/list
POST /operator/generic/v2/tournaments/list HTTP/1.1
Host: api.hub88.io
X-Hub88-Signature: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18

{
  "operator_id": 10
}
{
  "tournaments": [
    {
      "tournament_uuid": "0f9c1c1e-9a4e-4f1a-8f0f-2f9d3b8a7c11",
      "name": "Weekend Spin Race",
      "tournament": {
        "state": "active",
        "scoring_template": "biggest_single_win",
        "score_kind": "money",
        "score_currency_code": "EUR",
        "event_time": {
          "start_time": "2026-09-01T10:00:00.000000Z",
          "end_time": "2026-09-07T23:59:59.000000Z"
        },
        "prize_pool": {
          "total": "1000.0",
          "currency_code": "EUR",
          "tiers": [
            {
              "rank": 1,
              "amount": "500.0"
            },
            {
              "rank": 2,
              "amount": "300.0"
            },
            {
              "rank": 3,
              "amount": "200.0"
            }
          ]
        }
      },
      "eligibility": {
        "country_codes": [
          "EE",
          "FI"
        ],
        "currency_codes": [
          "EUR",
          "USD"
        ],
        "product_codes": [
          "pragmatic_play"
        ],
        "game_codes": [
          "pragmatic_play:vs20fruitsw"
        ],
        "max_spin": 200,
        "bet_criteria": {
          "currency_code": "EUR",
          "min_bet_amount": null,
          "max_bet_amount": null,
          "max_win_amount": "5000.0"
        }
      },
      "terms_and_conditions": "Wagering on qualifying games only."
    }
  ]
}

Get a tournament's rankings

post

Returns one tournament's leaderboard, filtered down to your own players, up to 100 rows at a time.

Each row keeps the rank and position the player holds on the full leaderboard, which also includes other operators' players. That means the numbers you see can skip values. For example, your first player might be at position 2 and your next one at position 7.

To page through a long leaderboard, send each response's next_cursor back as cursor. A cursor only works for the version of the leaderboard it came from. If the leaderboard is updated while you are paging, your next request fails with 400 and the reason stale_cursor. When that happens, start again from the first page, without a cursor.

Authorizations
X-Hub88-SignaturestringRequired

Every request must carry an X-Hub88-Signature header. To build it, sign the exact bytes of the request body with your operator private key, using RSA with SHA-256, then Base64-encode the result. Hub88 checks the signature against the public key registered for your operator.

The body must include your operator_id. Send exactly the bytes you signed. If your HTTP client re-serializes the JSON or changes its whitespace after you sign it, the signature no longer matches and the request is refused.

BODY='{"operator_id":10}'
SIG=$(printf '%s' "$BODY" | openssl dgst -sha256 -sign operator-private.pem | openssl base64 -A)
curl -X POST https://$HOST/operator/generic/v2/tournaments/list \
  -H 'content-type: application/json' \
  -H "x-hub88-signature: $SIG" \
  -d "$BODY"
Body
operator_idintegerRequired

The Hub88 ID of your operator. It must belong to the operator whose key signed the request.

Example: 10
tournament_uuidstring · uuidRequiredExample: 0f2a4c1e-1111-2222-3333-444455556666
cursorstring · min: 1Optional

A paging token taken from the next_cursor of a previous response. Treat it as opaque and send it back exactly as you received it.

Example: c2FtcGxlLWN1cnNvcg
Responses
200

One page of the leaderboard. If the tournament doesn't have a leaderboard yet, you get an empty rankings list and an own_participant_count of 0.

application/json
tournament_uuidstring · uuidRequired
own_participant_countintegerRequired

The total number of your players on this leaderboard, across every page, not only this one.

next_cursorstring · min: 1Optional

A paging token taken from the next_cursor of a previous response. Treat it as opaque and send it back exactly as you received it.

Example: c2FtcGxlLWN1cnNvcg
post/operator/generic/v2/tournaments/rankings
POST /operator/generic/v2/tournaments/rankings HTTP/1.1
Host: api.hub88.io
X-Hub88-Signature: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 75

{
  "operator_id": 10,
  "tournament_uuid": "0f2a4c1e-1111-2222-3333-444455556666"
}
{
  "tournament_uuid": "0f2a4c1e-1111-2222-3333-444455556666",
  "own_participant_count": 150,
  "rankings": [
    {
      "position": 2,
      "rank": 2,
      "operator_id": 10,
      "operator_user": "alice",
      "score": "800.0"
    },
    {
      "position": 3,
      "rank": 3,
      "operator_id": 10,
      "operator_user": "bob",
      "score": "700.0"
    }
  ],
  "next_cursor": "c2FtcGxlLWN1cnNvcg"
}

Last updated

Was this helpful?