API Access Needed From Operator
Operators are required to provide specific endpoints to Gamanza Engagement Platform to facilitate the fundamental integration. Further details regarding these endpoints can be found below.
Integration
In order to provide a proper API integration, the operator's platform should provide endpoints requested by the Gamanza Engage Platform. The Gamanza Engage Platform supports the following authentication methods that should be implemented by the operator's platform:
- API Key
- OAuth2.0 client_credentials
The configuration options for these authentication methods are provided in the Admin website.
Flows:

-
The PEP authenticates with the Auth0 Operators Authorization Server using its Client ID and Client Secret ( /oauth/token endpoint).
-
Auth0 Operators Authorization Server validates the Client ID and Client Secret.
-
Auth0 Operators Authorization Server responds with an Access Token.
-
The PEP can use the access token to call an API on behalf of itself, using the
x-authorizationHTTP header. -
The API responds with requested data.
Operators Platform API Authentication Config
To register your platform authentication method into Gamanza Engage please follow the next steps:
- Log in to your Admin Dashboard Instance and navigate to System Settings. Find the menu called Platform Integration, click on that and then find the Operators Platform API Authentication Config:

- Update your configuration, by choosing the authentication method and adding the required information. Two authentication methods are supported:
- API Key
- OAuth Client Credentials


And that's it!! Now the Gamanza Engage Platform can send requests to your Systems.
API Endpoints Required From Operator
The relevant endpoints for Operator API are:
Bonus Credit
The Operator needs to provide the Credit Bonus API endpoint to ensure the Gamanza Engagement Platform can automate the bonus crediting.
The player should become eligible for the bonus immediately upon activation. However, whether the Operator is processing bonus interactions with their players will determine this.
For more details check the Open API Specification here.
To assign a bonus to players, please take into consideration that you as an operator need to validate this request as
idempotent. We send special properties called eventDate and requestId to help you identify duplicate requests.
For example, if your API returns an error (timeout, econnreset, rate-limit, 400, 500, etc.), our platform performs a
retry using a backoff mechanism and we send the entire request again until one of the following conditions is met:
- The request succeeds
- The max retry is reached -> the platform performs up to 5 retry operations
We always send the entire request back, and we expect you to process the bonus in the background since this API expects a 202 status code (202 Accepted status code means that the request has been accepted for processing, but the processing has not been finished yet).
Here is some documentation about HTTP Status codes and their meaning: HTTP response status codes
Send Message Relay Proxy
Today Gamanza Engage sends CRM messages through its own providers. The Send Message Relay Proxy hands an already rendered message to your platform, so you can deliver it with your own provider and the CRM can still track the result. The body is not a Mailjet, SendGrid, or Routee payload.
Implement POST /api/crm/v1/send-message. Return 202 before you call your own provider, then process the send in the background. Only 202 is success. Any other response activates a retry: 200, 4xx, 5xx, a timeout, and a transport error. PEP retries that handoff up to 10 times.
Each request is one channel. The batch size is 100 players.
On receipt:
- Validate the body.
- Store batchId, callback, and every item.
- Return 202 within a few seconds. Do not call your provider, look up a contact, or wait for delivery before that response.
Two keys:
| Key | Identifies | What you do |
|---|---|---|
| batchId | This request | Persist it with the item playerDeliverId values before 202. A known batchId, in progress or finished, returns 202 and does not deliver again. If the content differs, keep the content you accepted first. |
| playerDeliverId | One player | The delivery id of that player. Persist it. Do not deliver a second message for that id. Return 202 for that id when the batchId is one you already stored. The platform does not put that player on a new batchId while the first batch can still be accepted. If you already delivered that id, do not deliver it again. |
A failed batch is retried with the same batchId, the same players, and the same playerDeliverId values. Content is rendered again and may change. Keep the first accepted content.
Content. items[].content matches channel. One request is one channel. A field from another channel is not on that object.
| Channel | Required | Optional |
|---|---|---|
| subject, html, fromEmail | fromName, replyTo | |
| sms | text | — |
| on_site | contentHtml, language | templateType, isHtmlContent |
| web_push | title, body | url, icon, image, actions |
| push_in_app | title, body, language | url, icon, image |
| rich_inbox | title, message, contentHtml | language, templateType, displayType, buttonText, buttonUrl, imageUrl, terms, snackbarIcon, snackbarText, snackbarButtonText, snackbarContentHtml |
Email has no text. SMS has no from. On-site has no title and no body. Rich inbox has no body and no html.
Include Contact Point
Include Contact Point is a CRM setting. It is off by default. If you need Gamanza Engage to send contact information, ask your CSM to turn it on, and make sure the player's contact information is registered in Gamanza Engage.
When it is off, the request does not include an email, a phone number, or a push subscription. Gamanza Engage is not responsible for finding the recipient. You determine it from playerId, according to the channel.
When it is on, the request adds only that channel's contact, taken from the player stored by Register Player or Update Player.
On-site and rich inbox never send contact. Those channels are always addressed by playerId.
After your provider reports a result, you can POST one event per player to callback.url. Sending the events is optional. If you do not send them, the analytics are not shown in the CRM section. Send channel, eventType, occurredAt, playerDeliverId, and playerId at the root. playerDeliverId and playerId are the values from that send item.
For the field-by-field contract, check the Open API Specification here.
Bonus List
To ensure a seamless experience for casino operators and marketing agents, you should provide a Bonus List and Filter API. Enabling this API allows bonuses to appear as user-friendly dropdowns within the platform, minimizing human error when configuring new rewards in PEP.

If you don't implement the Bonus List API, your Casino Operators will have to use a text input to add the Bonus Offer ID.

For more details check the Open API Specification here.
Important Considerations of the Bonus List Filters
The filter properties should support multiple values to accommodate integrations that require additional information. These filters enable the PEP Admin UI to display the appropriate options based on your integration’s specific requirements.
For customers that have a standard/simple bonus engine where only the name is required, the API requests the data based on simple filters like so:
HTTP GET: https://your-api.customer-server-domain.com/api/bonus/v1/get-bonus/all?page=1&perPage=10&filterBy=name&filterValue=BonusWelcome
| Query Params | Value |
|---|---|
| page | 1 |
| perPage | 10 |
| filterBy | name |
| filterValue | BonusWelcome |
When we need to pass extra filters, a common approach would be to allow multiple values for the filterBy and filterValue parameters, by using a list in the query string.
HTTP GET: /api/bonus/v1/get-bonus/all?page=1&perPage=10&filterBy[]=name&filterValue[]=BonusWelcome&filterBy[]=currency&filterValue[]=CRC
| Query Params | Value |
|---|---|
| page | 1 |
| perPage | 10 |
| filterBy[] | name |
| filterBy[] | currency |
| filterValue[] | BonusWelcome |
| filterValue[] | CRC |
On your backend side, depending on the framework you’re using, you would need to iterate through the query parameters and collect filterBy and filterValue pairs. In many web frameworks, query parameters with the same key can be handled as an array or list. For example:
filterBy[]=name&filterValue[]=BonusWelcome&filterBy[]=currency&filterValue[]=CRC
Building the query logic:
After capturing the filter criteria, you can then construct your database query or data filtering logic to apply each filter.
For example:
const filterBy = req.query.filterBy || [];
const filterValue = req.query.filterValue || [];
// Create an object to hold the filters
const filters = {};
for (let i = 0; i < filterBy.length; i++) {
filters[filterBy[i]] = filterValue[i];
}
Please take into consideration that even if you support multiple filters, if in the request there is only one filter
criterion, our system performs the request sending only one key and one value like so: filterBy=name&filterValue=BonusWelcome
Only if we detect an extra filter, we send the request in array form: filterBy[]=name&filterValue[]=BonusWelcome&filterBy[]=currency&filterValue[]=CRC
This is to keep backward compatibility with existing integrations
Filters play a key role in enhancing the Admin UI, making it easier for your marketing team to work efficiently. At a minimum, the name filter must be implemented. Based on your integration requirements, you are responsible for adding any additional filters needed to support your use case.
Player Verify Session
One of the main and required endpoints is the Player Session Verification Process. As you can see in the intro section, our UI Widgets need to authenticate the players to secure the player requests from your Casino UI to our platform.
As we don't have access to validate or verify your players' authentication, we depend on you to verify the current player session and its validity. This endpoint works as an "SSO", where you act as an Identity Provider.
Our widgets configuration requires something called an identity token. We need you to implement an API to receive this value and validate if the player has a valid and an active session. Once we receive your confirmation, adding the Player ID in response we can create our own authorization process.
For more details check the Open API Specification here.
Check out our Widgets Client API Flow for more details.
This request is performed only once, the first time the Widgets are initialized in your Casino UI or when the session between the widgets and our server expires.
Reconciliation API
If you are using the CRM and by regulation there is information that your players need to meet for receiving Marketing campaigns, PEP can identify if there is missing information for the players that you register in our platform.
To ensure data alignment between your platform and PEP, it's essential to develop a reconciliation process. This process serves as a fail-safe to guarantee that if PEP detects any missing player information, you (the operator) will be notified to sync the missing information using PEP's player CRUD operations. To avoid regulation issues, the reconciliation requests are stored in an audit log.
For more details check the Open API Specification here.