GET
/
api
/
user
/
dashboard
Get user dashboard data
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": {}
      }
    ]
  }
}
EOF < /dev/null

Authorizations

Authorization
string
header
required

Dynamic authentication JWT token

Response

200 - application/json

Dashboard data

The response is of type object.