> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Execute Workflow

> Execute a workflow by ID with optional custom input data.



## OpenAPI

````yaml post /v3/workflows/{flow_id}/execute
openapi: 3.0.0
info:
  title: Lyzr API - Execute Workflow
  version: v3
  description: Execute a workflow by its ID with optional input data.
servers:
  - url: https://agent-prod.studio.lyzr.ai
security: []
paths:
  /v3/workflows/{flow_id}/execute:
    post:
      summary: Execute Workflow Endpoint
      description: Execute a workflow by ID with optional custom input data.
      operationId: executeWorkflow
      parameters:
        - name: flow_id
          in: path
          required: true
          description: ID of the workflow to execute.
          schema:
            type: string
            example: e0ab5411-8620-41c0-acdd-bac4c35fc7c0
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              example:
                input_data:
                  param1: value1
                  param2: value2
      responses:
        '200':
          description: Workflow executed successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  output:
                    type: object
                    example: {}
        '400':
          description: Bad request
        '401':
          description: Unauthorized
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````