API Documentation

Developers

API Documentation

RESTful API, WebSocket notifications and sandbox testing environment.

RESTful API
RESTful API

User management, game sessions, deposits and withdrawals. All endpoints use JSON.

WebSocket
WebSocket

Real-time notifications for balance updates and game results.

Sandbox Environment
Sandbox Environment

Secure development with test data. Test the entire flow before going live.

Endpoint Examples

POST/api/v1/usersCreate new user
GET/api/v1/users/{id}User information
PUT/api/v1/users/{id}/balanceUpdate balance
POST/api/v1/users/{id}/sessionStart session
const res = await fetch(
  'https://api.softagon.net/v1/users',
  {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer KEY',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      username: 'player123',
      currency: 'EUR',
      country: 'DE'
    })
  }
);
const user = await res.json();

Details

Error Codes & Best Practices

The most common scenarios and recommended solution steps during integration.

CodeMeaningRecommendation
AUTH_401Unauthorized request / invalid keyCheck API key and IP whitelist
RATE_429Rate limit exceededRetry with backoff and use batch requests
WALLET_409Operation repeated / idempotency conflictTransaction ID must be unique
SESSION_410Session expiredCreate a new session and reopen the game
PROV_503Provider is temporarily unavailableShow fallback provider/game stream
CONFIG_422Incomplete/incompatible configurationCheck merchant/provider settings
TIMEOUT_504Upstream timeoutImplement retry/backoff, verify with status endpoint
Idempotency
Idempotency

The same transaction is not applied twice in payment and wallet endpoints. Transaction ID strategy is critical.

Security
Security

Access management with HTTPS mandatory, key rotation and least privilege principle.

Webhook

Use verification signature for payment and game events, set retry and timeout policy.

{
  "id": "evt_01HXYZ...",
  "type": "payment.succeeded",
  "created_at": "2026-01-01T12:34:56Z",
  "data": {
    "merchant_id": "m_123",
    "tx_id": "tx_789",
    "amount": 100.00,
    "currency": "EUR",
    "status": "succeeded"
  }
}

FAQ

Developer FAQ

Quick answers about the sandbox, API keys and integration workflow.

Works with sandbox test data and has no financial impact. Real payment and provider flows are deployed in the live environment.

Signature header and payload hash are matched. In case of incorrect signature, the request is rejected and logged.

Implement retry with exponential backoff. If possible, manage catalog/report requests via batch or cache.

A session can end when its TTL expires, the user logs out or the provider times out. Create a new session and redirect the user to the game.

Go live with Softagon
Manage infrastructure, integration and back-office management for casino and sportsbook operations in a single panel.
S
Softagon

Software behind betting brands. Connecting product and operations.

SOFTAGON

© 2026 Softagon. All rights reserved.

Let's plan your project together

Create a free website with Framer, the website builder loved by startups, designers and agencies.