User
Get user detailed analytics data
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.
POST
/
public
/
get-user-detailed-analytics-data
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>"
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"details": {
"personalData": {
"userId": "<string>",
"fermionUserId": "<string>",
"email": "jsmith@example.com",
"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
}
]
}
}
}
}
]
Authorizations
Body
application/json
API Request Body
The body is of type object
.
Response
200 - application/json
API Response Body
The response is of type object[]
.
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>"
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"details": {
"personalData": {
"userId": "<string>",
"fermionUserId": "<string>",
"email": "jsmith@example.com",
"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
}
]
}
}
}
}
]
Assistant
Responses are generated using AI and may contain mistakes.