Skip to content

Get User Plays

GET /v1/users/:userId/plays

Returns a paginated list of a user’s game play records, including outcomes and rewards.

HeaderRequiredValue
X-API-KeyYesYour public key
ParamTypeDescription
userIdstringThe user’s external ID
ParamTypeDefaultDescription
pageinteger1Page number
limitinteger20Results per page
Terminal window
curl -X GET "https://api.gamifyhost.com/v1/users/user_12345/plays?page=1&limit=10" \
-H "X-API-Key: pk_live_your_public_key"

Status: 200 OK

{
"message": "User plays retrieved",
"code": 200,
"status": "success",
"data": [
{
"playId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"gameType": "NEON_WHEEL",
"pointsSpent": 100,
"rewardTier": "rare",
"rewardType": "cashback",
"rewardValue": 50,
"rewardLabel": "$0.50 cashback",
"outcome": {
"winningSegment": 3,
"spinAngle": 247.5
},
"playedAt": "2025-07-15T10:30:00Z"
}
],
"meta": {
"page": 1,
"limit": 10,
"total": 42,
"totalPages": 5
}
}
FieldTypeDescription
playIduuidUnique play record ID
gameTypestringGame type played
pointsSpentintegerPoints deducted
rewardTierstringepic, rare, or common
rewardTypestringcashback, xp, points, item, or special
rewardValueintegerNumeric reward value
rewardLabelstringHuman-readable reward label
outcomeobjectGame-specific result data
playedAtdatetimeISO 8601 timestamp
CodeMessage
404User not found