Knowledge · Casino API

What is a Casino API? Architecture, callbacks and how operators integrate

A casino API is the unified interface that lets a licensed operator launch certified casino games from many studios — slots, live dealer, table, crash and instant-win — through one HMAC-signed integration instead of dozens. This article defines the term, walks through the architecture, and shows the integration flow used by AS Tech iGaming.

Updated January 2025 · AS Tech iGaming editorial

Definition

A casino API is a REST (and often WebSocket) interface that exposes game catalogue, launch URLs, and wallet callbacks for a portfolio of certified casino games. Operators call the API to render a lobby, generate a per-player launch URL, and answer wallet callbacks (balance, bet, win, rollback) initiated by the games.

When the catalogue covers many studios behind a single API, the provider is called a game aggregator. AS Tech iGaming aggregates 80+ tier-1 studios into one API.

Architecture

A standard casino API integration has four moving parts:

  1. Aggregator API — owned by AS Tech, signs requests with HMAC-SHA256.
  2. Operator backend — holds the wallet of record and answers callbacks.
  3. Game studio servers — run the actual game logic; never talk to the operator directly.
  4. Player frontend — loads the launch URL inside an iframe or new tab.

All money flows through the operator's wallet. Bets are atomic — a failed callback triggers an automatic rollback, so the player's balance is never left in an inconsistent state.

Wallet callbacks

Four callbacks cover 99% of cases:

  • balance — return the player's current real-money balance.
  • bet — debit the player; must be idempotent on transaction_id.
  • win — credit the player; usually paired with the original bet id.
  • rollback — reverse a previous bet or win in case of failure.

Each request is HMAC-signed; the operator MUST verify the signature before mutating the wallet.

Integration timeline

With AS Tech, the typical timeline is:

  • Day 1 — sandbox keys issued, HMAC signing verified.
  • Days 2–3 — game-list ingest, launch URL working in iframe.
  • Days 4–5 — wallet callbacks implemented and rollback-tested.
  • Week 2 — UAT, KYC checks, production keys and go-live.

Frequently asked questions

What is a casino API?+

A casino API is a REST or WebSocket interface that lets an operator launch certified casino games (slots, live dealer, table, crash) from one or many studios without integrating each studio separately. It typically exposes game lobby, launch URL, balance, bet, win and rollback endpoints.

How is a casino API different from a game aggregator?+

A casino API is the technical interface. A game aggregator is the company that operates that interface and signs commercial deals with studios on the operator's behalf. AS Tech iGaming is both — a B2B aggregator with a single HMAC-signed API covering 5,000+ games.

How long does casino API integration take?+

With AS Tech, a competent backend team can complete sandbox integration in 3–5 working days: HMAC signing, game-list fetch, launch URL, wallet callbacks (balance/bet/win/rollback) and a settlement test. Production go-live usually follows within two weeks once KYC and licensing checks are complete.

Is the casino API HMAC-signed?+

Yes. Every request and callback is signed with an HMAC-SHA256 secret tied to the operator key. The secret never travels in the URL and is rotated on demand from the operator panel.

Does the casino API support multi-currency and crypto?+

Yes. AS Tech supports fiat (USD, EUR, INR, BRL and more) plus on-chain USDT (TRC-20/ERC-20) wallets. Bet/win amounts are denominated in the operator's base currency; settlement can be in USDT.