Workflow

Execute Workflow

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

post/api/v2/workflows

Request body

backgroundboolean
flow_idstring required
globalsobject

Request-level global variables made available to workflow components. Keys may use any printable string up to 256 chars; values are capped at 65536 chars. Body globals always win over the legacy X-LANGFLOW-GLOBAL-VAR-* headers.

inputsobject nullable

Component-specific inputs in flat format: 'component_id.param_name': value

streamboolean

Example request

{
  "background": false,
  "flow_id": "flow_67ccd2be17f0819081ff3bb2cf6508e60bb6a6b452d3795b",
  "globals": {
    "FILENAME": "relatorio-final.pdf",
    "OWNER_NAME": "Jose"
  },
  "inputs": {
    "ChatInput-abc.input_value": "Hello, how can you help me today?",
    "ChatInput-abc.session_id": "session-123",
    "LLM-xyz.max_tokens": 100,
    "LLM-xyz.temperature": 0.7,
    "OpenSearch-def.opensearch_url": "https://opensearch:9200"
  },
  "stream": false
}

Response

Workflow execution response

OR

Changes