Get User Gamification History
This endpoint retrieves the past gamification history for a specific user, including the XP earned and in-game currency collected on a daily basis over a specified time range. Authorization# Found in the platform under community settings > API keys . Permission: Get User Stats
Request Provide your bearer token in the Authorization
header when making requests to protected resources. Example: Authorization: Bearer ********************
Request Code Samples
curl --location --request GET 'https://integration.returning.ai/apis/v1/users/activity/daily?identifier=admin@returning.ai&identifier_type=email&days=20' \
--header 'Authorization: Bearer <token>'
Responses application/json Generate Code
{
"status" : "success" ,
"message" : "User gamification stats fetched successfully" ,
"data" : {
"user_id" : "123" ,
"range" : {
"start_date" : "2025-07-14" ,
"end_date" : "2025-08-12"
} ,
"totals" : {
"coins" : 12 ,
"xp" : 18
} ,
"daily_stats" : [
{
"date" : "2025-08-12" ,
"coins" : 3 ,
"xp" : 3
} ,
...
{
"date" : "2025-07-14" ,
"coins" : 0 ,
"xp" : 0
}
]
}
}
Modified at 2025-08-12 10:24:23