Skip to content

Get User Balance (SDK)

GET /v1/users/:userId/sdk-balance

Returns a user’s current point balance. This is the lightweight SDK-facing variant; see Get User Balance for the server-side version with full profile data.

HeaderRequiredValue
X-API-KeyYesYour public key
ParamTypeDescription
userIdstringThe user’s external ID
Terminal window
curl -X GET https://api.gamifyhost.com/v1/users/user_12345/sdk-balance \
-H "X-API-Key: pk_live_your_public_key"

Status: 200 OK

{
"message": "User balance retrieved",
"code": 200,
"status": "success",
"data": {
"userId": "user_12345",
"totalPoints": 5000,
"displayName": "Alice"
}
}
FieldTypeDescription
userIdstringThe user’s external ID
totalPointsintegerCurrent point balance
displayNamestringDisplay name (if set)
CodeMessage
404User not found