API reference · v1

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.

Security firstmTLS, OAuth2 client credentials, certificate-based operator allowlisting.
FastUnder 100 ms target, 99.99% uptime SLA, regional endpoints.
Check and confirmTwo phases, so an operator cannot check without reporting the outcome.
Audit trailIdempotency keys, globally unique IDs and timestamp verification.
Core flows

Integration flows

1. Login gate

  1. User signs in at the operator
  2. Operator verifies identity through its KYC provider
  3. Operator calls POST /v1/check/login
  4. Registry returns ALLOW RESTRICT or DENY
  5. Operator enforces the decision before showing games or taking deposits
Request
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

  1. User starts a deposit
  2. Operator calls POST /v1/check/deposit with amount and transaction ID
  3. Registry checks daily, weekly and monthly deposit limits across all operators
  4. If allowed, operator processes the payment
  5. Operator calls POST /v1/confirm/deposit with the outcome
Request
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

  1. User places a bet
  2. Operator calls POST /v1/check/wager with stake and game type
  3. Registry checks wager and loss limits
  4. If allowed, the bet goes to the game engine
  5. Operator calls POST /v1/confirm/wager with stake, outcome and net result
Request
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

  1. Operator calls POST /v1/session/heartbeat every 60 seconds during a session
  2. Registry adds up time across all operators
  3. Registry returns CONTINUE WARN or STOP
  4. On STOP, operator calls POST /v1/session/end and logs the player out
Request and response
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": [] }
New · prediction markets

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.

  1. Player funds the account: POST /v1/check/deposit
  2. Player submits an order: POST /v1/check/order
  3. Exchange accepts or rejects according to the decision
  4. On a fill: POST /v1/confirm/order updates open exposure
  5. On resolution: POST /v1/confirm/settlement records the net result
Reason codeMeaning
CATEGORY_OPT_OUTPlayer has blocked this contract category
POSITION_CAPOrder would exceed the open exposure cap
AGE_FLOORPlayer is under the state minimum for sports contracts
SELF_EXCLUDEDPlayer is on the state self-exclusion list
Order check
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"
}
Endpoint reference

All endpoints

EndpointGroupPurpose
POST/v1/players/resolveIdentityMap an operator's verified player to the state player reference
POST/v1/check/loginCheckValidate status before platform access
POST/v1/check/depositCheckCheck deposit limits before processing payment
POST/v1/check/wagerCheckCheck wager and loss limits before a bet
POST/v1/check/orderCheckCheck an event contract order (exchanges)
POST/v1/check/withdrawalCheckOptional: withdrawal pattern checks
POST/v1/confirm/depositConfirmReport deposit outcome
POST/v1/confirm/wagerConfirmReport wager outcome for loss tracking
POST/v1/confirm/orderConfirmReport a fill and update open exposure
POST/v1/confirm/settlementConfirmReport a contract's resolution and net result
POST/v1/confirm/sessionConfirmOptional: aggregated session confirmation
POST/v1/session/startSessionStart a session
POST/v1/session/heartbeatSessionUpdate time and get a continue signal
POST/v1/session/endSessionClose a session
GET/v1/players/{playerRef}/limitsState sideCurrent limits and exclusions
PUT/v1/players/{playerRef}/limitsState sideUpdate limits (state portal only)
POST/v1/players/{playerRef}/excludeState sideStart self-exclusion
POST/v1/players/{playerRef}/cooling-offState sideStart a cooling-off period
GET/v1/operators/{operatorId}/audit-exportComplianceExport compliance data for review
GET/v1/operators/{operatorId}/noncompliance-eventsComplianceFlagged violations and integration issues
Decision object

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" }
  ]
}
ALLOW

No limit reached and no active exclusion or cooling-off. Proceed.

RESTRICT

Proceed with conditions. Apply every entry in requiredActions, such as a reduced maximum stake, a capped deposit or a warning.

DENY

A limit is reached, or the player is self-excluded or cooling off. Block the action and tell the player.

Requirements

Security and reliability

Transport

mTLS required

Mutual TLS between operator and registry. Operators present valid certificates.

Auth

OAuth2 client credentials

OAuth2 or signed JWT on top of mTLS. Tokens expire and must be refreshed.

Access

Strict allowlisting

Operators are allowlisted by certificate and operator ID. Everything else is blocked at the network layer.

Integrity

Idempotency keys

Every check and confirm carries a unique key, so retries never double count.

Integrity

Unique IDs

txnId, wagerId, orderId and sessionId must be globally unique per operator.

Integrity

Timestamps

Requests older than 5 minutes are rejected to prevent replay.

Failover option A

Fail-closed

If the registry is unreachable, deny all actions. Maximum protection and no bypass during an outage, at some cost to player experience.

Failover option B

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.

Support

Integration support

DocumentationOpenAPI specs, an interactive explorer and code samples.
SandboxA full test environment with mock players and every scenario.
SDKsJava, .NET, Node.js, Python, Ruby and PHP.
WebhooksOptional notifications for limit changes and exclusions.
Developer portalCredential management, key rotation and usage monitoring.
Integration teamSupport through certification testing and go-live.

Ready to integrate?

Get sandbox access, credentials and documentation.

Request API access
If you or someone you know has a gambling problem, call or text 1-800-GAMBLER. Free, confidential, 24/7.More help