Hanzo
OpenapiFunctions

Is one function's past runs, newest first — each with its status, HTTP code,…

Is one function's past runs, newest first — each with its status, HTTP code, method, time and duration.

GET /v1/functions/{name}/invocations

Addresshttps://api.hanzo.ai/v1/functions/{name}/invocations
MethodGET
Operationget_functions_by_name_invocations
AuthAuthorization: Bearer $HANZO_API_KEY

Is one function's past runs, newest first — each with its status, HTTP code, method, time and duration.

These are real recorded rows, not a projection: an invocation appears here only once it actually ran. Requires a validated principal; the read is scoped to its org.

Request

2 fields.

FieldInTypeRequiredDescription
namepathstringyesName is the function the URL names.
limitqueryintegerLimit caps the page, defaulting to 100.

Response

StatusBodyMeaning
200invocationListok

200 body — 7 fields.

FieldInTypeAlwaysDescription
invocationsbodyinvocationView[]Invocations is one row per past run, newest first.
invocations[].durationMsbodyintegerhow long it took
invocations[].idbodystringthe invocation's handle
invocations[].methodbodystringthe HTTP method that triggered it
invocations[].statusbodystringhow the run ended: ok, error or timeout
invocations[].statusCodebodyintegerCode is the status the function's OWN code answered with, which is not the status of the reply — a program can answer 500 through a healthy sandbox.
invocations[].timebodystringwhen it ran, RFC3339

Failure carries the platform error shape — see Errors.

Examples

hanzo functions invocations <name>

Functions API · All Hanzo APIs · Interactive reference

How is this guide?

On this page