All endpoints are under /api/v1. Requests and responses use JSON.
Authenticated endpoints require the Authorization: Bearer <session_token> header.
POST /api/v1/auth/register Register a new player
POST /api/v1/auth/login Login, returns session token
POST /api/v1/auth/refresh Refresh session token
curl -X POST /api/v1/auth/register \
-H 'Content-Type: application/json' \
-d '{"username": "player1", "password": "secret123", "display_name": "Player One"}'{"player_id": "...", "session_token": "...", "username": "player1"}curl -X POST /api/v1/auth/login \
-H 'Content-Type: application/json' \
-d '{"username": "player1", "password": "secret123"}'{"player_id": "...", "session_token": "...", "username": "player1"}GET /api/v1/players/:id Get player profile
PUT /api/v1/players/:id Update own profile
GET /api/v1/friends List friends
POST /api/v1/friends Send friend request
PUT /api/v1/friends/:id Accept/reject/block
DELETE /api/v1/friends/:id Remove friend
POST /api/v1/groups Create group
GET /api/v1/groups/:id Get group
POST /api/v1/groups/:id/join Join group
POST /api/v1/groups/:id/leave Leave group
GET /api/v1/wallets List player wallets
GET /api/v1/wallets/:currency/history Transaction history
GET /api/v1/store List store catalog
POST /api/v1/store/purchase Purchase item
GET /api/v1/inventory List player items
POST /api/v1/inventory/consume Consume item
GET /api/v1/leaderboards/:id Top N entries
GET /api/v1/leaderboards/:id/around/:player_id Around player
POST /api/v1/leaderboards/:id Submit score
POST /api/v1/matchmaker Submit matchmaking ticket
GET /api/v1/matchmaker/:ticket_id Check ticket status
DELETE /api/v1/matchmaker/:ticket_id Cancel ticket
GET /api/v1/tournaments List active tournaments
GET /api/v1/tournaments/:id Get tournament details
POST /api/v1/tournaments/:id/join Join tournament
GET /api/v1/matches/:match_id/votes List votes for a match (newest first, max 50)
GET /api/v1/votes/:id Get a single vote with full results
Voting itself happens over WebSocket. See the Voting guide.
GET /api/v1/chat/:channel_id/history Message history (paginated)
Real-time chat messages are sent and received over WebSocket.
GET /api/v1/notifications List notifications (paginated)
PUT /api/v1/notifications/:id/read Mark as read
DELETE /api/v1/notifications/:id Delete notification
GET /api/v1/saves List save slots
GET /api/v1/saves/:slot Get save data
PUT /api/v1/saves/:slot Write save (with version for OCC)
GET /api/v1/storage/:collection List objects
GET /api/v1/storage/:collection/:key Read object
PUT /api/v1/storage/:collection/:key Write object
DELETE /api/v1/storage/:collection/:key Delete object