Check first. Confirm after.
The RGCP API enforces player limits in real time across every licensed operator. Each action is checked before it happens and confirmed after, creating an immutable audit trail with a response-time target under 100 ms.
Integration flows
1. Login gate
- User signs in at the operator
- Operator verifies identity through its KYC provider
- Operator calls
POST /v1/check/login - Registry returns ALLOW RESTRICT or DENY
- Operator enforces the decision before showing games or taking deposits
POST /v1/check/login { "playerRef": "STATE_ABC_12345", "state": "NJ", "operatorId": "OP_CASINO_001", "sessionId": "sess_abc123def456", "timestamp": "2026-01-20T18:03:12Z", "idempotencyKey": "login_uuid_unique" }Response
{
"decision": "ALLOW",
"effectiveAt": "2026-01-20T18:03:12Z",
"reasons": [],
"limits": { "depositDaily": 500, "wagerDaily": 1000, "timeDailyMinutes": 60 },
"remaining": { "depositDaily": 500, "wagerDaily": 1000, "timeDailySeconds": 3600 },
"requiredActions": []
}2. Deposit
- User starts a deposit
- Operator calls
POST /v1/check/depositwith amount and transaction ID - Registry checks daily, weekly and monthly deposit limits across all operators
- If allowed, operator processes the payment
- Operator calls
POST /v1/confirm/depositwith the outcome
POST /v1/check/deposit { "playerRef": "STATE_ABC_12345", "operatorId": "OP_CASINO_001", "amount": 100.00, "currency": "USD", "sessionId": "sess_abc123def456", "txnId": "dep_txn_789xyz", "timestamp": "2026-01-20T18:05:00Z", "idempotencyKey": "deposit_uuid_unique" }Confirm
POST /v1/confirm/deposit { "txnId": "dep_txn_789xyz", "result": "SUCCESS", "providerTxnId": "PAY_PROVIDER_123", "actualAmount": 100.00, "timestamp": "2026-01-20T18:05:15Z", "idempotencyKey": "confirm_deposit_uuid" }
3. Wager
- User places a bet
- Operator calls
POST /v1/check/wagerwith stake and game type - Registry checks wager and loss limits
- If allowed, the bet goes to the game engine
- Operator calls
POST /v1/confirm/wagerwith stake, outcome and net result
POST /v1/check/wager { "playerRef": "STATE_ABC_12345", "operatorId": "OP_CASINO_001", "stakeAmount": 25.00, "gameType": "SLOTS", "sessionId": "sess_abc123def456", "wagerId": "wager_abc_001", "timestamp": "2026-01-20T18:10:00Z", "idempotencyKey": "wager_uuid_unique" }Confirm
POST /v1/confirm/wager { "wagerId": "wager_abc_001", "stake": 25.00, "outcome": "LOSS", "net": -25.00, "timestamp": "2026-01-20T18:10:05Z", "idempotencyKey": "confirm_wager_uuid" }
4. Time-of-play heartbeat
- Operator calls
POST /v1/session/heartbeatevery 60 seconds during a session - Registry adds up time across all operators
- Registry returns CONTINUE WARN or STOP
- On STOP, operator calls
POST /v1/session/endand logs the player out
POST /v1/session/heartbeat { "playerRef": "STATE_ABC_12345", "operatorId": "OP_CASINO_001", "sessionId": "sess_abc123def456", "elapsedSec": 1800, "timestamp": "2026-01-20T18:33:12Z", "idempotencyKey": "heartbeat_uuid" } { "decision": "CONTINUE", "remainingTimeSec": 1800, "reasons": [], "requiredActions": [] }
Event contract endpoints
Exchanges use account funding through /v1/check/deposit, plus three endpoints built for contracts. Orders are checked against self-exclusion, category opt-outs, the age floor, wager limits and the player's position cap.
- Player funds the account:
POST /v1/check/deposit - Player submits an order:
POST /v1/check/order - Exchange accepts or rejects according to the decision
- On a fill:
POST /v1/confirm/orderupdates open exposure - On resolution:
POST /v1/confirm/settlementrecords the net result
| Reason code | Meaning |
|---|---|
CATEGORY_OPT_OUT | Player has blocked this contract category |
POSITION_CAP | Order would exceed the open exposure cap |
AGE_FLOOR | Player is under the state minimum for sports contracts |
SELF_EXCLUDED | Player is on the state self-exclusion list |
POST /v1/check/order { "playerRef": "STATE_ABC_12345", "operatorId": "OP_EXCHANGE_007", "contractId": "NFL-BUF-KC-WIN", "category": "SPORTS", "side": "YES", "quantity": 100, "cost": 62.00, "orderId": "ord_5521", "timestamp": "2026-11-01T20:14:09Z", "idempotencyKey": "order_uuid_unique" }Response
{
"decision": "RESTRICT",
"reasons": ["POSITION_CAP"],
"remaining": { "sportsExposure": 40.00 },
"requiredActions": [
{ "type": "MAX_COST", "value": 40.00 }
]
}
Settlement
POST /v1/confirm/settlement { "orderId": "ord_5521", "contractId": "NFL-BUF-KC-WIN", "resolution": "NO", "net": -40.00, "timestamp": "2026-11-02T04:02:11Z", "idempotencyKey": "settle_uuid" }
All endpoints
| Endpoint | Group | Purpose |
|---|---|---|
POST/v1/players/resolve | Identity | Map an operator's verified player to the state player reference |
POST/v1/check/login | Check | Validate status before platform access |
POST/v1/check/deposit | Check | Check deposit limits before processing payment |
POST/v1/check/wager | Check | Check wager and loss limits before a bet |
POST/v1/check/order | Check | Check an event contract order (exchanges) |
POST/v1/check/withdrawal | Check | Optional: withdrawal pattern checks |
POST/v1/confirm/deposit | Confirm | Report deposit outcome |
POST/v1/confirm/wager | Confirm | Report wager outcome for loss tracking |
POST/v1/confirm/order | Confirm | Report a fill and update open exposure |
POST/v1/confirm/settlement | Confirm | Report a contract's resolution and net result |
POST/v1/confirm/session | Confirm | Optional: aggregated session confirmation |
POST/v1/session/start | Session | Start a session |
POST/v1/session/heartbeat | Session | Update time and get a continue signal |
POST/v1/session/end | Session | Close a session |
GET/v1/players/{playerRef}/limits | State side | Current limits and exclusions |
PUT/v1/players/{playerRef}/limits | State side | Update limits (state portal only) |
POST/v1/players/{playerRef}/exclude | State side | Start self-exclusion |
POST/v1/players/{playerRef}/cooling-off | State side | Start a cooling-off period |
GET/v1/operators/{operatorId}/audit-export | Compliance | Export compliance data for review |
GET/v1/operators/{operatorId}/noncompliance-events | Compliance | Flagged violations and integration issues |
One response shape
Every check endpoint returns the same structure.
{
"decision": "ALLOW | RESTRICT | DENY",
"effectiveAt": "2026-01-20T18:03:12Z",
"reasons": ["COOLING_OFF_ACTIVE", "TIME_LIMIT_EXCEEDED"],
"limits": {
"depositDaily": 500, "depositWeekly": 2000, "depositMonthly": 8000,
"wagerDaily": 1000, "lossDaily": 300, "timeDailyMinutes": 60,
"sportsExposure": 250
},
"remaining": {
"depositDaily": 120, "depositWeekly": 450, "depositMonthly": 3200,
"wagerDaily": 450, "lossDaily": 150, "timeDailySeconds": 900,
"sportsExposure": 40
},
"requiredActions": [
{ "type": "MAX_STAKE", "value": 25 },
{ "type": "DISABLE_DEPOSITS", "value": true },
{ "type": "SHOW_WARNING", "message": "You have 15 minutes remaining today" }
]
}
No limit reached and no active exclusion or cooling-off. Proceed.
Proceed with conditions. Apply every entry in requiredActions, such as a reduced maximum stake, a capped deposit or a warning.
A limit is reached, or the player is self-excluded or cooling off. Block the action and tell the player.
Security and reliability
mTLS required
Mutual TLS between operator and registry. Operators present valid certificates.
OAuth2 client credentials
OAuth2 or signed JWT on top of mTLS. Tokens expire and must be refreshed.
Strict allowlisting
Operators are allowlisted by certificate and operator ID. Everything else is blocked at the network layer.
Idempotency keys
Every check and confirm carries a unique key, so retries never double count.
Unique IDs
txnId, wagerId, orderId and sessionId must be globally unique per operator.
Timestamps
Requests older than 5 minutes are rejected to prevent replay.
Fail-closed
If the registry is unreachable, deny all actions. Maximum protection and no bypass during an outage, at some cost to player experience.
Fail-safe
Allow limited play under cached limits with conservative caps (for example, 50% of normal), and report everything when the registry returns.
The state chooses the failover policy. Operators must implement both modes and follow the state's setting.
Integration support
Ready to integrate?
Get sandbox access, credentials and documentation.