Runtime expectations
The connector translates your protocol, but the responsibilities on this page belong to your game server no matter what shape the protocol takes. They are the runtime half of the contract: what arrives at your systems, what must leave them, and how both sides stay fast and safe.
Two directions of traffic
Section titled “Two directions of traffic”| Direction | Calls | Purpose |
|---|---|---|
| Aggregator.gg calls you | Launch and session calls | Create a game session and hand back its launch URL |
| You call Aggregator.gg | Bet, win, and refund legs | Settle money for the rounds your games play |
Everything else on this page details one of these two directions.
This page describes the assisted connector path. On the self-serve Canonical Provider API, both directions follow one published protocol instead, specified in CPAPI calls.
Launch and session calls
Section titled “Launch and session calls”When an operator creates a session, the platform calls your game API to create it and expects two things back: a session identifier and a working launch URL. That expectation is strict. If your launch call errors, times out, rejects our credentials or answers without a session identifier, the operator’s POST /v1/sessions fails with a 5xx status, usually HTTP 502 with a flat body such as {"error": "Provider error", "detail": "..."}. There is no per-cause error code on this path, so the cause is found in your logs and ours. Your side of the launch contract:
- Return a session identifier and a well-formed HTTPS URL that opens the game directly.
- Launch calls authenticate: validate our credentials without ceremony and answer quickly.
The E1050-E1056 launch codes in the error reference are not returned on operator launches; the provider cabinet’s game test uses E1054 and E1056.
Agree launch-token lifetime and reuse rules in your connector contract. Treat URLs as session credentials and keep them out of logs; the operator API does not establish a universal single-use rule for every provider.
Bet and win to Aggregator.gg
Section titled “Bet and win to Aggregator.gg”Money settles because your server sends it. Every bet, win, and refund leg is a call from your systems to Aggregator.gg, and the platform verifies the signature on every one of them before anything moves.
The operator-facing wallet callback uses HMAC-SHA256 over the raw body. Provider authentication, signing, canonicalization and replay rules are specific to the agreed connector protocol. Confirm them with the integration team; do not copy the operator signature verifier into a provider protocol without that agreement.
- Amounts are integers in minor units. On normalized operator wallet callbacks each amount is an integer in the currency’s minor units:
500means 5.00 EUR. There are no floats and no major-unit fields. If your protocol quotes amounts differently, the unit mapping is the first thing the connector contract pins down, in writing, before any money flows. - Transaction identifiers are stable. Each leg carries a transaction identifier that never changes across retries. The operator side combines it with provider and trusted integration/organization context, so a retry that mints a new one is not a retry, it is a duplicate charge.
- A declined bet is a normal outcome. A bet the player cannot afford is declined and not placed; your game shows the player a balance problem, not a crash, and sends no win leg for a round that never happened.
- Close every round. Follow the agreed connector’s final-round signal. Some zero cash legs settle internally, while free-round zero wins can still reach the wallet. Do not suppress finality or free-round evidence using a blanket zero-amount rule.
Stability and latency
Section titled “Stability and latency”The money path is synchronous: the player is looking at a spinning reel while your bet call travels to the platform and on to the operator’s wallet. Operators are held to a 5 second response budget with an aim of under 2 seconds at p95, and the whole path only works when each hop spends a small share of it.
What that asks of your side, qualitatively:
- Answer fast, always. Launch answers and money-call handling should be quick enough that the platform’s and operator’s budgets are spent on the network, not on waiting for you.
- Retry transient failures with backoff, same identifier. A failed money call is retried against the platform with the same transaction identifier until it lands or is investigated; it is never silently dropped and never re-minted.
- Degrade loudly. When your side is unhealthy, failing fast beats queueing quietly: a timed-out launch is a recoverable error, a launch that hangs is a stuck player.
Egress IPs and allowlisting
Section titled “Egress IPs and allowlisting”If your assisted integration has an agreed allowlist for callbacks you send to Aggregator.gg, contact support before changing your sending addresses. Tell support which environment is changing so it can confirm the new addresses before you switch.
Confirm the active egress list with the cabinet or support before changing your allowlist. Providers validate against staging before go-live. Deployment configuration can override these source defaults:
| Environment | Egress IP (IPv4) |
|---|---|
| Production | 116.202.36.242 |
| Staging | 46.224.211.29 |
Recheck the active list when configuration changes; the defaults are not a permanent or exhaustive live network contract. The allowlist is an additional network control, never a replacement for verifying signatures: signature verification stays mandatory on both sides regardless of source IP. The same table, with the operator-side guidance, lives in Environments.
When a provider is suspended
Section titled “When a provider is suspended”Suspension is a platform decision. Once the serving path observes the new provider state, new launches are refused with HTTP 403 E1003 provider_suspended, whose message tells operators the provider is not available to them yet, and your games drop out of the catalog that live operator keys see; the error reference tells operators to contact support. Nothing on your side needs special handling beyond the obvious: stop assuming new launches will succeed; already active sessions and outstanding settlement need separate operational handling, and the conversation about why happens with our team through the channel you already use, not through the API.