Quickstart
The fastest path is an API key and curl. Keys are issued from an authenticated session — if you don’t have an account yet, the demo league shows you the product first.
1. Issue an API key
Sign in, then create a key with the CLI — it calls POST /api/v1/api-keys under the hood.
peer10 login <email> <password> # or: peer10 login --api-key <existing key>
peer10 admin api-keys create --name "my-script"2. Call the API
curl -H "x-api-key: p10_live_..." https://peer10.com/api/v1/seasonsEvery endpoint is in the reference; responses are JSON with a top-level data field.
3. When you want types
import { Peer10Client } from '@peer10/sdk';
const client = new Peer10Client({
baseUrl: 'https://peer10.com',
apiKey: 'p10_live_...',
});
const seasons = await client.seasons.list();See the SDK guide — including client.request, the typed escape hatch that reaches every endpoint the mounted resources don’t cover.
4. Mutations worth previewing
For significant changes, use the changeset workflow — simulate, review the diff, approve, execute, and undo if you were wrong.