Hanzo
OpenapiLink

Reads one linked account.

Reads one linked account. It answers a single link — its device, provider, account, plan, how it bills, its status and its latest usage snapshot.

GET /v1/link/{id}

Addresshttps://api.hanzo.ai/v1/link/{id}
MethodGET
Operationget_link_by_id
AuthAuthorization: Bearer $HANZO_API_KEY

Reads one linked account.

It answers a single link — its device, provider, account, plan, how it bills, its status and its latest usage snapshot. An id that does not exist, or belongs to another user or org, is the same 404: the scope is a bound predicate on the read, so a wrong id and a foreign id are indistinguishable and neither confirms the other's existence. The static paths on this collection — route, usage, devices — register before this one and win first-match, so a link whose id collided with one of those words could not be addressed here.

Request

1 field.

FieldInTypeRequiredDescription
idpathstringyesID is the link to act on, from the path.

Response

StatusBodyMeaning
200linkViewok

200 body — 15 fields.

FieldInTypeAlwaysDescription
accountbodystringAccount is the provider-side account identifier, when the collector knows it.
billingbodystringBilling is how this account's inference bills — plan (the user's own subscription, metered here for visibility only) or commerce (the gateway path).
createdAtbodystringCreatedAt is when the link was first registered, RFC 3339 UTC.
hostbodystringHost is the machine's human hostname label, from its most recent report.
idbodystringID is the link's opaque handle ("link_" + 32 hex chars).
kindbodystringKind is how the account authenticates: subscription or apikey.
lastSeenbodystringLastSeen is when the account last reported, RFC 3339 UTC.
machinebodystringMachine is the stable machine identifier the collector reports.
osbodystringOS is the machine's operating system label.
planbodystringPlan is the provider plan label (e.g.
providerbodystringProvider is the AI provider this account belongs to (claude, openai, hanzo…).
statusbodystringStatus is linked or revoked.
updatedAtbodystringUpdatedAt is when the link was last refreshed, RFC 3339 UTC.
usagebodyanyUsage is the last good usage snapshot, clamped and re-serialized to known fields at ingest.
userbodystringUser is the owning subject — the validated caller who registered the link.

Failure carries the platform error shape — see Errors.

Examples

hanzo links get <id>

Link API · All Hanzo APIs · Interactive reference

How is this guide?

On this page