CPAPI setup
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 first three cabinet steps prepare the certification environment: an endpoint we can call, two signing keys, and your catalog. A certification run uses all three and cannot start until they are in place. Production gets its own endpoint and keys later, on Credentials, as CPAPI go-live describes.
Before you start
Section titled “Before you start”On a new studio’s Pulse, Integration and Credentials pages, the cabinet shows Set up CPAPI next to a note about integrating with our team. Opening the form saves nothing. Saving your first endpoint links your studio to CPAPI, and from then on the cabinet’s other setup steps are closed to it.
| Action | Who can do it |
|---|---|
| View endpoints, key details without secrets, the catalog and run reports | Owner, admin or member |
| Register or edit endpoints | Owner or admin |
| Issue, rotate or revoke keys | Owner or admin |
| Publish the catalog | Owner or admin |
| Turn demo play on or off | Owner or admin |
| Run certification and production checks while your studio is not live, unless a current pass would be reset | Owner, admin or member |
| Run them on a live studio or when a current pass would be reset, go live | Owner or admin |
This table describes Owner, Admin and Member. People already assigned an older role keep their existing access, as Organization roles explains. For example, someone already assigned Engineer can still run certification and production checks and go live, subject to the same setup, readiness and authenticator requirements. Engineer is no longer offered for new invitations or role changes.
A new run takes a live studio out of live and invalidates the pass it replaces. So that a member’s check never costs your studio its certification, the cabinet refuses a member’s run on a live studio and when it would reset a pass that is still current, and also after your studio was linked to a different provider code on our side. A member can start a run whenever no pass with your current setup would be reset: before the first pass, after a failed run, and once a change has made the pass out of date. Organization roles covers the whole team. Turn on two-factor authentication on your profile early: publishing the catalog, production changes and Go live ask for an authenticator code.
Register your endpoint
Section titled “Register your endpoint”Your certification endpoint is registered in the first step, Register your endpoint, in one form with two parts:
- API URL. The origin of your Control API:
https://, a host name and an optional port, with no path, query or IP address. The host must be a public DNS name that already resolves to public addresses when you save; we do not call private addresses. A path keeps certification blocked until you remove it. If your firewall limits who can reach this host, allow the addresses that Credentials lists under Our source IPs, also listed in Environments; signatures stay mandatory either way. - Launch domains. The exact host names your launch URLs use, up to 32 of them. The form saves without one, but certification needs at least one. A launch URL on any other host is a failed launch.
Registering an endpoint does not issue keys, certify you or make you live. Your production endpoint is registered the same way on Credentials when you reach production setup. After you change your certification endpoint, run certification again, then the production checks. After changing only your production endpoint, repeat the production checks.
Get your keys
Section titled “Get your keys”Issue two keys: a Control key, which we use to sign our calls to your API, and a Money key, which your server uses to sign its calls to our Money API. Keys belong to a registered endpoint, so register the endpoint first.
- Each secret is shown once, when the key is issued: 32 random bytes in base64. Store it in your secret manager straight away; it cannot be retrieved later.
- A lost answer is safe to retry. If the answer to an issue request is lost, try again from the same page: the request is never applied twice, and the retry returns the key without its secret. Rotate the key to get a new secret.
- Key IDs name their environment and purpose, for example
cpapi_certification_control_…andcpapi_certification_money_….
CPAPI signatures covers how each key signs, rotation and revocation. After changing a certification key, run certification again, then the production checks. After changing only a production key, repeat the production checks; your certification pass stays current if nothing else affecting it has changed. If you use demo play, a new Control key turns it off until you enable it again.
Sync your titles
Section titled “Sync your titles”Upload your complete catalog as one catalog v1 JSON file: an object with exactly two keys, schema_version set to 1 and titles, a list of 1 to 1000 titles. The file is at most 1 MiB and must be strict JSON: a field name used twice in one object is refused. The cabinet offers a downloadable example.
| Field | Required | Rule |
|---|---|---|
provider_game_id |
Yes | Your identifier for the game, once per file. It must match ^[A-Za-z0-9._:-]{1,128}$: 1 to 128 ASCII letters, digits, ., _, : or -. Our session requests send it as game_id |
name |
Yes | Display name, up to 256 characters |
game_type |
Yes | The game class, for example slots, up to 24 characters |
rtp |
Yes | A number from 0 to 100 with at most two decimals |
rtp_source |
Yes | Where the RTP comes from, for example your verified math sheet reference, up to 512 characters |
thumbnail_url |
Yes | A public https URL on a DNS host name, up to 2048 characters. Once you are live, operators get our copy of the picture, as described below the table |
supported_currencies |
Yes | 1 to 200 currency codes we support, each once |
languages |
For US Sweepstakes titles | Include sc_en for the adapted English build. |
sweepstakes |
For US Sweepstakes titles | The candidate profile, exact build digest and countries: ["US"]. See the profile and wire contract. |
brand, category, description |
No | Text: brand and category up to 256 characters, description up to 4096 |
has_mobile, has_desktop |
No | Set each supported device to true. An omitted device flag defaults to true. |
has_demo |
No | Set to true explicitly for titles that implement virtual play. Operator demo availability also requires your current environment to have enabled the optional demo module. |
blocked_countries |
No | Up to 250 two-letter uppercase country codes, each once. We refuse launches from these countries before we call your API |
min_bet, max_bet |
No | Decimal strings such as "0.10", with at most 20 digits before the point and 18 after, and min_bet no more than max_bet. Information for operators: our Money API does not check bets against them, so your game enforces them |
bet_limits_currency |
With bet limits | Required when either bet limit is set and not allowed otherwise; one of your supported_currencies |
Text values must not be blank or contain control characters.
US Sweepstakes titles
Section titled “US Sweepstakes titles”If your studio enables Support Sweepstakes Mode, the Catalog step shows whether your current publication contains a US social title. For each social title, include sc_en in languages and list the coins that build actually supports in supported_currencies. An SC-only title lists ["SC"], a GC-only title lists ["GC"], and a title offering both lists both. Add the cpapi-sweepstakes.v1 object with countries: ["US"] and your English social build’s actual lowercase SHA-256 digest. While your studio is live, a published profile offers the title to every US Sweepstakes operator, with no per-title approval. See the title profile, who can launch it and an example.
The authenticated provider cabinet publishes the file with PUT /api/cpapi/{environment}/catalog. The environment is certification or production. The wizard sends your signed-in session and selected organization, the catalog fields, a fresh authenticator code and an idempotency key. An accepted publish returns outcome: "published" with the new catalog revision and its total title count. A refused publish leaves the previous catalog current. Use the downloadable Sweepstakes example from the Catalog step and replace its sample build digest with your game’s digest.
These are the fields to add to the title object in a GC-only studio feed. Replace the example digest with the digest of the English social build you serve.
{ "supported_currencies": ["GC"], "languages": ["sc_en"], "sweepstakes": { "profile": "cpapi-sweepstakes.v1", "countries": ["US"], "build_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" }}A missing profile on a title marked with a social coin or sc_en receives HTTP 400 and error: "sweepstakes_title_profile_required". A malformed explicit profile receives HTTP 400 and error: "invalid_catalog". Both responses include guidance on the required fields.
The studio can read its current optional setup at GET /api/cpapi/{environment}/readiness in the same cabinet session. This response excerpt describes three distinct published social titles. Two support SC and two support GC, so one supports both.
{ "readiness": { "sweepstakes_catalog": { "title_count": 3, "sc_title_count": 2, "gc_title_count": 2 } }}Counts cover the current publication shared by the studio’s two environments. A declared studio with no qualifying titles receives three zeroes. The field is absent for a studio that did not declare support. Operator browse also checks the studio’s live readiness, the operator’s opt-in and the title’s US visibility. Every Sweepstakes operator sees each title under its published coins. An operator that selects the title and turns your studio on can launch it, with no separate launch permission or enrollment.
You can publish ordinary titles in the same catalog. A full replacement that omits your last social title withdraws it from Sweepstakes discovery and returns the Sweepstakes setup step to pending. Your ordinary catalog, existing certification and live status continue under the usual catalog replacement rules.
Once you are live, we copy each title’s picture into our own storage, and operators get our copy. Serve each picture as PNG, JPEG or WebP, at most 10 MiB, without a redirect. A picture your server answers with 404 or 410 shows a placeholder, and we ask for it again after 7 days; after any other failure we keep your link and try again after a day. To change a picture, publish it under a new URL, for example with ?v=2: new art under the same URL may not replace our copy.
{ "schema_version": 1, "titles": [ { "provider_game_id": "your-game-id", "name": "Your game", "game_type": "slots", "rtp": 96.5, "rtp_source": "Your verified math sheet reference", "thumbnail_url": "https://cdn.example.com/game.png", "supported_currencies": ["EUR"], "has_mobile": true, "has_desktop": true, "has_demo": false, "min_bet": "0.10", "max_bet": "100", "bet_limits_currency": "EUR" } ]}Publishing replaces the whole catalog: titles you leave out stop taking new launches, and a refused file publishes nothing. We never guess an RTP and never turn titles on for operators; Catalog requirements explains why every RTP needs a named source. One catalog serves both environments, and you publish it from this step. Publishing the catalog asks for a fresh authenticator code each time. A new catalog takes launches at once and keeps your certification, your production checks and, once you are live, your live status. A certification run or production checks still under way when you publish end without a result, so start them again.
Authenticator codes
Section titled “Authenticator codes”Certification endpoint and key changes need no code. Publishing the catalog and production changes do:
| Action | Authenticator code |
|---|---|
| Change your production endpoint | One code, unless you entered any code in this browser session in the last 15 minutes: each code you enter covers your endpoint changes for 15 minutes |
| Issue, rotate or revoke a production key | A new code each time |
| Turn production demo play on or off | A new code each time |
| Go live | A new code |
| Run production checks | None |
| Publish the catalog | A fresh code each time |
Besides a code for each catalog publish, a first go-live therefore takes up to four codes: one for your production endpoint, one for each production key, and one for Go live. Each code works once; for the next change, wait for the next code in your authenticator app. Codes have 6 digits. After 5 wrong codes within 15 minutes, wait 15 minutes before you try again.