Skip to main content

Overview

  • All the APIs are requested through HTTP

  • All the requests must have Content-Type: application/json; charset=UTF-8 header.

  • All the responses are in JSON.

  • All data in requests and responses are case sensitive.

  • All APIs are based in unix timestamp in seconds in UTC time.

  • All the requests must have the following headers

    • X-Company-Key: <Your_API_Key> header.

      • Company Key is the key pre-agreed between the operator (i.e. a party integrates Eagles games) and Eagles.
    • X-Server-ID: <My_Server_ID> header.

      • Server ID is the game server id provided by the Eagles team

API Endpoints

EnvironmentURLPath
Developmenthttps://example.comapi/v1
Staging
Production

Headers

ParameterTypeDescription
X-Company-KeystringThe key pre-agreed between the operator (i.e. a party integrates Eagles games) and Eagles.
It must be 32 characters
X-Server-IDstringThe game server id provided by the Eagles team
Example: poker-instance-1-staging

Response

{
"data": {
// some data ...
},
"error": {
"id": 0,
"msg": ""
}
}
  • The response data will be enclosed in the field data

  • Please always prioritize the error code, it will be explained later.