Gamification
Get leaderboard
Get leaderboard of the top ranking users in your school
Rate limit: Maximum 60 requests in a window of 1m.
POST
/
public
/
get-school-leaderboard
curl --request POST \
--url https://backend.codedamn.com/api/public/get-school-leaderboard \
--header 'Content-Type: application/json' \
--data '{
"data": [
{
"data": {
"data": {
"fermionSchoolId": "<string>",
"period": "Today",
"limit": 250
}
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"leaderboardUsers": [
{
"rank": 250,
"xpTotal": 123,
"xpDeltaInPeriod": 123,
"fermionUserId": "<string>",
"saasUserId": "<string>",
"userCreatedAtIso": "2023-11-07T05:31:56Z",
"name": "<string>",
"username": "<string>",
"profilePicUrl": "<string>"
}
]
}
}
}
]
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-school-leaderboard \
--header 'Content-Type: application/json' \
--data '{
"data": [
{
"data": {
"data": {
"fermionSchoolId": "<string>",
"period": "Today",
"limit": 250
}
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"leaderboardUsers": [
{
"rank": 250,
"xpTotal": 123,
"xpDeltaInPeriod": 123,
"fermionUserId": "<string>",
"saasUserId": "<string>",
"userCreatedAtIso": "2023-11-07T05:31:56Z",
"name": "<string>",
"username": "<string>",
"profilePicUrl": "<string>"
}
]
}
}
}
]
Assistant
Responses are generated using AI and may contain mistakes.