Execution

Execute workflows and monitor active executions

Execute Workflow Endpoint

POST
/workflows/{workflow_id}/execute

Path Parameters

workflow_id*string

Request Body

application/json

inputs?

Input variables for the workflow.

task?|

Primary task description -- substituted for $ARGUMENTS in phase prompts. Omit it to run without a task; an empty or whitespace-only task is rejected with 422 (PC-66).

repos?array<>

GitHub URLs or 'owner/repo' slugs to pre-clone for workspace hydration (ADR-058, ADR-063). Typed channel for repository identity: one execution can touch 0, 1, or N repos. Passing 'repository' or 'repos' in the inputs dict is rejected with 422.

tags?array<>

Tags for this run, united with the workflow's own tags at launch (#967). Normalised (trimmed, lowercased, deduped); an invalid tag is rejected with 422.

eval_id?|

The eval this run joins, overriding the workflow's default eval (#967). 404 if it does not exist, 409 if it is archived.

no_eval?boolean

Launch an ordinary run: join no eval, even if the workflow has a default eval (#967). Cannot be combined with eval_id (422).

Defaultfalse
idempotency_key?|

Makes the start idempotent (#2129): the execution id is derived from the workflow and this key, so every start with the same key, concurrent ones included, answers with the one execution and replayed: true after the first. A start that differs from the one that made it is refused with 409.

provider?stringDeprecated

Agent provider to use. Currently ignored by execute(); sending this field has no effect.

Default"claude"
max_budget_usd?|Deprecated

Maximum budget in USD. Currently ignored by execute(); sending this field has no effect.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://loading/workflows/string/execute" \  -H "Content-Type: application/json" \  -d '{}'
{
  "execution_id": "string",
  "workflow_id": "string",
  "status": "started",
  "message": "Workflow execution started",
  "replayed": false
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

Get Execution Status Endpoint

GET
/workflows/{workflow_id}/executions/{execution_id}

Path Parameters

workflow_id*string
execution_id*string

Response Body

application/json

application/json

curl -X GET "https://loading/workflows/string/executions/string"
{
  "execution_id": "string",
  "workflow_id": "string",
  "status": "string",
  "current_phase": "string",
  "completed_phases": 0,
  "total_phases": 0,
  "phase_progress": {
    "completed": 0,
    "skipped": 0,
    "possible": 0,
    "remaining_possible": 0,
    "percent": 0,
    "display": "string"
  },
  "started_at": "string",
  "completed_at": "string",
  "error": "string"
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

List Active Executions Endpoint

GET
/workflows/executions/active

Query Parameters

limit?integer
Default20
Range1 <= value <= 100

Response Body

application/json

application/json

curl -X GET "https://loading/workflows/executions/active"
[
  {
    "execution_id": "string",
    "workflow_id": "string",
    "status": "string",
    "current_phase": "string",
    "completed_phases": 0,
    "total_phases": 0,
    "phase_progress": {
      "completed": 0,
      "skipped": 0,
      "possible": 0,
      "remaining_possible": 0,
      "percent": 0,
      "display": "string"
    },
    "started_at": "string",
    "completed_at": "string",
    "error": "string"
  }
]
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}

On this page