Integrations/External API
Pro Feature

Production-grade tournament API

A RESTful API designed for platform integrators, tournament platforms, and professional organizers who need programmatic control over the full tournament lifecycle.

Who is this for?

The External API is built for developers and organizations that need to integrate tournament management into their own products and workflows.

Platform builders

Embed tournament brackets, ratings, and leaderboards into your gaming platform or community app.

Professional organizers

Automate result ingestion from streaming overlays, scoring hardware, or bracket management systems.

Data analysts

Pull match data, ELO progressions, and tournament histories into your analytics pipeline.

Built for reliability

Idempotent writes

Every write request requires an Idempotency-Key header. Retries with the same key and body return the cached response — no duplicates, ever.

Rate limiting

Sliding-window rate limits per integration. The standard bucket allows 60 req/min and 1,000 req/hr; matchmaking endpoints have their own dedicated buckets so a queue burst can't starve your tournament writes.

Audit logging

Every API request is appended to an immutable audit log with identity, outcome, entity references, and idempotency key. Debug failures, prove compliance, and track usage without guesswork.

OpenAPI 3.1 + outbound webhooks

Full schema at /api/external/v1/openapi.json for client generation. Subscribe to HMAC-SHA256 signed outbound webhooks (tournament.completed, match.recorded, registration.paid, etc.) with automatic retries and a 1-hour exponential backoff.

Authentication

Authenticate with a Bearer token issued per integration. API keys are hashed with SHA-256 and compared using timing-safe comparison to prevent side-channel attacks. Each integration has its own permission flags (tournaments:read/write, matches:read/write, matchmaking:*) and constraints (allowed_disciplines, allowed_club_ids, max_tournaments_per_day) — request the scope you need when an admin issues your key.

curl -H "Authorization: Bearer YOUR_API_KEY" -H "Idempotency-Key: unique-request-id" \
  https://grassroots.games/api/external/v1/tournaments

Getting an API key

API keys are issued by Grassroots platform admins. Contact the team with your integration name, the permissions you need, and any per-discipline or per-club constraints. The plaintext token is shown to you exactly once — store it securely. Need an integration for development? Ask for a sandbox key with a separate rate limit.

Endpoints

13 partner-facing endpoints covering tournaments, matches, progression, and ratings. Matchmaking endpoints are documented separately on the Matchmaking page.

Tournaments

POST/tournaments
GET/tournaments
GET/tournaments/{id}
PATCH/tournaments/{id}
PUT/tournaments/{id}/participants

Matches & Results

POST/tournaments/{id}/matches
GET/tournaments/{id}/matches
PUT/tournaments/{id}/matches/{matchId}
POST/tournaments/{id}/results-submit

Progression & Standings

POST/tournaments/{id}/advance
GET/tournaments/{id}/standings

Ratings & Leaderboards

GET/leaderboard
GET/ratings/{handle}
GET/users/resolve

Machine-readable schema

The full OpenAPI 3.1 specification is served as a live endpoint. Use it to generate typed clients, validate requests, or import into Postman.

/api/external/v1/openapi.json

Outbound webhooks

Subscribe to platform events delivered to your endpoint over HTTPS. Each delivery is signed with HMAC-SHA256 using your webhook secret and carries headers X-Grassroots-Event, X-Grassroots-Delivery, X-Grassroots-Timestamp, and X-Grassroots-Signature. Failed deliveries retry on an exponential schedule (30s, 2m, 10m, 1h) and quarantine after 5 consecutive failures with a manual replay endpoint.

Event catalogue

  • tournament.completed — final standings published
  • match.recorded — a match result was finalised
  • registration.paid — Stripe Checkout completed
  • registration.refunded — entry fee refunded; slot freed
  • member.joined — new club member confirmed
  • announcement.published — operator broadcast sent

Available on the Pro plan

The External API is a Pro-tier feature. Integration keys are admin-issued — Pro accounts can request one or more keys with configurable permissions, allowed disciplines, and allowed clubs.

View pricing plans