Hanzo
OpenapiShare

Returns the tunnel shares the caller's org currently has open, across every…

Returns the tunnel shares the caller's org currently has open, across every environment that org has enabled.

GET /v1/share

Addresshttps://api.hanzo.ai/v1/share
MethodGET
Operationget_share
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the tunnel shares the caller's org currently has open, across every environment that org has enabled. It is a READ and it degrades honestly: an unconfigured deployment, an org that has not provisioned yet, and an unreachable controller all answer an EMPTY list at 200 rather than an error, so the console never error-toasts on load.

Request

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

Response

StatusBodyMeaning
200sharesOutok

200 body — 6 fields.

FieldInTypeAlwaysDescription
sharesbodyshareView[]Shares is the org's active shares — empty rather than absent when there are none, or when the controller cannot be reached.
shares[].backendbodystringBackend is the local endpoint the share proxies to.
shares[].backendModebodystringBackendMode is how the tunnel serves the backend, e.g.
shares[].createdAtbodyintegerCreatedAt is when the share was opened, unix seconds.
shares[].tokenbodystringToken is the share's own identifier, the leaf of its public URL.
shares[].urlbodystringURL is the share's public address, rendered from the deployment's URL template.

Failure carries the platform error shape — see Errors.

Examples

hanzo share get

Share API · All Hanzo APIs · Interactive reference

How is this guide?

On this page