Skip to Content
Getting StartedDeveloper API — Getting Started

Developer API — Getting Started

Generate an API key, authenticate your requests, and make your first call in minutes.

Getting Your API Key

API keys authenticate your requests to the Staty API. They are required for all POST and PUT (write) operations, and recommended for GET requests to access private data.

Read-only GET requests on public data may not require a key, but all write operations do. When in doubt, include your key — it also unlocks higher rate limits.

How to create a key

  1. Log in to the Staty Admin dashboard 
  2. Go to Settings → API Keys
  3. Click Create API Key
  4. Give the key a descriptive name (e.g. “Schedule Widget”, “Registration Bot”)
  5. Select the scopes your integration needs
  6. Copy the key immediately — it is only shown once

Keys are prefixed sk_live_ for production. Keep them secret — never embed them in client-side JavaScript or commit them to source control.

sk_live_abc123xyz789...

Authentication

All API requests require an Authorization header with a Bearer token:

Authorization: Bearer sk_live_abc123...

Available Scopes

ScopeAccess
read:leaguesRead seasons, tournaments, divisions
read:teamsRead teams and rosters
read:playersRead player profiles and stats
read:gamesRead game schedule and scores
read:registrationsRead registration submissions
write:registrationsSubmit registrations on behalf of users
read:paymentsRead payment status
adminFull read/write access

Make Your First Request

Base URL: https://api.staty.io/api/v1

All responses follow this envelope:

{ "success": true, "data": [ ... ], "count": 5 }

curl

curl https://api.staty.io/api/v1/leagues \ -H "Authorization: Bearer sk_live_..."

JavaScript (fetch)

const res = await fetch( 'https://api.staty.io/api/v1/leagues', { headers: { 'Authorization': 'Bearer sk_live_...' } } ); const { data } = await res.json(); console.log(data); // array of leagues for your org

Explore the API Reference

ResourceEndpoint
Leagues/api/v1/leagues
Tournaments/api/v1/tournaments
Divisions/api/v1/divisions
Registrations/api/v1/registrations
Players/api/v1/players
Games/api/v1/games
Last updated on