Active Tournaments
Retrieves the tournaments a given player can join right now.
Use it to show THNDR tournaments in your lobby: what is running, the prizes, and how much time is left.
Note: this endpoint lists only tournaments that are accepting scores right now. It does not return upcoming tournaments and it is not a schedule. A tournament appears in the response once it starts and disappears when it ends.
Endpoints
Sandbox
GET https://operator-sandbox.thndr-api.com/v1/active-tournaments/{userId}Production
GET https://operator.thndr-api.com/v1/active-tournaments/{userId}Path parameters
userId
string
Player identifier on the Operator's platform.
The endpoint takes no query parameters. It returns active tournaments across all games available to you.
Request headers
x-operator-id: your_operator_id
x-api-key: your_api_keyResponse
Returns the requested userId and a list of tournaments. Each tournament entry includes:
A unique tournament identifier (
id)The game identifier (
gameId), as returned by Game ListThe start and end of the tournament (
startDate,endDate), ISO 8601 in UTC. UseendDateto show the time left.The prize currency (
currency), alwaysUSDThe sum of all prizes (
prizePool), in centsThe prize tiers (
prizes), sorted by rank. Each tier hasfromRank,toRankandamount.amountis the prize for each rank in the tier, in cents. Consecutive ranks with the same prize are grouped into one tier.The number of players who have entered the tournament so far (
participantsCount)
In this example, rank 1 wins $250.00, ranks 2 and 3 win $75.00 each, and ranks 4 to 8 win $20.00 each.
Empty list
An empty tournaments array is a valid response. It means either that no tournament is running for your players right now, or that this player is excluded from tournaments. Do not show a tournament in your lobby in either case.
Response headers
Cache-Control
private, max-age=30
How long the response stays fresh, in seconds. Never longer than 30 seconds, and shorter when a listed tournament ends sooner.
Vary
x-operator-id
Responses are specific to your operator.
Launching a tournament
The response carries the tournament id and the gameId, so you can launch the right game from your lobby (see Launch Game). The player joins the tournament from inside the game. Deep links straight into the tournament view are not supported.
Polling guidance
Tournaments last a short time, so a lobby needs fresh data, but not on every render. Follow these rules:
Fetch when the player opens the lobby.
While the lobby is visible, refresh no more often than every 30 seconds. Respect
Cache-Control: a cached response is valid until itsmax-ageruns out.Do not poll in the background, or for players who are not looking at the lobby.
On
429 Too Many Requests, stop and retry after the number of seconds in theRetry-Afterheader.On
503 Service Unavailable, keep the last response you have or hide the tournament section, and retry on the next refresh.
Errors
Every error uses the Operator API error shape:
code is stable and safe to branch on. message is for humans, and its wording may change. errors always has at least one entry.
Status
code
Meaning
401
NOT_AUTHORIZED
The x-operator-id or x-api-key header is missing or invalid, or the operator is deactivated. Credentials are checked before anything else, so a bad key returns 401 even for an unknown player.
404
PLAYER_NOT_FOUND
The player is not known to THNDR. This includes players who have never played a THNDR game: they get a 404, not an empty list, until they play their first game.
503
TOURNAMENTS_UNAVAILABLE
Tournaments are temporarily unavailable. The request fails fast (within a few seconds) rather than hanging, so your lobby can carry on without the tournament section.
500
INTERNAL
Unexpected error on our side. It's safe to retry.
Examples:
Last updated