Skip to Content
API ReferenceTournaments

Tournaments

A Tournament is a bracket-style competition. Select a bracket size (8, 16, or 32 teams) and the bracket is auto-generated.

Endpoint: /api/v1/tournaments Required scope: read:leagues (read) / admin (write)

Endpoints

MethodPathAuthDescription
GET/api/v1/tournamentsRecommendedList all tournaments for your organization
GET/api/v1/tournaments/:idRecommendedGet a single tournament by ID
POST/api/v1/tournamentsRequiredCreate a new tournament
PUT/api/v1/tournaments/:idRequiredUpdate a tournament

Allowed ?include= roots: paymentProduct, contests, divisions. By default, paymentProduct is returned as an ObjectId — pass ?include=paymentProduct to get it populated. See Query Parameter: ?include=.

Fields

FieldTypeDescription
_idObjectIdUnique identifier
namestringTournament name
prioritynumberDisplay sort order
sportsstring[]Sports played. Default: []
startDatedateTournament start date (optional)
endDatedateTournament end date (optional)
activebooleanWhether the tournament is active. Default: true
configConfigSchemaTournament-level configuration (see Config Hierarchy)
paymentProductObjectIdDefault payment product (ref: PaymentProduct)
organizationObjectIdOwning organization (ref: Organization)
createddateCreation timestamp
updateddateLast update timestamp

Create a Tournament

curl -X POST https://api.staty.io/api/v1/tournaments \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{ "name": "Summer Classic 2026", "sports": ["basketball"], "startDate": "2026-07-12", "organization": "org_id_here" }'

Response:

{ "success": true, "data": { "_id": "tourn_xyz789", "name": "Summer Classic 2026", "sports": ["basketball"], "startDate": "2026-07-12T00:00:00.000Z", "active": true, "organization": "org_id_here", "created": "2026-03-15T10:00:00.000Z" } }

Update a Tournament

curl -X PUT https://api.staty.io/api/v1/tournaments/tourn_xyz789 \ -H "Authorization: Bearer sk_live_..." \ -H "Content-Type: application/json" \ -d '{ "active": false }'
Last updated on