Skip to content

Open app

Canonical Provider API

Candidate preview. This page describes the candidate Canonical Provider API v1 contract, candidate manifest SHA-256 c85d92a38cd495f7d8a0cf1b5d4b0c2783abdd90f3c51d4827ca24e24d11ea0e. It is non-normative: it explains the contract and does not define it.

The Canonical Provider API (CPAPI) is the standard, self-serve way for a new studio to connect its games to Aggregator.gg. Instead of a connector our team builds around your protocol, your game server implements one published protocol, and you take every step yourself in the provider cabinet: register your endpoint, issue keys, publish your catalog, pass an automated certification run, and go live.

CPAPI is one protocol between your game server and Aggregator.gg. It has two environments: certification, where an automated run tests your setup against a test wallet, and live, for real traffic. Credentials and sessions belong to one environment and never move to the other.

Assisted integration CPAPI
Protocol Yours; our team builds a connector to it Ours; your server implements it
Setup Together with our team Yourself, in the provider cabinet
Certification A joint run on a sandbox operator An automated run you start from the cabinet
Go-live We open your provider on the network You press Go live once every check is green

CPAPI is the standard path for new studios. For large studios, our team can run an assisted integration instead, by individual arrangement; it is also the fallback where CPAPI does not fit, and Provider onboarding describes it. Studios that already integrate directly keep their existing integration and cabinet pages; the cabinet does not offer them a move to CPAPI.

The protocol has two halves, and each is signed with its own key:

API Direction Base calls Key
Control API Aggregator.gg calls your server POST /v1/sessions, GET /v1/sessions/{session_id}, GET /v1/session-recovery Control key: we sign, your server verifies
Money API Your server calls Aggregator.gg POST /v1/balance, POST /v1/transactions/bet, POST /v1/transactions/win, GET /v1/transactions/{transaction_id} Money key: your server signs, we verify

Every call carries an RFC 9421 HTTP message signature made with HMAC-SHA256. Amounts are integers in minor units: {"currency": "EUR", "amount_minor": 1250} is 12.50 EUR. CPAPI calls specifies both APIs, and CPAPI signatures the signing profile.

The provider cabinet walks you through six steps:

  1. Register your endpoint. Your API origin and launch domains for certification. See CPAPI setup.
  2. Get your keys. Two signing keys, Control and Money. We show each secret once.
  3. Sync your titles. Upload your complete title list as a catalog JSON file.
  4. Pass certification. An automated run of 40 checks: five on your API and the rest on our side, against a synthetic wallet. See CPAPI certification.
  5. See a bet and a win. Part of certification: our test runner sends one sandbox bet and one win to a test wallet. No real money moves, and your server’s own Money calls are not tested before go-live.
  6. Go live. Register your production endpoint and keys, run the production checks, then go live with a fresh authenticator code. See CPAPI go-live.

To start from working code, take the CPAPI reference server: a minimal Node.js server for the Control calls and a Money client, checked against the certification checks on your API.

The catalog comes before certification because a run cannot start without a published catalog. Going live makes your studio eligible; operators still choose when to turn your titles on.

The base pilot covers sessions, balance, bets, wins and transaction status.

  • Full bet refunds. Two optional profiles support POST /v1/transactions/refund. For fiat or crypto, ask your integration contact about ordinary bet refunds for your studio and environment. Open a new session after enablement. For a committed SC or GC bet, follow the US Sweepstakes profile. The base Money API has no general rollback call.
  • Free rounds. CPAPI v1 does not carry free rounds.

Studios that offer virtual play can switch on the optional cpapi-demo.v1 Control module on Credentials. The studio owns the demo balance and display units. See optional demo play.

CPAPI self-service is in rollout. The provider cabinet switches it on only after the matching platform release is accepted, and offers setting it up only to people who can manage credentials. Where it is not switched on, the cabinet shows CPAPI setup as unavailable and saves nothing, and a studio already on CPAPI sees its integration as unavailable rather than being moved to another setup. Where the cabinet does not offer it yet, write to support@aggregator.gg and we agree the next step with you; the assisted path in Provider onboarding does not depend on the rollout.