Documentation sections
What is open to the outside#
| Interface | Who calls | Address | How access is checked | Status |
|---|---|---|---|---|
| Operator API | an operator system | https://api.seltenlabs.com/v1 | an API key with an IP allowlist | live |
| Wallet for game providers | a game provider | /api/provider/{provider}/{op} | an HMAC-SHA256 signature | live |
| Vendor webhooks | a vendor (KYC today) | /api/hooks/kyc/{code} | the vendor signature | live |
| MCP | an AI agent or a partner system | https://mcp.seltenlabs.com/mcp | an API key with the MCP permission and an IP allowlist | live |
The operator API by key#
The same operations the back office runs on: players, ledger, payments, bonuses, games, KYC, messaging, catalogues. /v1/... at api.seltenlabs.com corresponds to /api/admin/....
| Key property | How it works |
|---|---|
| Format | Authorization: Bearer slk_.... Shown once at issue; only the hash is stored, a lost key is rotated. |
| Rights | Its own, of the form section:level, levels view and edit. A key cannot carry more rights than the person who issues it holds. |
| Projects | The list of projects (geos) the key may reach. The project of a request is set by the X-Project header, otherwise the first project of the key is used. |
| Lifetime | Set at issue, up to 3650 days, or none. |
| IP allowlist | Mandatory: one to 100 networks (CIDR); a network wider than /16 for IPv4 is refused. A call from another address: 403 ip_not_allowed, and the answer names the address the platform sees. |
| Limits | 600 requests a minute per key (429 rate_limited); 30 wrong keys a minute from one address. |
| Checks | On every call and bypassing the session cache: a revoked key, a new allowlist or a changed right takes effect from the next request. |
What a key cannot do
- Access to staff accounts and rights, integrations and their secrets, network, mirror, the owner console, the event bus: these paths are not in
/v1. - Creating money or bypassing a person's decision: a manual balance correction, granting a bonus to a player, cancelling a round, approving a withdrawal despite a failed blocking check, switching on real message delivery.
- Changing the settings of withdrawal checks, payouts, payment methods, trust rules and duplicate-account rules: reading only.
- Withdrawal decisions (approve, decline, pay) are not available to a key: its withdrawals right is view-only.
Where to issue: core - Access - API keys (the api_keys right). Each operation in the reference names the right it needs. Reference: Swagger UI, the document /openapi/platform.json.
Wallet for game providers#
A game provider (or an aggregator) calls the platform on every movement of a player's money. The balance is never kept at the provider: it is always the platform's.
| Call | What it does |
|---|---|
balance | The player's balance: what the player can stake (the real and bonus wallets together). |
bet | A bet: a debit. The game catalogue decides before any money moves: the provider and the game are active, the bet is within limits, no country restriction applies. |
win | A win: a credit. With finished: true the round closes. A win is never refused by catalogue rules: what is owed to a player always goes through. |
rollback | A rollback of a bet by ref_transaction_id. A rollback of an unknown bet leaves a tombstone (a rollback marker with a zero amount). |
Signature: HMAC-SHA256 over the raw body, the hex result in the X-Signature header; an invalid signature gets 401. Idempotency: the key is the pair of provider and transaction_id. Amounts are integers in minor currency units.
The full list of fields, example requests, error codes and outcomes: api.seltenlabs.com, the document /openapi/wallet.json.
Webhooks#
A vendor calls the platform itself. Identity checks work this way today: the result of a case arrives at POST /api/hooks/kyc/{vendor code}.
- The vendor signature is required: an unsigned call gets 401 and goes into the exchange log.
- The body is at most 1 MB. A repeat of the same status changes nothing, and a closed case is not reopened.
- The vendor must be connected: for built-in and planned ones the answer is 404.
MCP#
The address is https://mcp.seltenlabs.com/mcp, the Model Context Protocol over Streamable HTTP, without sessions. Only tools are offered: there are no resources and no prompts.
- Access: MCP needs its own API key: it works only here, and /v1 answers it with 403
mcp_key_only. The key has its own rights, projects, lifetime and a mandatory IP allowlist. The limit is 600 calls a minute per key; the answer size is capped. - Tools: 15, summaries of statistics, finance and games, the withdrawals queue, integration and cascade state, ledger-check counts, system state, player search and card, comments, bonus offers. A key sees those it holds the right for.
- Personal data is masked before delivery, a search by e-mail or phone is refused, and text written by people arrives marked as data.
- Changes only by a
request_changerequest (a comment, a tag, an invitation); a person with the right executes or rejects it in the core, on the "MCP requests" page. Money, rights, withdrawals and bonuses are not among the actions. Every call is logged.
The tools, their rights and how to connect a client: mcp.seltenlabs.com.