Authorization headerleaderboardcommunityID401 if missing, invalid, or insufficientleaderboardID must identify a leaderboard in the API-key's communityfields is a projection; leaderboard item properties are optional in the response schema because omitted fields are validduration is optional on response rows because pre-duration legacy rows may omit it until repaired through the update API404 when the leaderboard does not exist or is not in the resolved communityGET /leaderboards/507f1f77bcf86cd799439012?fields=name,slug,duration,rankedUserRoles,viewPermissionUserRoles/leaderboards/{leaderboardID} with the request body, query parameters, or multipart fields shown below. Partner API key required when this surface is enabled for the community. Confirm gateway access before using in production.https://api.returning.ai; keep it marked non-primary until the gateway alias is confirmed.data with status and message.400 invalid request body, query, ObjectId, pagination, file format, or missing required field.401 missing, invalid, expired, or insufficient API key/token.403 key is valid but cannot access this community/channel/user/resource, where supported by the service.404 target resource, route, or community-scoped record was not found.409 duplicate or conflicting state for create/update operations, where applicable.500 unexpected Returning.AI service error.curl --location 'https://api.returning.ai/leaderboards/507f1f77bcf86cd799439012?fields=name%2Cslug%2Cduration%2CrankedUserRoles%2CviewPermissionUserRoles' \
--header 'Authorization: Bearer XXXXXX'{
"meta": {
"status": "success",
"statusCode": 200
},
"message": "Read leaderboard success.",
"data": {
"_id": "507f1f77bcf86cd799439012",
"communityID": "507f1f77bcf86cd799439013",
"name": "April Last Leaderboard",
"slug": "april-last-leaderboard",
"description": "Monthly leaderboard created through the partner API.",
"image": "https://cdn.example.com/leaderboards/april.png",
"rankBy": "currencies",
"displayedFields": [
"user",
"currencies"
],
"displayFieldsOrder": [
"user",
"currencies"
],
"timeFilters": [
"all-time",
"monthly",
"weekly"
],
"performanceDisplay": {
"showTop": {
"enabled": false,
"value": 10
},
"showPositive": {
"enabled": false
},
"showDummy": {
"enabled": false
}
},
"duration": {
"start": "2026-01-30T19:30:00.000Z",
"end": "2026-12-31T23:59:59.999Z",
"noEndDate": true,
"timeZone": 5.3,
"startTime": {
"hours": 5,
"minutes": 0,
"ampm": "AM"
},
"endTime": {
"hours": 11,
"minutes": 59,
"ampm": "PM"
}
},
"rankedUserRoles": {
"users": [],
"roles": [
"507f1f77bcf86cd799439014"
],
"tags": []
},
"viewPermissionUserRoles": {
"users": [],
"roles": [
"507f1f77bcf86cd799439014"
],
"tags": []
},
"widget": {
"enabled": false,
"whitelistedDomains": [
"example.com"
],
"size": {
"type": "custom",
"value": {
"width": 420,
"height": 640
}
},
"button": {
"enabled": true,
"text": "View leaderboard",
"link": "https://example.com/leaderboard"
}
},
"translations": {
"name": [
{
"languageCode": "en",
"translation": "April Last Leaderboard"
}
],
"description": [
{
"languageCode": "en",
"translation": "Monthly leaderboard created through the partner API."
}
]
},
"enabled": true,
"previewEnabled": false,
"displayOrder": 3,
"selected": false,
"updatedAt": "2026-04-13T12:00:00.000Z",
"createdAt": "2026-04-01T00:00:00.000Z"
}
}