Get account by user ID leaderboards
Path parameters
-
user_id
string Required
GET
/account/{user_id}/leaderboards
curl \
--request GET https://api.topktoday.dev/account/146b2edf-2d6f-4775-9b86-5537a2649589/leaderboards
Response examples (200)
{
"$schema": "https://api.topktoday.dev/schemas/AccountLeaderboardsResponseBody.json",
"leaderboards": [
{
"$schema": "https://api.topktoday.dev/schemas/LeaderboardInfo.json",
"allow_multiple": true,
"created_at": "2025-05-04T09:42:00Z",
"duration": 42,
"highest_first": true,
"id": "string",
"is_time": true,
"start": "2025-05-04T09:42:00Z",
"title": "My First Leaderboard",
"verifiers": [
{
"added_at": "2025-05-04T09:42:00Z",
"id": "string",
"username": "greensuigi"
}
]
}
]
}
Response examples (default)
{
"$schema": "https://api.topktoday.dev/schemas/ErrorModel.json",
"detail": "Property foo is required but is missing.",
"errors": [
{
"location": "string",
"message": "string"
}
],
"instance": "https://example.com/error-log/abc123",
"status": 400,
"title": "Bad Request",
"type": "https://example.com/errors/example"
}