Tournaments

Post tournaments

Send your tournaments to travelball from your own system. Each one shows on the app with “Posted by” your organization's name and a check mark, and only your key can change it or take it off.

Get a key

Ask for access on the page for tournament organizers. We read each request. When we let you in, we email you a link to your organization's page on app.travelball.gg/organization.

Make your key there. We show it once, so keep it on your server. It starts with tb_org_ and has 32 letters and digits after that. One organization has one key. “Replace key” makes a new one and stops the old one at once.

The key is free. It reads and changes your own tournaments and nothing else.

The address and the key

https://api.travelball.gg/tournaments/v1

Send the key in this header with every request:

Authorization: Bearer tb_org_…

A key in the address is refused, before anything else is read. Send each body as JSON.

Your tools can read every call, field and refusal from one file. Download the OpenAPI file.

Add or change one tournament

PUT /tournaments/{id} adds the tournament, or changes it if that id is already yours. Send your whole list each night if you like: we keep one copy of each.

curl -X PUT https://api.travelball.gg/tournaments/v1/tournaments/spring-classic-2027 \
  -H "Authorization: Bearer tb_org_…" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "spring-classic-2027",
    "name": "Lone Star Spring Classic",
    "sport": "fastpitch",
    "firstDay": "2027-03-06",
    "lastDay": "2027-03-07",
    "city": "Round Rock",
    "state": "TX",
    "divisions": [
      {
        "ageGroup": "10U",
        "name": "Open",
        "feeDollars": 595
      },
      {
        "ageGroup": "10U",
        "name": "AA"
      },
      {
        "ageGroup": "12U"
      }
    ],
    "ballparks": [
      {
        "name": "Old Settlers Park",
        "city": "Round Rock",
        "state": "TX",
        "lat": 30.5233,
        "lng": -97.6456
      }
    ],
    "feeDollars": 550,
    "gamesGuaranteed": 4,
    "contactName": "Tournament desk",
    "contactEmail": "desk@example.com",
    "contactPhone": "(512) 555-0142",
    "website": "https://example.com/events/spring-classic",
    "note": "Pool play Saturday, bracket Sunday."
  }'

The answer is 201 with "added", or 200 with "changed" or "unchanged". The tournament comes back with every field you sent, and these:

201 Created

{
  "result": "added",
  "tournament": {
    "id": "spring-classic-2027",
    "name": "Lone Star Spring Classic",
    …
    "travelballId": "k17bq0x9m3d2tz8w6c4n5r1y7s2a3f4h",
    "status": "listed",
    "postedBy": "Lone Star Fastpitch Events",
    "addedAt": "2026-11-27T21:04:11.000Z",
    "updatedAt": "2026-11-27T21:04:11.000Z"
  },
  "version": "v1",
  "generatedAt": 1795813451000
}
What an answer adds
FieldWhat it is
travelballIdOur id for the tournament.
status"listed", or "hidden" when we took it off the lists.
postedByYour organization's name, as families see it.
addedAt, updatedAtISO times.

A tournament that fails a check is refused with 400 and the code bad-tournament. The message says what to fix.

Send many at once

POST /tournaments takes up to 100 tournaments in one send, each with its id. One bad tournament is refused with one sentence; the others are saved.

curl -X POST https://api.travelball.gg/tournaments/v1/tournaments \
  -H "Authorization: Bearer tb_org_…" \
  -H "Content-Type: application/json" \
  -d '{ "tournaments": [ { "id": "spring-classic-2027", … }, { "id": "summer-slam-2027", … } ] }'
{
  "results": [
    {
      "id": "spring-classic-2027",
      "result": "unchanged"
    },
    {
      "id": "summer-slam-2027",
      "result": "refused",
      "code": "bad-tournament",
      "message": "Send the city and its two-letter state."
    }
  ],
  "version": "v1",
  "generatedAt": 1795813540000
}

Read your tournaments

GET /tournaments lists your tournaments that have not ended. GET /tournaments/{id} reads one, with each division's capacity and teams.

curl https://api.travelball.gg/tournaments/v1/tournaments \
  -H "Authorization: Bearer tb_org_…"

Take one off

DELETE /tournaments/{id} deletes the tournament.

curl -X DELETE https://api.travelball.gg/tournaments/v1/tournaments/spring-classic-2027 \
  -H "Authorization: Bearer tb_org_…"
{
  "id": "spring-classic-2027",
  "result": "deleted",
  "version": "v1",
  "generatedAt": 1795813635000
}

Who is coming

PUT /tournaments/{id}/teams sets the teams registered in one division, and how many teams it allows. Each send replaces that division's whole list. Send it again when a team signs up or pays.

curl -X PUT https://api.travelball.gg/tournaments/v1/tournaments/spring-classic-2027/teams \
  -H "Authorization: Bearer tb_org_…" \
  -H "Content-Type: application/json" \
  -d '{
    "ageGroup": "10U",
    "name": "Open",
    "capacity": 24,
    "teams": [
      {
        "name": "Round Rock Rattlers 10U",
        "confirmed": true
      },
      {
        "name": "Hutto Heat",
        "confirmed": false
      }
    ]
  }'
{
  "id": "spring-classic-2027",
  "result": "changed",
  "division": {
    "ageGroup": "10U",
    "name": "Open",
    "capacity": 24,
    "registered": 2,
    "confirmed": 1
  },
  "version": "v1",
  "generatedAt": 1795813562000
}

ageGroup and name pick the division. Leave the name out for an age group's only division. capacity is a whole number from 1 to 128, or null for no limit. A division lists up to 128 teams, each name 1 to 60 characters, and the same name twice is refused. An empty list clears it. A division the tournament does not have is refused with bad-tournament.

Team names are plain words from you. travelball never links them to a team in the app.

The fields of a tournament

Tournament fields
FieldNeededRule
idYesYour own id for it: 1 to 100 letters, digits, dots, dashes, underlines or colons. Send the same id again to change it.
nameYesUp to 80 characters.
sportYes"baseball" or "fastpitch".
firstDayYesYYYY-MM-DD. Not in the past, and within 18 months. A tournament already under way keeps its first day.
lastDayYesYYYY-MM-DD. At most 14 days after the first day.
city, stateYesThe city and its two-letter state. We look the city up on the map.
divisionsYes1 to 30. Each has an ageGroup (6U to 18U), a name (leave it out for an age group's only division) and its own feeDollars when it differs. The same division twice is refused.
ballparksNoUp to 5. Each has a name, a city, a state, lat and lng.
feeDollarsNoWhole dollars, up to 20,000.
gamesGuaranteedNo1 to 20.
contactNameNoNeeds a contactPhone or a contactEmail with it.
contactEmail, contactPhoneNoHow a coach reaches you.
websiteNoStarts with https://. Families press it to sign up.
noteNoUp to 500 characters. Never a child's name.

Limits

Limits
WhatLimit
Requests each minute, for one key60
Tournaments in one send100
Open tournaments for one organization2,000

Asking too fast is refused with 429 for a short time. Wait, and send again.

Refusals

Every refusal has the same shape. The message is one sentence you can show a person.

{
  "error": {
    "code": "not-found",
    "message": "Nothing with that id."
  }
}
Refusal codes
CodeStatusWhat it means
not-authenticated401No key, or a key we do not know.
key-in-url400The key was in the address. Send it in the header.
access-stopped403We stopped this organization's access.
not-found404None of your tournaments has that id.
bad-request400The body is not JSON, or is too large.
bad-tournament400A tournament or a division failed a check. The message says which.
too-many-tournaments409Your open tournaments are at the limit.
rate-limited429Too many requests this minute. Wait and send again.
map-down503We could not look up the city just now. Send again later.
internal500Something went wrong on our side.

An id that is not yours answers as if it does not exist.

What families see

Each tournament shows on the travelball app with “Posted by” your organization's name and a check mark. Nobody else can change it or copy it. When a person already added the same tournament by hand, yours is offered first as the one to keep.