curl --request GET \
--url http://localhost:4000/api/user/dashboard \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"stats": {
"totalReferrals": 123,
"currentStreak": 123,
"ganntiumBalance": 123,
"leaderboardRank": 123
},
"recentActivity": [
{
"type": "<string>",
"description": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
],
"upcomingChallenges": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"type": "weekly",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"rewardAmount": 123,
"requirements": {}
}
]
}
}
Get comprehensive dashboard data for the authenticated user
curl --request GET \
--url http://localhost:4000/api/user/dashboard \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"stats": {
"totalReferrals": 123,
"currentStreak": 123,
"ganntiumBalance": 123,
"leaderboardRank": 123
},
"recentActivity": [
{
"type": "<string>",
"description": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
],
"upcomingChallenges": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"description": "<string>",
"type": "weekly",
"startDate": "2023-11-07T05:31:56Z",
"endDate": "2023-11-07T05:31:56Z",
"rewardAmount": 123,
"requirements": {}
}
]
}
}
Dynamic authentication JWT token
Dashboard data
The response is of type object
.