Configuration
Test Execution
Test Results
No tests run yet. Click "Run All Tests" to begin.
cURL Commands
Copy these commands to test APIs manually
JWTGenerate Token (Local JWT)
JWT token is generated locally using the secret key
# JWT Payload:
{
"agent": "<agentId>",
"iat": <current_timestamp>,
"exp": <timestamp + 1 week>
}
# Sign with HS256 algorithm using secretKey: demosecretPOSTAuthentication - Login
<baseUrl>/api/v1/auth/login
curl -X POST '<baseUrl>/api/v1/auth/login' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <optToken>' \
-d '{
"username": "<userId>",
"opToken": "<optToken>",
"gameCode": "<slotCode>",
"betLimit": 1,
"currency": "THB",
"lang": "th-TH"
}'POSTGet Balance
https://operator-api.iamteamsg.com/api/v1/callback/balance
curl -X POST 'https://operator-api.iamteamsg.com/api/v1/callback/balance' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <gameToken>' \
-H 'op-token: <optToken>' \
-d '{
"agent": "<agentId>",
"username": "<userId>",
"gameCode": "<slotCode>",
"currency": "THB",
"ip": "192.168.1.1",
"type": "balance"
}'POSTTransfer Out - Bet
https://operator-api.iamteamsg.com/api/v1/callback/transferOut
curl -X POST 'https://operator-api.iamteamsg.com/api/v1/callback/transferOut' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <gameToken>' \
-H 'op-token: <optToken>' \
-H 'x-request-id: <uuid>' \
-d '{
"agent": "<agentId>",
"username": "<userId>",
"gameCode": "<slotCode>",
"currency": "THB",
"transId": "<uuid>",
"amount": 10,
"detail": { "bet": { "betAmount": 10, "betLevel": 2, "directions": [] } },
"ip": "192.168.1.1",
"type": "bet"
}'POSTTransfer In - Payout
https://operator-api.iamteamsg.com/api/v1/callback/transferIn
curl -X POST 'https://operator-api.iamteamsg.com/api/v1/callback/transferIn' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <gameToken>' \
-H 'op-token: <optToken>' \
-H 'x-request-id: <uuid>' \
-d '{
"agent": "<agentId>",
"username": "<userId>",
"gameCode": "<slotCode>",
"currency": "THB",
"transId": "<uuid>",
"amount": 20,
"detail": { "settle": { "betAmount": 10, "winAmount": 20, "bonusAmount": 0, "bonusMultiply": 0 } },
"ip": "192.168.1.1",
"type": "settle"
}'GETGame Demo
<baseUrl>/api/v1/games/demo
curl -X GET '<baseUrl>/api/v1/games/demo?gameCode=<slotCode>' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer <gameToken>'
GETList Games
<baseUrl>/api/v1/games
curl -X GET '<baseUrl>/api/v1/games?imgGameType=rect' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer <gameToken>'
GETGet User
<baseUrl>/api/v1/user/<userId>
curl -X GET '<baseUrl>/api/v1/user/<userId>' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer <gameToken>'
GETGet Transactions
<baseUrl>/api/v1/user/transactions
curl -X GET '<baseUrl>/api/v1/user/transactions?gameCode=<slotCode>&username=<userId>&limit=100&offset=1' \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer <optToken>'
POSTBet & Payout (Result)
https://operator-api.iamteamsg.com/api/v1/callback/result
curl -X POST 'https://operator-api.iamteamsg.com/api/v1/callback/result' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <gameToken>' \
-H 'op-token: <optToken>' \
-H 'x-request-id: <uuid>' \
-d '{
"agent": "<agentId>",
"username": "<userId>",
"gameCode": "<slotCode>",
"currency": "THB",
"transId": "<uuid>",
"betAmount": 1,
"winAmount": 10,
"winLoss": 10,
"isFreeSpin": false,
"detail": { "position": 1, "multiply": 1, "bonusMultiply": 1 },
"ip": "192.168.1.1"
}'