Hanzo
OpenapiLicensing

Download resolves a release to its artifact, gated on a valid license.

Download resolves a release to its artifact, gated on a valid license.

GET /v1/licensing/download/{release}

Addresshttps://api.hanzo.ai/v1/licensing/download/{release}
MethodGET
Operationget_licensing_download_by_release
AuthAuthorization: Bearer $HANZO_API_KEY

Download resolves a release to its artifact, gated on a valid license.

The gate is the LICENSE token, not the IAM bearer: being signed in is not permission to download a paid binary — holding a good license for it is. The token must verify against this deployment's public key, be unrevoked, be scoped to the release's app, and carry every feature the release requires. Present it as the X-License-Token header (preferred, since a header does not land in proxy logs) or as ?token=.

The response pairs the artifact URL with its cosign signature so the client verifies the binary BEFORE trusting it: a signed URL alone proves where the bytes came from, not what they are. A yanked release is 410 Gone.

Request

3 fields.

FieldInTypeRequiredDescription
releasepathstringyes
tokenquerystring
X-License-Tokenheaderstring

Response

StatusBodyMeaning
200licensing.ReleaseAssetok

200 body — 16 fields.

FieldInTypeAlwaysDescription
cosign_certbodystring
cosign_signaturebodystring
download_urlbodystringDownloadURL is a short-lived signed URL to the artifact bytes.
releasebodylicensing.Release
release.app_idbodystringAppID scopes the release to an app build ("hanzo" | "lux" | "zoo").
release.artifact_refbodystringArtifactRef is where the binary lives (object-store key / OCI ref / path).
release.cosign_certbodystringCosignCert is the cosign/Fulcio cert (keyless) or public key ref used to verify CosignSignature.
release.cosign_signaturebodystringCosignSignature is the base64 cosign signature over the artifact digest.
release.created_atbodyinteger
release.idbodystringID is the release identifier, e.g. "engine-rocm-0.4.2-linux-amd64".
release.min_featuresbodystring[]MinFeatures, when set, are features the license must include to download.
release.platformbodystringPlatform is "<os>/<arch>", e.g.
release.productbodystringProduct is the licensed product this artifact belongs to (commerce SKU): "engine" for every one of those builds.
release.sha256bodystringSHA256 is the hex digest of the artifact (integrity + cosign subject).
release.versionbodystringVersion is the semantic version of the binary.
release.yankedbodybooleanYanked marks a pulled release (download refused; tokens may be revoked release-scoped too).

Failure carries the platform error shape — see Errors.

Examples

hanzo licensing download get <release>

Licensing API · All Hanzo APIs · Interactive reference

How is this guide?

On this page