---
title: "Execute Workflow"
method: POST
path: "/api/v2/workflows"
tags: ["Workflow"]
---

# Execute Workflow

`POST /api/v2/workflows`

Execute a workflow with support for sync, stream, and background modes

## Request body

- WorkflowExecutionRequest — Request schema for workflow execution.
  - `background` boolean
  - `stream` boolean
  - `flow_id` string, required
  - `inputs` object, nullable — Component-specific inputs in flat format: 'component_id.param_name': value

## Response `200`

Workflow execution response

- union
  - WorkflowExecutionResponse — Synchronous workflow execution response.
    - `flow_id` string, required
    - `job_id` union
      - string
      - string, uuid
    - `object` 'response'
    - `created_timestamp` string
    - `status` 'queued' | 'in_progress' | 'completed' | 'failed' | 'cancelled' | 'timed_out', required — Job execution status.
    - `errors` ErrorDetail[]
      - `error` string, required
      - `code` string, nullable
      - `details` object, nullable
    - `inputs` object
    - `outputs` object
  - WorkflowJobResponse — Background job response.
    - `job_id` union, required
      - string
      - string, uuid
    - `flow_id` string, required
    - `object` 'job'
    - `created_timestamp` string
    - `status` 'queued' | 'in_progress' | 'completed' | 'failed' | 'cancelled' | 'timed_out', required — Job execution status.
    - `links` object
    - `errors` ErrorDetail1[]
      - `error` string, required
      - `code` string, nullable
      - `details` object, nullable

## Other responses

- `422` — Validation Error

## Changes

- **2026-03-06** `0be341779529` — 1 info
  - endpoint added
- **2026-02-18** `191b57fc530b` — 1 breaking
  - api path removed without deprecation
- **2026-02-10** `0be341779529` — 1 info
  - endpoint added
- **2025-10-16** `9bd3e81318d7` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/langflow-ai/apis/langflow/changes/api/v2/workflows/post.md)

---

[API](https://skmtc.dev/langflow-ai/apis/langflow.md) · [All operations](https://skmtc.dev/langflow-ai/apis/langflow/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langflow-ai/langflow/revisions/0be341779529/schema)
