1. Getting Started
Hectic Play Integration
  • Getting Started
    • Introduction
    • Request and Response
    • Signature Guide — HMAC-SHA256
  • Base API
    • Game List
      POST
    • Create Player
      POST
    • Start Game
      POST
    • Kick Player
      POST
    • Update Status Player
      POST
  • Seamless Wallet API
    • Get Player Balance
      POST
    • Settle Round
      POST
    • Cancel Round
      POST
  • Report API
    • Get Bet Detail URL
      POST
  • Appendix
    • Game Supported Languages
    • Base API - Response Codes
    • Report API - Response Codes
    • Seamless Wallet Callback API — Response Codes
  • Game
  1. Getting Started

Request and Response

POST Request#

Request Headers#

Supported request data type: Content-Type: application/json
All POST requests require the following headers:
HeaderTypeRequiredDescription
Content-TypestringYesapplication/json
Accept‑LanguagestringNoLanguage code (default: en)
X-PUBLIC-KEYstringYesAgent's public API key
X-TIMESTAMPstringYesUnix timestamp (seconds)
X-SIGNATUREstringYesHMAC-SHA256 hex signature (see Signature Guide)

Request Body#

All POST requests send parameters as JSON in the request body. Each endpoint defines its own parameters — see individual endpoint documentation for details.
Request Example:
{
  "playerUsername": "johndoe123",
  "currency": "USD"
}

Response#

All API responses are returned in a fixed format:
ParameterTypeDescription
statusstringResponse status code (see Response Codes)
msgstringLocalized message based on Accept-Language header
dataanyResponse content (only present on success with data)

Response Examples#

Object:
{
  "status": "0000",
  "msg": "Success.",
  "data": {
    // object content
  }
}
No data:
{
  "status": "0000",
  "msg": "Success."
}
Error:
{
  "status": "4000",
  "msg": "Invalid request, please check and try again."
}

Supported Languages#

Messages are localized via Accept-Language header:
CodeLanguage
enEnglish (default)
thThai
zhChinese
jaJapanese
koKorean
idIndonesian
msMalay
myBurmese
kmKhmer
loLao
hiHindi
bnBengali
phFilipino
vnVietnamese
ptPortuguese
esSpanish
trTurkish
svSwedish
Modified at 2026-03-20 14:28:28
Previous
Introduction
Next
Signature Guide — HMAC-SHA256
Built with