Skip to main content
GET
https://s-apis.oppigames.com/
/
game
/
sessions
Game Sessions
curl --request GET \
  --url https://s-apis.oppigames.com/game/sessions \
  --header 'Content-Type: <content-type>' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-signature: <x-signature>' \
  --header 'x-timestamp: <x-timestamp>'

    {
    "status": "RS_OK",
    "data": {
        "totalPages": 1,
        "currentPage": 1,
        "totalCount": 41,
        "result": [
            {
                "sessionId": "85082d4d-2d6c-4f80-b72f-00b806eea2ab1742893648478",
                "playerId": "MAGICIAN_USER_VISHAL",
                "playerName": "MAGICIAN_USER_VISHAL",
                "gameId": "G1742373671848",
                "gameName": "The magician",
                "status": 1,
                "currency": "EUR",
                "createdAt": "2025-03-25T09:07:28.966Z"
            }
        ]
    }
}

Status

  • 0 = InActive
  • 1 = Active
The status indicates the current state of the user’s game session.

Headers

x-api-key
string
required
A unique identifier associated with operator calling API.
x-signature
string
required
A SHA256 HMAC signature generated using the request body and timestamp. Format: HMAC_SHA256(JSON.stringify(data) + ’|’ + timestamp), signed using the provided secret key.
x-timestamp
string
required
An Unix timestamp (milliseconds) Used to verify the request’s freshness. Ensure the same value is used in signature generation.
The signature will remain valid for only 5 minutes from the provided timestamp.
Content-Type
string
required
Must be set to application/json.

Query Parameters

page
number
default:1
Specifies the current page number for pagination purposes.
limit
number
default:10
Specifies how many records to display on each page, controlling the size of each data segment.
playerId
string
Unique identifier for the player whose game sessions you want to retrieve.
gameId
string
Unique identifier for the game whose game sessions you want to retrieve.

Response

status
string
required
Code indicates status of the request weather it is succeed or failed. We have listed error codes here
data
Data Object

    {
    "status": "RS_OK",
    "data": {
        "totalPages": 1,
        "currentPage": 1,
        "totalCount": 41,
        "result": [
            {
                "sessionId": "85082d4d-2d6c-4f80-b72f-00b806eea2ab1742893648478",
                "playerId": "MAGICIAN_USER_VISHAL",
                "playerName": "MAGICIAN_USER_VISHAL",
                "gameId": "G1742373671848",
                "gameName": "The magician",
                "status": 1,
                "currency": "EUR",
                "createdAt": "2025-03-25T09:07:28.966Z"
            }
        ]
    }
}