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
}| Field | What it is |
|---|---|
travelballId | Our id for the tournament. |
status | "listed", or "hidden" when we took it off the lists. |
postedBy | Your organization's name, as families see it. |
addedAt, updatedAt | ISO 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.
The fields of a tournament
| Field | Needed | Rule |
|---|---|---|
id | Yes | Your own id for it: 1 to 100 letters, digits, dots, dashes, underlines or colons. Send the same id again to change it. |
name | Yes | Up to 80 characters. |
sport | Yes | "baseball" or "fastpitch". |
firstDay | Yes | YYYY-MM-DD. Not in the past, and within 18 months. A tournament already under way keeps its first day. |
lastDay | Yes | YYYY-MM-DD. At most 14 days after the first day. |
city, state | Yes | The city and its two-letter state. We look the city up on the map. |
divisions | Yes | 1 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. |
ballparks | No | Up to 5. Each has a name, a city, a state, lat and lng. |
feeDollars | No | Whole dollars, up to 20,000. |
gamesGuaranteed | No | 1 to 20. |
contactName | No | Needs a contactPhone or a contactEmail with it. |
contactEmail, contactPhone | No | How a coach reaches you. |
website | No | Starts with https://. Families press it to sign up. |
note | No | Up to 500 characters. Never a child's name. |
Limits
| What | Limit |
|---|---|
| Requests each minute, for one key | 60 |
| Tournaments in one send | 100 |
| Open tournaments for one organization | 2,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."
}
}| Code | Status | What it means |
|---|---|---|
not-authenticated | 401 | No key, or a key we do not know. |
key-in-url | 400 | The key was in the address. Send it in the header. |
access-stopped | 403 | We stopped this organization's access. |
not-found | 404 | None of your tournaments has that id. |
bad-request | 400 | The body is not JSON, or is too large. |
bad-tournament | 400 | A tournament or a division failed a check. The message says which. |
too-many-tournaments | 409 | Your open tournaments are at the limit. |
rate-limited | 429 | Too many requests this minute. Wait and send again. |
map-down | 503 | We could not look up the city just now. Send again later. |
internal | 500 | Something 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.