List standing
Returns the public board of who has used and built the most on Hanzo, shown as a window around the reader.
GET /v1/leaderboard/standing
| Address | https://api.hanzo.ai/v1/leaderboard/standing |
| Method | GET |
| Operation | get_leaderboard_standing |
| Auth | Authorization: Bearer $HANZO_API_KEY |
Returns the public board of who has used and built the most on Hanzo, shown as a
window around the reader. Every org IAM holds is ranked, by points: tokens used,
referrals, verified stars, follows and bounty awards. A signed-in reader sees their own rank, the ranks
just below it and as many above it as their points have earned; the rest are
counted in locked and never sent. A reader who is not signed in sees the last
ranks, where a newcomer starts. Names are masked in the middle; the reader's own is
whole, an org that listed itself is whole, and one that withdrew has none. No
credential is needed to read it.
Request
GET /v1/leaderboard/standing takes no parameters and no body — the credential is the whole request.
Response
| Status | Body | Meaning |
|---|---|---|
200 | leaderboard.StandingView | ok |
default | problem-details | refused |
200 body — 18 fields.
| Field | In | Type | Always | Description |
|---|---|---|---|---|
available | body | boolean | — | Available is false when the warehouse is not connected: Rows is then empty because nothing could be read, not because nobody has used anything. |
locked | body | integer (int64) | — | Locked is how many ranks lie above the first row, which the reader has not earned a view of. |
rows | body | leaderboard.StandingRow[] | — | Rows are the ranks the reader may see, best first. |
rows[].handle | body | string | — | Handle is the name to show: masked, or full for the reader's own row and for an org that listed. |
rows[].points | body | integer (int64) | — | Points is the score the board ranks by. |
rows[].rank | body | integer (int64) | — | Rank is the 1-based place on the whole board, not the window. |
rows[].self | body | boolean | — | Self marks the reader's own row. |
scored | body | integer (int64) | — | Scored is how many of them hold any point; the rest are at the bottom. |
self | body | leaderboard.StandingSelf | — | |
self.handle | body | string | — | Handle is the reader's own full handle. |
self.next | body | leaderboard.StandingNext | — | |
self.next.at | body | integer (int64) | — | At is the points at which it unlocks. |
self.next.more | body | integer (int64) | — | More is At minus the reader's points: what is left to earn. |
self.next.reveal | body | integer (int64) | — | Reveal is how many more ranks above the reader that rung unlocks. |
self.points | body | integer (int64) | — | Points is the reader's score. |
self.rank | body | integer (int64) | — | Rank is the reader's place on the whole board. |
self.ranked | body | boolean | — | Ranked is false for a reader with no usage and no award yet. |
total | body | integer (int64) | — | Total is how many orgs are ranked: every org IAM holds that is not a held one. |
Failure carries the platform error shape — see Errors.
Examples
hanzo leaderboard standingimport { Configuration, LeaderboardApi } from 'hanzoai';
const api = new LeaderboardApi(new Configuration({ accessToken: process.env.HANZO_API_KEY }));
const { data } = await api.getLeaderboardStanding();from hanzoai.cloud import ApiClient, Configuration
from hanzoai.cloud.api import LeaderboardApi
client = ApiClient(Configuration(access_token=os.environ["HANZO_API_KEY"]))
result = LeaderboardApi(client).get_leaderboard_standing()cfg := hanzoai.NewConfiguration()
cfg.AddDefaultHeader("Authorization", "Bearer "+os.Getenv("HANZO_API_KEY"))
client := hanzoai.NewAPIClient(cfg)
resp, _, err := client.LeaderboardAPI.GetLeaderboardStanding(context.Background()).Execute()
if err != nil {
return err
}use hanzo_client::apis::{configuration::Configuration, leaderboard_api};
let mut cfg = Configuration::new();
cfg.bearer_access_token = std::env::var("HANZO_API_KEY").ok();
let result = leaderboard_api::get_leaderboard_standing(&cfg, Default::default()).await?;import ai.hanzo.cloud.ApiClient;
import ai.hanzo.cloud.api.LeaderboardApi;
ApiClient client = new ApiClient();
client.setBearerToken(System.getenv("HANZO_API_KEY"));
var result = new LeaderboardApi(client).getLeaderboardStanding();The method above is the one at the current release of the document. [email protected] (npm) and [email protected] (PyPI) were generated from an earlier release, where this operation carried a different id, so it spells the method differently — regenerating the clients is what makes the two agree. SDKs →
curl https://api.hanzo.ai/v1/leaderboard/standing \
-H "Authorization: Bearer $HANZO_API_KEY"Tool leaderboard, op get_leaderboard_standing — POST the JSON-RPC envelope to https://api.hanzo.ai/v1/mcp.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "leaderboard",
"arguments": {
"op": "get_leaderboard_standing",
"input": {}
}
}
}'