POST /v1/workflow/invoke
Run a workflow deployment from your own app or service.
Authentication
Send your workspace API key in theAuthorization header.
Request body
Open Workflows, then Deployments, open the deployment variant you want to run, and click Code Snippet to copy the current request shape from Fetch Hive.inputs values are validated against the workflow’s Start input definitions before the run starts. Array start inputs must be native JSON arrays, not JSON strings.
metadata must be a flat object. Keys must be non-empty strings, and values must be strings, numbers, booleans, or null. Arrays and nested objects are rejected before the run starts.
Valid:
async, use these nested fields:
If you turn on Callback delivery in the code snippet dialog, Fetch Hive also shows a Signing secret for callback verification.
Response
When callback delivery is off, Fetch Hive waits for the workflow to finish and returns the output in one response.output is shape-dependent by workflow result type. For image-generation final outputs, output is an object with settings and assets:
async.enabled is true, Fetch Hive returns immediately.
Example
Direct request
Callback delivery request
Related
- See Authentication for API key setup
- See Callback Delivery and Webhook Triggers for callback delivery and signature verification
- See Run with API for a workflow-focused guide

