Launch Game
Launches a slot or live game and returns a URL for the player.
Endpoint
POST https://api.nexusggr.comContent-Type: application/json
Request
Method: game_launch
Slot game
JSON
{
"method": "game_launch",
"agent_code": "your_agent_code",
"agent_token": "your_agent_token",
"user_code": "test",
"provider_code": "PRAGMATIC",
"game_code": "vs20doghouse",
"lang": "en",
"rtp": 92,
"lobby_url": "https://your-site.com/lobby"
}Live game
JSON
{
"method": "game_launch",
"agent_code": "your_agent_code",
"agent_token": "your_agent_token",
"user_code": "test",
"provider_code": "EVOLUTION",
"game_code": "nxpkul2hgclallno",
"lang": "en",
"lobby_url": "https://your-site.com/lobby"
}For live games,
game_codeis optional. When empty, a lobby URL is returned.
| Field | Type | Required | Description |
|---|---|---|---|
method | string | Yes | Must be game_launch |
agent_code | string | Yes | Your agent code |
agent_token | string | Yes | Your agent API token |
user_code | string | Yes | Player identifier, no whitespace |
provider_code | string | Yes | Provider code |
game_code | string | Optional | Game code (optional for live lobby) |
lang | string | Yes | Language code (e.g. en) |
rtp | number | No | Target RTP for this launch, 0 or more; a value above 999 is treated as 999. Not used for live or sports games. If omitted or 0, the user's configured RTP is used |
lobby_url | string | No | URL to redirect the player when they exit the game. Omit it if there is none: an empty string is rejected |
Response
Success
JSON
{
"status": 1,
"code": 7777777,
"msg": "SUCCESS",
"fc_code": "fc1024",
"launch_url": "http://pragmaticplay.oaxznmnojw.net/...",
"token": "9f2b6c1e7a4d3f8b0c5e2a1d6b7f4c3e"
}Failure
JSON
{
"status": 0,
"code": 7770407,
"msg": "provider_code EVOLUTION is currently disabled"
}