Overview

The Developer Integration API allows external platforms to integrate with the poker engine, enabling seamless user provisioning, single sign-on (SSO) authentication, balance management, and real-time event notifications via webhooks. Partners authenticate server-to-server using HMAC-SHA256 signed API keys.

This API is designed for platform operators, affiliate networks, and third-party applications that want to embed poker functionality into their existing products. Users on your platform can be automatically provisioned with poker accounts and authenticated without creating separate credentials.

Partner endpoints are prefixed with /api/v1/developer and require HMAC-signed requests. The exceptions are POST /api/v1/developer/register, GET /api/v1/developer/status and the documentation pages under /api/v1/developer/docs, which are public. The browser-side code exchange lives outside that prefix at POST /api/v1/auth/exchange, and is public too.

Architecture Overview

┌─────────────────────┐         HMAC-Signed          ┌──────────────────────┐
│                     │ ─────── Requests ──────────── │                      │
│   Partner Backend   │                               │    Poker Engine      │
│                     │ ◄────── JSON Responses ────── │                      │
└────────┬────────────┘                               └───────────┬──────────┘
         │                                                        │
         │ 1. Generate login code                                 │
         │    POST /developer/auth/code                           │
         │                                                        │
         ▼                                                        │
┌─────────────────────┐                                           │
│                     │  2. Exchange code for session              │
│   Partner Frontend  │ ─────── POST /auth/exchange ─────────────►│
│   (User's Browser)  │                                           │
│                     │ ◄────── Session cookies/tokens ───────────│
└─────────────────────┘                                           │
                                                                  │
                              3. Webhook events                   │
┌─────────────────────┐ ◄──── HMAC-signed POST ──────────────────┘
│  Partner Webhook    │
│  Endpoint           │
└─────────────────────┘

Flow summary:

  1. Your backend makes HMAC-signed API calls to provision users, manage balances, and generate login codes.
  2. Your frontend exchanges a one-time login code to authenticate the user directly on the poker platform.
  3. The poker engine sends signed webhook events to your backend when relevant actions occur (user changes, balance changes, deposits and withdrawals).

Table of Contents

GuideDescription
QuickstartGet playing in 5 minutes — provision a user and log them in
AuthenticationHMAC-SHA256 signing explained with examples in Node.js, Python, PHP, and cURL
SSO IntegrationSingle sign-on flow — cookie sessions vs. API tokens
User ProvisioningCreate and manage poker accounts linked to your platform users
Balance OperationsRead and modify user balances with idempotent transactions
WebhooksSubscribe to real-time events and verify webhook signatures
Error ReferenceComplete list of error codes with causes and resolutions
Security Best PracticesAPI key storage, IP allowlisting, key rotation, and more
API ReferenceComplete endpoint reference with schemas and examples

Available Scopes

Scopes control what actions an API key can perform. Assign the minimum scopes needed for your integration.

ScopeDescriptionEndpoints
user:createProvision new users and update profilesPOST /developer/users, PUT /developer/users/:id
user:readRead user detailsGET /developer/users/:id
auth:codeGenerate single-use login codes for SSOPOST /developer/auth/code
balance:readRead user balancesGET /developer/users/:id/balance
balance:writeCredit and debit user balancesPOST /developer/users/:id/balance/credit, POST /developer/users/:id/balance/debit
webhooks:manageSubscribe to and manage webhook eventsPOST /developer/webhooks, GET /developer/webhooks, DELETE /developer/webhooks/:id

Supported Webhook Events

Event TypeDescription
user.createdA new user was provisioned via the Developer API
user.updatedA user’s profile was updated via the Developer API
deposit.confirmedA user’s deposit was confirmed
deposit.failedA user’s deposit failed
withdrawal.completedA user’s withdrawal was completed
withdrawal.failedA user’s withdrawal failed
balance.creditedBalance was credited via the Developer API
balance.debitedBalance was debited via the Developer API

Getting Started

  1. Obtain API credentials — Register as a partner via POST /developer/register (if self-registration is enabled) or contact the platform administrator.
  2. Read the Quickstart — Provision your first user and generate a login code in under 5 minutes.
  3. Implement HMAC authentication — All API calls from your backend must be signed.
  4. Set up SSO — Choose cookie mode (browser session) or token mode (bearer tokens) for user authentication.
  5. Subscribe to webhooks — Get real-time notifications for user, balance, deposit, and withdrawal events.

Rate Limits

EndpointLimit
POST /developer/register5 per hour per IP
GET /developer/status3 per minute per IP
POST /auth/exchange10 per minute per IP
All HMAC-authenticated endpointsConfigurable per API key (default: 100 per minute)

When a rate limit is exceeded, the API returns HTTP 429 with the error code RATE_LIMIT_EXCEEDED. Responses to the per-key limit include a Retry-After header with the seconds to wait.

Feature Toggle

The Developer API is controlled by a platform-wide feature toggle (developerApi). When disabled, every endpoint except the documentation pages returns HTTP 403, including registration, the status check and POST /auth/exchange. The documentation endpoints remain accessible regardless of the toggle state, so you can read the docs before the feature is enabled.

{
  "success": false,
  "error": {
    "code": "AUTHORIZATION_ERROR",
    "message": "Feature 'developerApi' is currently disabled"
  }
}

The Developer API is part of the Enterprise license tier. On a lower tier the same endpoints return 403 with the code FEATURE_TIER_RESTRICTED.

Try the live demo Pricing

Have questions about Poker Engine? We reply fast.