Authorization headerleaderboardcommunityID401 if missing, invalid, or insufficientpage starts at 1 and defaults to 1limit defaults to 20 and has a max of 100total is the number of records after the community and search filters are appliedsearch to count/list all leaderboards for the API-key communitysearch=keyword:<value> filters by leaderboard name or slugfields is a projection; omit it to return the default full document shapeduration is optional on response rows because pre-duration legacy rows may omit it until repaired through the update APIGET /leaderboards?page=1&limit=20&sort=createdAt:descGET /leaderboards?page=1&limit=20&sort=createdAt:desc&search=keyword:top/leaderboards 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?page=1&limit=20&sort=createdAt%3Adesc&fields=&search=' \
--header 'Authorization: Bearer XXXXXX'{
"meta": {
"status": "success",
"statusCode": 200,
"page": 1,
"limit": 20,
"total": 11
},
"message": "Read leaderboards success.",
"data": [
{
"_id": "69ea45dcecb17b3d0cb8824c",
"communityID": "6502c97314a3e564c5bbfa84",
"name": "Top Traders 2",
"slug": "top-traders-2",
"description": "Monthly trading leaderboard",
"rankBy": "currencies",
"displayedFields": [
"name",
"score"
],
"displayFieldsOrder": [
"name",
"score"
],
"timeFilters": [
"all-time",
"monthly"
],
"performanceDisplay": {
"showTop": {
"enabled": true,
"value": 10
},
"showPositive": {
"enabled": true
},
"showDummy": {
"enabled": false
}
},
"rankedUserRoles": {
"users": [],
"roles": [],
"tags": []
},
"viewPermissionUserRoles": {
"users": [],
"roles": [],
"tags": []
},
"enabled": true,
"previewEnabled": false,
"selected": false,
"updatedAt": "2026-04-23T16:16:28.537Z",
"createdAt": "2026-04-23T16:16:28.537Z"
}
]
}