Skip to Content
Getting started

Getting started

What you get from us, what you give back, and where you call.

Operator code and secret key

We create your operator in our backoffice and give you two things:

  • Operator code: your secureLogin on every call you make. 3 to 32 characters, lowercase letters, digits and -, starting with a letter or a digit. It never changes.
  • Secret key: 43 characters. It signs every call in both directions (Signatures). It is shown once, when it is made; keep it on your servers only. A rotation gives you a new one (Key rotation).

The test secret key test-secret-0007 on this guide’s examples is not a real key.

Operator currencies

Your operator currencies are the currencies your players play in, agreed with us: at least one. A launch picks one of them, and a launch in any other currency is refused with 21 (Launch). Amounts are sent at the currency’s precision.

What you give us

WhatRule
Wallet URLThe address we send your wallet callbacks to; we add the path (/bet, …) to it. http(s). On production it must be https and a public host.
IP allowlistThe addresses your servers call us from: IPv4 or IPv6 addresses and CIDR ranges, at least one. A call from any other address is refused 403 IP not allowed. On production a range covering every address is refused.

Changed in v1.1: the IP allowlist takes CIDR ranges; v1.0 matched exact addresses only. See Changes from v1.0.

Environments and base URLs

Your launch and close go to the base URL plus the path, for example <base URL>/markets/start.

EnvironmentUseBase URL
Sandboxintegrating and testing, no real money; live nowhttps://operator-api-dev-prediction.heragaming.tech
Productionyour playersto be announced

Each environment has its own operators: credentials from one do not work on another.

Sandbox

The sandbox is the development environment. It moves no real money.

  1. Play through the demo operator. Open demo-dev-prediction.heragaming.tech , pick a starting balance and launch. The demo operator is an operator like you: it signs a real launch and the platform calls its wallet. Trade a market end to end and watch what arrives (Market lifecycle). To see a refusal, launch a new player (no player parameter) with errorOnBet or errorOnResult. The value is not an error code: it is how many of the player’s /bets (or /results) the demo wallet answers as usual, and every later one is refused with error 100. For example /api/v1/launch?balance=1000&errorOnBet=0 refuses every /bet.
  2. Get your own test operator. Ask us for a test operator code and secret key in the sandbox, and give us your test wallet URL and IP allowlist. Your launches then go to the sandbox base URL and the platform calls your real wallet, with test money.
  3. When everything on Going live holds in the sandbox, ask for your production credentials.