Hanzo
OpenapiFunctions

Is the output of a function's most recent run — its error text when that run…

Is the output of a function's most recent run — its error text when that run failed, else what it printed.

GET /v1/functions/{name}/logs

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

Is the output of a function's most recent run — its error text when that run failed, else what it printed.

It is the LAST run only, and it is empty when the function has never run. There is no log retention behind this beyond the recorded invocation itself.

Request

1 field.

FieldInTypeRequiredDescription
namepathstringyesName is the function the URL names.

Response

StatusBodyMeaning
200logLinesok

200 body — 1 field.

FieldInTypeAlwaysDescription
logsbodystringLogs is that run's error text when it failed, else its output.

Failure carries the platform error shape — see Errors.

Examples

hanzo functions logs <name>

Functions API · All Hanzo APIs · Interactive reference

How is this guide?

On this page