Invoke Workflow

Run a workflow deployment with the public Fetch Hive API using a deployment name, variant, and start inputs

POST /v1/workflow/invoke

Run a workflow deployment from your own app or service.

Authentication

Send your workspace API key in the Authorization header.

Authorization: Bearer YOUR_API_KEY

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

Async run settings

If you include 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 async is enabled

The webhook URL Fetch Hive should call when the run finishes

If you turn on Async in the code snippet dialog, Fetch Hive also shows a Signing secret for webhook verification.

Response

When async mode is off, Fetch Hive waits for the workflow to finish and returns the output in one response.

When async.enabled is true, Fetch Hive returns immediately.

At high concurrency, Fetch Hive can also return a queued async state.

Example

Sync request

Async request

Last updated