Hanzo
OpenapiLink

Lists your linked accounts and the devices they sit on.

Lists your linked accounts and the devices they sit on.

GET /v1/link

Addresshttps://api.hanzo.ai/v1/link
MethodGET
Operationget_link
AuthAuthorization: Bearer $HANZO_API_KEY

Lists your linked accounts and the devices they sit on.

It answers the caller's own links plus a devices projection of the same rows folded per machine — the cross-machine "AI Providers / Accounts" view. A device is a projection, not a stored entity: its labels come from its most-recently-seen account, so there is no device to create and none to garbage-collect. Revoked links are INCLUDED rather than dropped, because a logged-out account keeps its usage history and audit trail. Scoped to the caller: a validated principal and a non-empty org, else 403.

Request

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

Response

StatusBodyMeaning
200linkListok

200 body — 38 fields.

FieldInTypeAlwaysDescription
devicesbodydeviceView[]Devices is the same rows folded per machine — the cross-machine "AI Providers / Accounts" view.
devices[].accountsbodylinkView[]Accounts is every account the caller has signed in on this machine.
devices[].accounts[].accountbodystringAccount is the provider-side account identifier, when the collector knows it.
devices[].accounts[].billingbodystringBilling is how this account's inference bills — plan (the user's own subscription, metered here for visibility only) or commerce (the gateway path).
devices[].accounts[].createdAtbodystringCreatedAt is when the link was first registered, RFC 3339 UTC.
devices[].accounts[].hostbodystringHost is the machine's human hostname label, from its most recent report.
devices[].accounts[].idbodystringID is the link's opaque handle ("link_" + 32 hex chars).
devices[].accounts[].kindbodystringKind is how the account authenticates: subscription or apikey.
devices[].accounts[].lastSeenbodystringLastSeen is when the account last reported, RFC 3339 UTC.
devices[].accounts[].machinebodystringMachine is the stable machine identifier the collector reports.
devices[].accounts[].osbodystringOS is the machine's operating system label.
devices[].accounts[].planbodystringPlan is the provider plan label (e.g.
devices[].accounts[].providerbodystringProvider is the AI provider this account belongs to (claude, openai, hanzo…).
devices[].accounts[].statusbodystringStatus is linked or revoked.
devices[].accounts[].updatedAtbodystringUpdatedAt is when the link was last refreshed, RFC 3339 UTC.
devices[].accounts[].usagebodyanyUsage is the last good usage snapshot, clamped and re-serialized to known fields at ingest.
devices[].accounts[].userbodystringUser is the owning subject — the validated caller who registered the link.
devices[].activeSessionsbodyintegerActiveSessions is how many agent sessions the caller currently has running on this machine; 0 where the agent plane is not mounted.
devices[].hostbodystringHost is the machine's hostname label, from its most-recently-seen account.
devices[].lastSeenbodystringLastSeen is when any account on this machine last reported, RFC 3339 UTC.
devices[].machinebodystringMachine is the stable machine identifier.
devices[].osbodystringOS is the machine's operating system label.
linksbodylinkView[]Links is every link the caller registered, newest first.
links[].accountbodystringAccount is the provider-side account identifier, when the collector knows it.
links[].billingbodystringBilling is how this account's inference bills — plan (the user's own subscription, metered here for visibility only) or commerce (the gateway path).
links[].createdAtbodystringCreatedAt is when the link was first registered, RFC 3339 UTC.
links[].hostbodystringHost is the machine's human hostname label, from its most recent report.
links[].idbodystringID is the link's opaque handle ("link_" + 32 hex chars).
links[].kindbodystringKind is how the account authenticates: subscription or apikey.
links[].lastSeenbodystringLastSeen is when the account last reported, RFC 3339 UTC.
links[].machinebodystringMachine is the stable machine identifier the collector reports.
links[].osbodystringOS is the machine's operating system label.
links[].planbodystringPlan is the provider plan label (e.g.
links[].providerbodystringProvider is the AI provider this account belongs to (claude, openai, hanzo…).
links[].statusbodystringStatus is linked or revoked.
links[].updatedAtbodystringUpdatedAt is when the link was last refreshed, RFC 3339 UTC.
links[].usagebodyanyUsage is the last good usage snapshot, clamped and re-serialized to known fields at ingest.
links[].userbodystringUser is the owning subject — the validated caller who registered the link.

Failure carries the platform error shape — see Errors.

Examples

hanzo links list

Link API · All Hanzo APIs · Interactive reference

How is this guide?

On this page