Get detailed user data like user activities, xp, enrollments, etc. using this resolver.
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 60 requests in a window of 1m.
curl --request POST \
--url https://backend.codedamn.com/api/public/get-user-detailed-analytics-data \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '
{
"data": [
{
"data": {
"userId": "<string>",
"userEmail": "[email protected]",
"fermionUserId": "<string>"
}
}
]
}
'[
{
"output": {
"status": "ok",
"data": {
"details": {
"personalData": {
"userId": "<string>",
"fermionUserId": "<string>",
"email": "[email protected]",
"createdAtIso": "2023-11-07T05:31:56Z",
"lastSeenAtIso": "2023-11-07T05:31:56Z",
"name": "<string>",
"profilePicUrl": "<string>"
},
"productEnrollmentsData": [
{
"productId": "<string>",
"productName": "<string>",
"productSlug": "<string>",
"enrolledAtIso": "2023-11-07T05:31:56Z",
"productType": "FermionCourse",
"completionPercentageOutOf100": 50,
"certificateClaimedAtIso": "2023-11-07T05:31:56Z"
}
],
"activityData": [
{
"dateIso": "2023-11-07T05:31:56Z",
"minutesSpent": 1,
"xpEarned": 123
}
]
}
}
}
}
]API Request Body
API Response Body
Show child attributes
ok Show child attributes
Show child attributes
Show child attributes
Internal userId you have been using for the user in your database. Null if not present
Fermion provided user ID of the user.
Email address of the user
Timestamp when the user was created
Timestamp when the user was last seen using the platform
Name of the user
2 - 100URL of the user's profile picture
List of products the user is enrolled in
Show child attributes
Unique identifier of the product
1Name of the product
1URL-friendly identifier of the product
1Timestamp when the user enrolled in the product
Type of product - Course
FermionCourse Course completion percentage (0-100)
0 <= x <= 100Timestamp when the course certificate was claimed, null if not claimed
Daily activity data including time spent and XP earned
Show child attributes
curl --request POST \
--url https://backend.codedamn.com/api/public/get-user-detailed-analytics-data \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '
{
"data": [
{
"data": {
"userId": "<string>",
"userEmail": "[email protected]",
"fermionUserId": "<string>"
}
}
]
}
'[
{
"output": {
"status": "ok",
"data": {
"details": {
"personalData": {
"userId": "<string>",
"fermionUserId": "<string>",
"email": "[email protected]",
"createdAtIso": "2023-11-07T05:31:56Z",
"lastSeenAtIso": "2023-11-07T05:31:56Z",
"name": "<string>",
"profilePicUrl": "<string>"
},
"productEnrollmentsData": [
{
"productId": "<string>",
"productName": "<string>",
"productSlug": "<string>",
"enrolledAtIso": "2023-11-07T05:31:56Z",
"productType": "FermionCourse",
"completionPercentageOutOf100": 50,
"certificateClaimedAtIso": "2023-11-07T05:31:56Z"
}
],
"activityData": [
{
"dateIso": "2023-11-07T05:31:56Z",
"minutesSpent": 1,
"xpEarned": 123
}
]
}
}
}
}
]