curl --request GET \
--url http://localhost:4000/api/user/profile \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"dynamicUserId": "<string>",
"handle": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"lastLoginAt": "2023-11-07T05:31:56Z",
"status": "active",
"tier": "bronze"
},
"waitlist": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"referralCode": "<string>",
"referredBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"joinedAt": "2023-11-07T05:31:56Z",
"hasAccess": true
},
"ganntium": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"balance": 123,
"totalEarned": 123,
"lastUpdated": "2023-11-07T05:31:56Z"
},
"achievements": [
{
"id": "<string>",
"name": "<string>",
"unlockedAt": "2023-11-07T05:31:56Z"
}
]
}
}
Get detailed profile information for the authenticated user
curl --request GET \
--url http://localhost:4000/api/user/profile \
--header 'Authorization: Bearer <token>'
{
"success": true,
"data": {
"user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"dynamicUserId": "<string>",
"handle": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"lastLoginAt": "2023-11-07T05:31:56Z",
"status": "active",
"tier": "bronze"
},
"waitlist": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"position": 123,
"referralCode": "<string>",
"referredBy": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"joinedAt": "2023-11-07T05:31:56Z",
"hasAccess": true
},
"ganntium": {
"userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"balance": 123,
"totalEarned": 123,
"lastUpdated": "2023-11-07T05:31:56Z"
},
"achievements": [
{
"id": "<string>",
"name": "<string>",
"unlockedAt": "2023-11-07T05:31:56Z"
}
]
}
}
Dynamic authentication JWT token
User profile
The response is of type object
.