Trigger a new run of a flow

Spawns a fresh sandboxed Claude-CLI container running this flow. If

POST /api/v1/flows/{flowId}/runs

Spawns a fresh sandboxed Claude-CLI container running this flow. If prompt is provided, it’s sent as the initial message; otherwise the flow’s pre-configured prompt (if any) is used.

Pass Idempotency-Key header (or idempotencyKey in the body) to deduplicate retries within 24 hours.

Authentication

Requires a project API key — see Authentication.

Parameters

NameInTypeRequiredDescription
flowIdpathstringrequiredUUID of the flow to trigger.
Idempotency-KeyheaderstringoptionalDeduplicate retries within 24 hours for this project.

Request body

FieldTypeRequiredDescription
promptstringoptionalInitial message sent to the agent.
idempotencyKeystringoptional
callbackUrlstring urioptionalHTTPS URL to receive the signed run.finished webhook.

Responses

StatusDescription
200Idempotency hit — existing run returned.
201Run created.
400Request body or query parameters failed validation.
401Missing, malformed, expired, or revoked API key.
403Flow does not belong to this project.
404Resource not found or not accessible to this project.
409Self-hosted runner is offline.
429Rate limit, concurrent cap, or monthly quota exceeded.

Tag: Runs