Hanzo AI
OpenapiAuto

Run provider

Run executes one provider action in-process and answers the outcome.

POST /v1/auto/provider/{id}/run

Addresshttps://api.hanzo.ai/v1/auto/provider/{id}/run
MethodPOST
Operationpost_auto_provider_by_id_run
AuthAuthorization: Bearer $HANZO_API_KEY

Run executes one provider action in-process and answers the outcome. The caller's resolved credential travels in auth, delivered to the action verbatim — the runtime resolves no credential itself. An action that ran and failed (or an action name the provider does not have) answers ok:false with the failure message, not an HTTP error; an unknown provider is 404 and a missing action 422.

Request

6 fields, body application/json (required).

FieldInTypeRequiredDescription
idpathstringyesID is the provider to run, from the path.
actionbodystringAction is the name of the provider action to invoke.
authbodyobjectAuth is the caller's resolved credential for the provider, handed to the action verbatim.
idbodystringID is the provider to run, from the path.
propsbodyobjectProps are the action's input properties, keyed by property name.
props.*bodyobject

Response

StatusBodyMeaning
200auto.runRespok
defaultproblem-detailsrefused

200 body — 3 fields.

FieldInTypeAlwaysDescription
errorbodystringError is the provider-level failure message when not ok.
okbodybooleanOk reports whether the action ran to completion.
outputbodyobjectOutput is the action's result when ok.

Failure carries the platform error shape — see Errors.

Examples

hanzo auto provider run <id>

Auto API · All Hanzo APIs · Interactive reference

How is this guide?

On this page