dartpilot Public API
Read-only REST API for dartpilot games, lobbies, boards, players, and tournaments. Authenticate every request with an API key in the x-api-key header. Create a key from the API Keys section of your profile; see https://docs.dartpilot.app/api-keys/. Each key is granted read scopes (games, tournaments, account) when it is created; a request to an endpoint outside a key’s scopes returns 403. Responses carry an x-d1-bookmark header identifying the D1 version they were read from; send it back and the next session starts at least as new as that version. Read endpoints are served from an edge cache for 5-60 seconds; a request that sends x-d1-bookmark always misses that cache, so the header still guarantees a session at least as new as that version.
Rate limits: each API key is limited to 120 requests/minute, each principal (user or organization) to 600 requests/minute across all of its keys, and each client IP to 600 requests/minute. Requests over a limit return 429 with a Retry-After header.
https://api.dartpilot.app/v1Account
Identify the API key owner.
Games
Read the key owner’s games and their events.
- GETList games
/games - GETList live games
/games/live - GETList game events
/games/{id}/events - GETGet a live game summary
/games/{id}/summary - GETGet a game
/games/{id}
Boards
Read public board status and the game currently on a board.
Lobbies
Discover public lobbies and read the lobbies the key owner may view.
Players
Read player profiles, friends, statistics and game history for the key owner and their friends.
- GETList the key owner's friends
/players/me/friends - GETGet a player
/players/{id} - GETGet player statistics
/players/{id}/statistics - GETGet a player's game trend
/players/{id}/trend - GETList a player's recent games
/players/{id}/games
Tournaments
Discover public tournaments and follow the key owner’s tournaments, their brackets, and live match games.
- GETList tournaments
/tournaments - GETGet a tournament match
/tournaments/{id}/matches/{matchId} - GETGet a tournament
/tournaments/{id}