Hanzo
OpenapiFunctions

Is what is live right now — each function's current record IS its live…

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[].avgDurationMsbodynumbermean wall-clock of those runs
functions[].createdAtbodystringwhen it was first published
functions[].endpointbodystringthe path that invokes it
functions[].envCountbodyintegerhow many secret NAMES it mounts; values are never carried
functions[].environmentbodystringthe language it runs under
functions[].errors7dbodyintegerhow many of those runs failed
functions[].imagebodystringthe prebuilt image it runs, when it runs one instead of source
functions[].invocations7dbodyintegerruns in the last 7 days; ABSENT, never 0, when it has not run
functions[].lastDeployedAtbodystringwhen its code last changed
functions[].memoryLimitbodystringthe memory it runs with, and the multiplier on its compute charge
functions[].namebodystringthe function's org-unique handle
functions[].namespacebodystringthe display group it belongs to; the org is the isolation key
functions[].statusbodystringwhether it is ready to serve
functions[].successRatebodynumbershare of those runs that succeeded, 0..1
functions[].targetbodystringwhere it runs: empty for the sandbox, "fleet" for the org's GPU fleet
functions[].timeoutSecbodyintegerits 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