Hanzo
OpenapiRegistry

Token mints a short-lived, pull-only registry token for exactly one of the…

Token mints a short-lived, pull-only registry token for exactly one of the org's images, through the same IAM realm the docker CLI authenticates against.

POST /v1/registry/token

Addresshttps://api.hanzo.ai/v1/registry/token
MethodPOST
Operationpost_registry_token
AuthAuthorization: Bearer $HANZO_API_KEY

Token mints a short-lived, pull-only registry token for exactly one of the org's images, through the same IAM realm the docker CLI authenticates against. The scope is pinned server-side to <org>/<image> with the pull action — no field exists to name another org's image or ask for push. Use it as Authorization: Bearer … on the OCI wire; it expires in minutes.

Request

1 field, body application/json (required).

FieldInTypeRequiredDescription
imagebodystringImage is the repository name inside the org's namespace (e.g.

Response

StatusBodyMeaning
200registryTokenok

200 body — 3 fields.

FieldInTypeAlwaysDescription
expiresbodyintegerExpires is the token's lifetime in seconds.
refbodystringRef is the one repository reference the token can pull.
tokenbodystringToken is the bearer to present on the OCI wire (Authorization: Bearer … against the host's /v2/ routes).

Failure carries the platform error shape — see Errors.

Examples

hanzo registry token

Registry API · All Hanzo APIs · Interactive reference

How is this guide?

On this page