---
title: "Execute Workflow"
method: POST
path: "/public/workflows/{workflow_id}/execute"
tags: ["Flows"]
---

# Execute Workflow

`POST /public/workflows/{workflow_id}/execute`

## Request

- Base URL: `https://catalogapi.rastro.ai/api`
- URL: `https://catalogapi.rastro.ai/api/public/workflows/{workflow_id}/execute`
- Auth: HTTP bearer

Execute a workflow with input data.

- **workflow_id**: The ID of the workflow to execute
- **input**: List of input data records to process

Returns execution info including workflow_run_id for polling.

## Path parameters

- `workflow_id` string, required

## Headers

- `X-Organization-Id` string, nullable

## Request body

- PublicWorkflowExecuteRequest: Request to execute a workflow with input data
  - `input` object[], required: Input data records to process through the workflow
  - `cancel_existing` boolean: Cancel any currently running executions before starting this one

## Response `200`

Successful Response

- PublicWorkflowExecuteResponse: Response from workflow execution start
  - `workflow_run_id` string, required
  - `workflow_id` string, required
  - `workflow_name` string, required
  - `status` string, required
  - `created_at` string, date-time, required
  - `poll_url` string, required
  - `workflow_url` string, required
  - `total_nodes` integer, required
  - `message` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/rastro-ai/apis/rastro-public-api.md) - [All operations](https://skmtc.dev/rastro-ai/apis/rastro-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rastro-ai/apis/rastro-public-api/revisions/57c8ed4854bb?raw)
