Games catalog API

The platform can provide Smartico with a simple HTTP REST API to expose the list of Casino games and/or Sports events or expose this information from the DB and provide access to this DB.

This information will be used to associate Missions and Tournaments with exact games on the Platform, show names and images, and link the user to the game page.

To have this option, the external system should provide REST HTTP/S API available with GET/POST methods and return a JSON array with the id/name/image/link of all games (or similar information can be provided via DB). Example of response

[
    {
        "id": 123,
        "name": "Super slot",
        "link": "https://sone.com/game1",
        "image": "https://some.com/1.png",
        "enabled": true,
        "game_categories": [
            { "id": 22, "name": "Slots" },
            { "id": 23, "name": "Live" }
        ],
        "game_provider": "RTG",
        "game_provider_id": 33,        
    },
    {
        "id": 124,
        "name": "Super slot 2",
        "link": "https://sone.com/game1",
        "image": "https://some.com/1.png",
        "enabled": true,
        "game_categories": [
            { "id": 24, "name": "Poker" }
        ],        
        "game_provider": "Playtech",
        "game_provider_id": 34,                   
    },
    ....
]

Notes:

  • API should be publicly available but can be protected with static keys for Basic Authorization of static secret tokens in HTTP headers.

  • Game categories and "provider" are optional fields. they are used only to easier search for specific games

For multiple brands managed under one label, the game catalog should be shared between all labels (in other words, the game catalog is defined on the label level and not specific per brand).

The link field can be related to the site's root (to be relative), e.g., "/start-game/game1," or it can be empty. In case the link is empty, the front-end of the casino platform should take responsibility to lauch the game by handling the callback from smartico -

_smartico.on('ach_game_opening', (r) => console.log(r));

// the r object will have information about the game in the followign format
r = {
    "ach_game_id": 32, // ID of the game on smartico side
    "game_public_meta": { 
        "image": "https://mysite.com/images/card_2x/1x2gaming-InstantFootball-1674738298.jpg",
        "name": "Instant Football",
        "enabled": true
    },
    "ext_game_id": "56", // the ID of the game on the provider side
    "context": "mission" // context of the callback - mission or tournament
};

Last updated