Hanzo AI
OpenapiFunctions

List deployments

Is what is live right now — each function's current record IS its live deployment, so this is the deployment inventory.

GET /v1/functions/deployments

Addresshttps://api.hanzo.ai/v1/functions/deployments
MethodGET
Operationget_functions_deployments
AuthAuthorization: Bearer $HANZO_API_KEY

Is what is live right now — each function's current record IS its live deployment, so this is the deployment inventory.

There is no deployment history behind it: a function has one record, and publishing replaces it. The 7-day rollup is deliberately absent here, because this read is about what is deployed rather than about how it has performed.

Request

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

Response

StatusBodyMeaning
200fnListok

200 body — 17 fields.

FieldInTypeAlwaysDescription
functionsbodyfunctionView[]—Functions is one row per published function.
functions[].avgDurationMsbodynumber—mean wall-clock of those runs
functions[].createdAtbodystring—when it was first published
functions[].endpointbodystring—the path that invokes it
functions[].envCountbodyinteger—how many secret NAMES it mounts; values are never carried
functions[].environmentbodystring—the language it runs under
functions[].errors7dbodyinteger—how many of those runs failed
functions[].imagebodystring—the prebuilt image it runs, when it runs one instead of source
functions[].invocations7dbodyinteger—runs in the last 7 days; ABSENT, never 0, when it has not run
functions[].lastDeployedAtbodystring—when its code last changed
functions[].memoryLimitbodystring—the memory it runs with, and the multiplier on its compute charge
functions[].namebodystring—the function's org-unique handle
functions[].namespacebodystring—the display group it belongs to; the org is the isolation key
functions[].statusbodystring—whether it is ready to serve
functions[].successRatebodynumber—share of those runs that succeeded, 0..1
functions[].targetbodystring—where it runs: empty for the sandbox, "fleet" for the org's GPU fleet
functions[].timeoutSecbodyinteger—its per-invocation deadline

Failure carries the platform error shape — see Errors.

Examples

hanzo functions deployments

Functions API · All Hanzo APIs · Interactive reference

How is this guide?

On this page