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.| Field | Type | Required | Description |
|---|---|---|---|
deployment | string | Yes | The workflow deployment name |
variant | string | Yes | The deployment variant name |
inputs | object | No | Key-value pairs for the variables defined on the Start step |
async | object | No | Callback delivery settings |
metadata | object | No | Flat caller-defined metadata for audit and log filtering. This is not used as workflow input. |
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:
| Field | Type | Required | Description |
|---|---|---|---|
async.enabled | boolean | Yes | Set to true to return immediately |
async.callback_url | string | Yes when callback delivery is enabled | The callback URL Fetch Hive should call when the run finishes |
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

