Get current player's stats
GET/stats
Returns the authenticated player's stat values for the active project. Requires x-client-id, x-client-secret, and Authorization bearer token. Caller must have client.stats permission. Missing player stat rows are initialized before reading values.
Authorization requirements:
x-client-idx-client-secretAuthorization: Bearer <token>- Permission:
client.stats
Request
Responses
- 200
- 401
- 403
- 422
Successful Response
Unauthorized
Forbidden
Validation Error
Response example (200 OK)
{
"stats": {
"xp": 1250,
"coins": 350,
"win_rate": 0.62,
"is_premium": false
}
}
stats is a key-value map where:
- key = stat key (string)
- value = stat value (type depends on the stat definition)
Behavior notes
- The service initializes missing player stat rows before reading values.
- Stats are project-scoped using the client credentials context.
cURL example
curl -X GET "https://mw-client-api.wonderfulcoast-218d579d.centralindia.azurecontainerapps.io/stats" \
-H "x-client-id: <your-client-id>" \
-H "x-client-secret: <your-client-secret>" \
-H "Authorization: Bearer <access-token>"