Skip to content

Get Participant Progress

GET /v1/campaigns/{slug}/participants/{userId}

Returns a participant’s current standing in the campaign, including total points, event count, and rank.

HeaderRequiredValue
X-API-SecretYesYour secret key
ParameterTypeDescription
slugstringCampaign slug
userIdstringThe user’s ID in your system
Terminal window
curl -X GET "https://api.gamifyhost.com/v1/campaigns/summer-promo/participants/user_12345" \
-H "X-API-Secret: sk_live_your_secret_key"

Status: 200 OK

{
"status": "success",
"data": {
"userId": "user_12345",
"displayName": "Alice",
"totalPoints": 2500,
"eventsCount": 12,
"rank": 3,
"joinedAt": "2025-07-01T10:00:00Z"
}
}
FieldTypeDescription
userIdstringThe user’s external ID
displayNamestringDisplay name
totalPointsintegerTotal points earned
eventsCountintegerNumber of events recorded
rankintegerCurrent leaderboard rank
joinedAtdatetimeWhen the user joined the campaign
CodeMessage
404Campaign or participant not found