🧾 User Logs Endpoint
The User Logs API returns the most recent activity logs for a specific player. Logs include credit actions, bonus resets, enable/disable actions, and other system events. Only the most recent 500 entries are returned for performance reasons.
ℹ️ Description
- Each log entry contains a timestamp, description, and color-coded type (e.g., green = success, red = error).
- Logs are fetched in descending order (most recent first).
- Timestamps are automatically converted to the cashier’s
timezone. - Only available for players belonging to the authenticated cashier’s shop.
Endpoint
GET https://proapi.gapi.lol/api/cashier/user/{id}/logs
Replace {id} with the target player’s unique ID.
Authentication
This endpoint requires a valid Bearer token:
Authorization: Bearer <your_token>
Accept: application/json
Successful Response
Returns up to 500 of the player’s most recent logs, with formatted timestamps:
{
"success": true,
"data": [
{
"id": 12058,
"user_id_out": 3154,
"description": "User demo disabled successfully",
"color": "red",
"ip": "192.168.1.45",
"created_at_formatted": "31/10/2025, 14:30:12",
"updated_at_formatted": "31/10/2025, 14:30:12"
},
{
"id": 12059,
"user_id_out": 3154,
"description": "Credits IN: 100.00 EUR",
"color": "green",
"ip": "192.168.1.45",
"created_at_formatted": "31/10/2025, 12:10:45",
"updated_at_formatted": "31/10/2025, 12:10:45"
}
]
}
Example Request (cURL)
curl -X GET "https://proapi.gapi.lol/api/cashier/user/3154/logs" \
-H "Authorization: Bearer <your_token>" \
-H "Accept: application/json"
Error Responses
401 Unauthorized — Wrong username or password:
{
"success": false,
"message": "Please login via API token"
}
403 Forbidden — Account suspended or disabled:
{
"success": false,
"message": "Account suspended"
}
429 Too Many Requests — Rate limit exceeded:
{
"success": false,
"message": "Too many attempts. Try again later."
}
500 Internal Server Error — Server-side issue:
{
"success": false,
"message": "Unexpected server error"
}