Skip to main content
POST
/
workflow
/
run
Execute a workflow synchronously
curl --request POST \
  --url http://localhost:3001/workflow/run \
  --header 'Content-Type: application/json' \
  --data '
{
  "workflowName": "<string>",
  "input": "<unknown>",
  "workflowId": "<string>",
  "catalog": "<string>",
  "taskQueue": "<string>",
  "timeout": 123
}
'
{
  "workflowId": "<string>",
  "runId": "<string>",
  "input": "<unknown>",
  "output": "<unknown>",
  "trace": {
    "destinations": {
      "local": "<string>",
      "remote": "<string>"
    }
  },
  "error": "<string>",
  "errorDetails": {
    "message": "<string>",
    "name": "<string>",
    "retryable": true,
    "activityId": "<string>",
    "cause": {}
  }
}

Body

application/json
workflowName
string
required

The name of the workflow to execute

input
any
required

The payload to send to the workflow

workflowId
string

(Optional) The workflowId to use. Must be unique

catalog
string

The catalog (Temporal task queue) to route the execution to. Falls back to the default catalog.

taskQueue
string
deprecated

Deprecated alias for catalog. If both are sent, catalog wins.

timeout
number

(Optional) The max time to wait for the execution, defaults to 30s

Response

The workflow result

workflowId
string

The workflow execution id

runId
string

The specific run id for this execution

input
any

The original input passed to the workflow, null if unavailable

output
any

The result of workflow, null if workflow failed

trace
object

An object with information about the trace generated by the execution

status
enum<string>

The workflow execution status

Available options:
completed,
failed,
canceled,
terminated,
timed_out,
continued
error
string | null

Error message if workflow failed, null otherwise

errorDetails
object

Structured failure details if the workflow failed, null otherwise