Appearance
Admin API — Overview
The Admin API lets your own platform's admin panel manage the Oddyne sportsbook of the sites you run: risk groups and limits, bet delays, market settings, combine bonuses, cashout, tickets and reports, translations, and the sports catalogue and matches those settings refer to. It is the same functionality the Oddyne operator backoffice offers — the same rules, the same validation, the same audit log — exposed server to server so you can build the screens in your own panel.
It covers the online sportsbook only. Retail (betshops), street networks, invoices and partners are not part of it.
Server-side only
The Admin API key can change risk limits and payouts. Call the API only from your backend. Never send the key to a browser, a mobile app or a log line. If a key leaks, ask us to rotate it — the old key stops working within 30 seconds.
Base URL
https://operator-api.oddyne.com/integration/v1Every path in these docs is relative to it. The version is part of the path: a change that could break your integration ships as /integration/v2; v1 only ever gains fields and endpoints.
Authentication
Send your key on every request, either way:
http
Authorization: Bearer sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxhttp
X-Api-Key: sk_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxA key belongs to one client (your platform). We issue it at onboarding together with:
- the sites it may act on — any number, across operators; and
- its scopes — what it may do on them.
GET /sites returns both, so your backend can discover them at start-up.
Scopes
| Scope | Opens |
|---|---|
catalog.view | Sports catalogue (sports, categories, tournaments) and matches |
sportsbook.view | Site settings, market settings, market groups, combine bonus templates (read) |
sportsbook.configure | The same, write — including live betting on/off, wallet URL, and rotating the player launch key |
risk.view | Risk groups, risk limits, market limits, bet delays (read) |
risk.manage | The same, write |
cashout.configure | Cashout policy (read/write) and a ticket's cashout offer history |
tickets.view | Tickets, ticket selections and wallet events, players, the by-match report |
reports.view | Reports |
uicopy.configure | Translations of the player UI (read/write) |
A call without the scope it needs answers 403 with code integration.missing_scope.
Sites
Site data lives under the site's id:
/sites/{siteId}/risk-groups
/sites/{siteId}/cashout
/sites/{siteId}/tickets
…The site in the path is the only site the call acts on. If you also send siteId or site_id in the query or in a JSON body, it is replaced by the path's. A site your key does not hold answers 403 integration.site_not_allowed — the same answer for a site that does not exist.
Objects addressed by id under a site belong to that site: a risk group of another site answers 404, even when your key holds that other site too.
The catalogue, matches and dictionaries are shared by all sites and live at the top level: /catalog/…, /matches, /enums.
Who made the change: X-Actor
Every write (POST, PUT, DELETE) must say which of your admins made it:
http
X-Actor: [email protected]It is recorded in the sportsbook audit log as integration:<client>:<actor> next to the change, so a limit changed at 3 a.m. can be traced to a person, not to "the platform". Up to 128 characters: letters, digits, spaces and @ . _ + - :. A write without it answers 400 integration.actor_required. On reads it is optional (and logged when sent).
Your panel decides which of your admins may do what. The key's scopes are the ceiling of what any of them can do through it.
Responses
Every response is a JSON envelope:
json
{ "success": true, "code": "ok", "data": { … } }Lists add the unpaged total:
json
{ "success": true, "code": "ok", "data": [ … ], "meta": { "total": 1342 } }Errors carry a stable machine code and an English message for logs:
json
{ "success": false, "code": "validation.bad_body", "error": "invalid request body", "data": null }Branch on code, never on error. Lists are [], never null, when empty.
Common error codes
| HTTP | code | Meaning |
|---|---|---|
| 400 | validation.bad_body | Malformed JSON, or a field the endpoint does not know (unknown fields are rejected, not ignored) |
| 400 | integration.actor_required | A write without a valid X-Actor |
| 401 | integration.invalid_key | Missing, unknown or disabled key |
| 403 | integration.missing_scope | The key lacks the scope this endpoint needs |
| 403 | integration.site_not_allowed | The key does not hold this site |
| 404 | not_found | No such object on this site |
| 409 | various | A conflict the message explains (e.g. a duplicate name) |
| 422 | validation.bad_body, validation.invalid_id | A field value is invalid |
| 503 | db_unavailable | A dependency is down; retry with backoff |
| 500 | internal_error | Our fault; retry later, and tell us if it persists |
Each endpoint page lists the codes specific to it.
Rate limit
Each integration key may make 20 requests a second, with bursts of 60. Above it the API answers 429 with Retry-After: 1 and code integration.rate_limited; wait and retry. Limits of the player API and the wallet callback timeout are on docs.oddyne.com.
Pagination
List endpoints take limit and offset and return meta.total. Each endpoint documents its default and maximum limit and what happens above the maximum — some cap it, some fall back to the default. Page with the documented maximum or less.
Conventions
- JSON field names are camelCase, except where an endpoint documents otherwise (some risk endpoints take
site_id-style names; the page says so). - Times are RFC 3339 in UTC (
2026-11-19T18:00:00Z). - Money values are JSON numbers with at most two decimals; odds are JSON numbers too. Keep money in a decimal type on your side; do not do arithmetic on them as binary floats.
- Ticket ids are 64-bit and sent as strings. Some other ids (a match's market ids in particular) are 64-bit JSON numbers that exceed 2^53: in JavaScript parse them with a big-number-aware JSON parser or they will be rounded.
Changes reach players
Most settings take effect for new bets within seconds — the sportsbook services re-read configuration continuously. Risk limits apply to the next bet; they never change a bet already accepted. Cashout policy applies to the next offer.
Player-facing data
The Admin API is for managing the sportsbook. What a player sees — live list, bulletin, priced odds (with your margins), bet slip, cashout — your frontend reads from the public player API with the sportsbook frontend core. See Operations → Player-facing data.
Next
- Quick start — your first calls
- Risk & markets — risk groups, limits, bet delays, market settings, combine bonus
- Site controls — market types, ticket detail, player risk, featured events, bet builder, site settings
- Operations — sites, dictionaries, catalogue, matches, cashout, tickets, reports, translations
- OpenAPI — the machine-readable contract