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

Addresshttps://api.hanzo.ai/v1/leaderboard/standing
MethodGET
Operationget_leaderboard_standing
AuthAuthorization: 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

StatusBodyMeaning
200leaderboard.StandingViewok
defaultproblem-detailsrefused

200 body — 18 fields.

FieldInTypeAlwaysDescription
availablebodyboolean—Available is false when the warehouse is not connected: Rows is then empty because nothing could be read, not because nobody has used anything.
lockedbodyinteger (int64)—Locked is how many ranks lie above the first row, which the reader has not earned a view of.
rowsbodyleaderboard.StandingRow[]—Rows are the ranks the reader may see, best first.
rows[].handlebodystring—Handle is the name to show: masked, or full for the reader's own row and for an org that listed.
rows[].pointsbodyinteger (int64)—Points is the score the board ranks by.
rows[].rankbodyinteger (int64)—Rank is the 1-based place on the whole board, not the window.
rows[].selfbodyboolean—Self marks the reader's own row.
scoredbodyinteger (int64)—Scored is how many of them hold any point; the rest are at the bottom.
selfbodyleaderboard.StandingSelf—
self.handlebodystring—Handle is the reader's own full handle.
self.nextbodyleaderboard.StandingNext—
self.next.atbodyinteger (int64)—At is the points at which it unlocks.
self.next.morebodyinteger (int64)—More is At minus the reader's points: what is left to earn.
self.next.revealbodyinteger (int64)—Reveal is how many more ranks above the reader that rung unlocks.
self.pointsbodyinteger (int64)—Points is the reader's score.
self.rankbodyinteger (int64)—Rank is the reader's place on the whole board.
self.rankedbodyboolean—Ranked is false for a reader with no usage and no award yet.
totalbodyinteger (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 standing
import { 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": {}
         }
       }
     }'

Leaderboard API · All Hanzo APIs · Interactive reference

Was this page useful?
Broken link or missing step? Drop it in #docs on Discord or open a PR.