Skip to main content
GET
/
leaderboards
/
configs
Get paginated leaderboard configurations
curl --request GET \
  --url https://{subdomain}.nudj.cx/api/v2/admin/leaderboards/configs \
  --header 'x-api-token: <api-key>'
{
  "totalCount": 123,
  "edges": [
    {
      "name": "<string>",
      "description": "<string>",
      "metricType": "total-xp",
      "startsAt": "<string>",
      "expiresAt": "<string>",
      "status": "archived",
      "period": "daily",
      "conditions": [],
      "rewardsConfig": [
        {
          "startRank": 123,
          "endRank": 123,
          "distributionEventId": "<string>"
        }
      ],
      "id": "<string>",
      "organisationId": "<string>",
      "createdAt": "<string>",
      "updatedAt": "<string>"
    }
  ]
}

Authorizations

x-api-token
string
header
required

Headers

x-language
string

The language to return the leaderboards in. If not provided, the default language for the organisation will be used.

Query Parameters

limit
integer
default:10
Required range: 1 <= x <= 100
skip
integer
default:0
Required range: x >= 0
status
enum<string>
Available options:
archived,
draft,
expired,
live,
scheduled
communityId
string

Response

Successful response

totalCount
number
required
edges
object[]
required
I