For the complete documentation index, see llms.txt. This page is also available as Markdown.

🎲Operator API Overview

⚡ Hand this to your AI agent for Opertor API Integration

Core APIs for Operator API

Operator API caters to all Operators whose goal is to integrate games into a third-party application through Hub88. For this, the following types of APIs are provided:

  • Games API - allows Operators to request and receive the list of available games, which are provided and implemented by Hub88.

  • Wallet API - an API for Seamless wallets, which Hub88 triggers to update the user's balance. For this API, the Operator needs to provide corresponding endpoints based on the given API structures.

  • Freebets API - an API for granting rewards, such as free spins, free bets and prizes to one or multiple users. First-time user's bonuses are supported by most suppliers, however, in some cases a player must interact with the game before a free bet can be granted.

  • Recommendations API - Games' recommendation to an Operator based on player's interactions (game plays) on Hub88 platform.

  • Transactions API - an API which provides a list of all user's gameplay transactions.

  • On-Demand API - Specialized APIs available upon request. For accessing or setting up this functionality, please contact your technical contact on Hub88's side.


Operator SDKs

Operators looking to integrate with Hub88 have the option of utilizing two distinct Software Development Kits (SDKs). These SDKs provide the necessary tools and interfaces to seamlessly connect and manage various functionalities within the Hub88 platform.


Getting started

To get started with setting up your integration with Hub88, you'll need to have the following:

  • a public API key provided by Hub88;

  • a private / public key pair that you generate yourself;

  • an Operator ID provided by Hub88;

  • a Game ID provided by Hub88.

To receive a public key provided by Hub88, you'll need to contact sales@hub88.io. They'll trigger the process from technical integrations side, the process should be as follows:

1

Receive a public key sent from Hub88.

2

To generate a private / public key pair on your side, run the following commands:

  • openssl genrsa -out private.pem 2048

  • openssl rsa -pubout -in private.pem -out public.pem

3

Send the public key to Hub88. Hub88 uses this public key to verify the Games API requests.

Request signing logic for Operator API

The body of all requests will be signed with RSA-SHA256 using the respective private key and encoded to BASE64. The signature will be placed in the X-Hub88-Signature header.

Request signing for Operator API
  • Games API

    • All Games API requests have to be signed by Operator.

    • Hub88 verifies all Games API requests using the public key provided by the Operator.

  • Wallet API

    • All Wallet API requests have to be signed by Hub88.

    • The Operator needs to verify all Wallet API requests using the public key provided by Hub88.

  • All TransferWallet API requests must be signed by the Operator.

We have code examples in a few programming languages, to get you started.

X-Hub88-Signature error:

Ensure the X-Hub88-Signature has no whitespaces or beautifiers. The signature must match the body exactly—any difference will result in an "invalid signature" error.

Example:

  • Private key example for signing the example request here.

Request consistency

Wallet API requests have to be idempotent. All transactions contain a transaction_uuid field. The Operator has to ensure that requests with the same transaction_uuid are not processed twice, while the response has to be the same for all duplicate requests. The operator may ignore the idempotency requirement for the /user/balance call.

API evolution and forward compatibility

Hub88 extends the Operator API over time to support new features. Most of these changes are additive and are released without a new API version. Your integration must be built to accept them.

What Hub88 considers non-breaking

The following changes can be released at any time without a version change:

  • New optional fields in requests Hub88 sends to you (for example, Wallet API calls to your endpoints)

  • New optional fields in responses Hub88 returns to you (for example, Games API, Freebets API and Transactions API responses)

  • New values in existing enum-like fields

  • New endpoints

Breaking changes are announced separately, with a migration path and a deadline. Examples include removing or renaming a field, changing a field's type, or making an optional field required.

What your integration must do

  • Ignore unknown fields. Don't reject a request or response because it contains a field you don't recognise.

  • Tolerate new enum values.

  • Verify signatures on the raw body. Verify X-Hub88-Signature against the exact bytes received, before deserialising. Re-serialising a parsed object drops unknown fields, which changes the body and breaks verification. See Request signing logic for Operator API.

How changes are announced

All Operator API changes are published in the API Changelog. Non-breaking additions are announced at the time of production release. Breaking changes are announced with a migration guide and a deadline for action.

Last updated

Was this helpful?