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

# Execute multiple workflows in a batch

> Creates a batch execution with multiple workflow executions



## OpenAPI

````yaml post /workflows/executeBatch
openapi: 3.1.0
info:
  title: Kaizen API
  version: 1.0.0
  description: API for the Kaizen Automation Platform
servers:
  - url: https://api.kaizenautomation.com
    description: Production server
security: []
paths:
  /workflows/executeBatch:
    post:
      tags:
        - Workflows
      summary: Execute multiple workflows in a batch
      description: Creates a batch execution with multiple workflow executions
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  description: Name for the execution batch
                  example: Monthly Report Generation
                executions:
                  type: array
                  items:
                    type: object
                    properties:
                      workflowId:
                        type: string
                        description: >-
                          ID of the workflow to execute. Either workflowId or
                          workflowName must be provided.
                      workflowName:
                        type: string
                        description: >-
                          Name of the workflow to execute. If provided, the
                          workflow will be looked up by name within the
                          organization. Either workflowId or workflowName must
                          be provided.
                      loginId:
                        type: string
                        description: ID of the login to use for authentication
                      params:
                        type: object
                        additionalProperties: {}
                        description: Runtime parameters for the workflow execution
                        example:
                          origin: New York
                          destination: Los Angeles
                      name:
                        oneOf:
                          - type: string
                          - type: number
                        description: >-
                          Optional name for the execution (string or number,
                          automatically converted to string)
                        examples:
                          - User batch execution
                          - 12345
                          - Execution-001
                      timeout:
                        type: integer
                        exclusiveMinimum: 0
                        description: >-
                          Optional timeout in seconds for the execution
                          (defaults to 10800 seconds / 3 hours)
                        example: 10800
                      useProxy:
                        type: boolean
                        description: Whether to use a proxy for this execution
                        default: false
                      startBlockId:
                        type: string
                        description: Optional ID of the block to start execution from
                        example: '1'
                      isTest:
                        type: boolean
                        description: Whether this execution is a test run
                        default: false
                      agentConversationThreadId:
                        type: string
                        description: >-
                          Optional ID of an agent conversation thread to
                          associate with this execution (used when duplicating
                          executions that were triggered by an agent)
                    required:
                      - params
                  description: >-
                    Array of workflow execution parameters. Each execution must
                    specify its own workflowId.
              required:
                - name
                - executions
      responses:
        '200':
          description: Batch execution started successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  batchId:
                    type: string
                    description: ID of the created execution batch
                    example: batch_123
                  executionIds:
                    type: array
                    items:
                      type: string
                    description: Array of created execution IDs
                  message:
                    type: string
                    description: Success message
                    example: Batch execution started successfully
                required:
                  - batchId
                  - executionIds
                  - message
        '400':
          description: Invalid request parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                required:
                  - error
        '500':
          description: Server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: Error message
                    example: Failed to execute batch workflows
                required:
                  - error

````