Hanzo
OpenapiLeaderboard

Returns the caller's own public-listing preference and their org's, each with…

Returns the caller's own public-listing preference and their org's, each with whether the caller may change it.

GET /v1/leaderboard/optin

Addresshttps://api.hanzo.ai/v1/leaderboard/optin
MethodGET
Operationget_leaderboard_optin
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the caller's own public-listing preference and their org's, each with whether the caller may change it. Public listing is opt-in and private by default, so a fresh caller reads listed=false for both.

Request

GET /v1/leaderboard/optin takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200optinViewok

200 body — 8 fields.

FieldInTypeAlwaysDescription
orgbodyorgOptinView
org.canManagebodybooleanCanManage is true only for an admin of this org (or a platform SuperAdmin) — the callers whose write of the org preference will be accepted.
org.displaybodystringDisplay is the name shown for the org on that board.
org.listedbodybooleanListed is true when the org has opted onto the cross-org global board.
userbodyuserOptinView
user.canSetbodybooleanCanSet is false when the caller's ledger identity cannot be resolved (no user name on the principal).
user.handlebodystringHandle is the display name on the caller's listed row.
user.listedbodybooleanListed is true when the caller's board row is published under Handle to other viewers.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Leaderboard API · All Hanzo APIs · Interactive reference

How is this guide?

On this page