Base URL
All endpoints in this section are rooted at:Conventions
- Transport: HTTPS only.
- Encoding: JSON. Send
Content-Type: application/jsonon every request that has a body. - Response envelope: With a couple of well-marked exceptions (
/affiliate/getAffiliateCommission,/exchange/getOddsForAveragePrice), every successful response is wrapped:{ "data": <payload> }. - Identifiers: Game ids, participant ids, and order ids are MongoDB
ObjectIDstrings (24-character hex). - Odds: All odds are American format (negative for favorites, positive for underdogs) unless noted otherwise.
- Time: All timestamps are ISO 8601 with
Z(UTC).
Authentication
Almost every endpoint requires authentication: one credential in theAuthorization header. For a program, create an API key on your account page and send that. Otherwise log in once via POST /user/login and send the returned token. The Authentication overview compares the two.
Per-order errors vs HTTP errors
The “place” and “edit” endpoints accept batches and return per-order results. A successful HTTP200 response can still contain individual order failures inside data.createdSessions[i]. See the per-order error shape on each endpoint page.
HTTP-level errors (4xx, 5xx) are returned as { "error": "<message>" }.
Rate limiting
See Rate limiting.Timeouts
Requests that take longer than 15 seconds server-side are aborted and return503 with body { "error": { "message": "Network Error", "code": 503 } }.
Real-time updates
The REST API pairs with the WebSocket Streaming API for real-time orderbook ticks and per-account fill / settle events. The same credential, key or token, works for both.Endpoint index
API keys
Create a key for your program and use it everywhere.
Log in
Exchange a password for a 30-day login token.
User
Account info, balance, bets, and orders.
Orders
Place, edit, look up, and cancel orders.
Markets
Browse leagues, games, participants, and the orderbook.
Affiliate
Affiliate commission.
Legacy Postman collection
The previous documentation lived as a Postman collection. It is preserved for reference. These Mintlify docs are now the source of truth — the Postman collection may lag behind for new endpoints, parameters, or response shapes.4Casters API — Postman collection
View the legacy Postman documentation