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

# Submit multiple workflows in batch



## OpenAPI

````yaml api-reference/endpoints/executions/api-reference/openapi.json post /api/v1/workflows/batch_run
openapi: 3.1.0
info:
  title: Polos Orchestrator API
  description: API for the Polos durable execution platform for AI agents
  contact:
    name: Polos Team
    url: https://github.com/polos-dev/polos
  license:
    name: ''
  version: 1.0.0
servers:
  - url: /
    description: Current server
security: []
tags:
  - name: Health
    description: Health check endpoints
  - name: Projects
    description: Project management endpoints
  - name: Agents
    description: Agent definition management
  - name: Tools
    description: Tool definition management
  - name: Workflows
    description: Workflow management
  - name: Executions
    description: Workflow execution management
  - name: Traces
    description: Observability traces
  - name: Events
    description: Event publishing and streaming
  - name: Event Triggers
    description: Event-based workflow triggers
  - name: Schedules
    description: Scheduled workflow execution
  - name: Workers
    description: Worker registration and management
  - name: Deployments
    description: Deployment management
paths:
  /api/v1/workflows/batch_run:
    post:
      tags:
        - Executions
      summary: Submit multiple workflows in batch
      operationId: submit_workflows
      parameters:
        - name: X-Project-ID
          in: header
          description: Project ID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitWorkflowsRequest'
        required: true
      responses:
        '200':
          description: Workflows submitted successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitWorkflowsResponse'
        '400':
          description: Bad request
        '404':
          description: Project or deployment not found
        '500':
          description: Internal server error
      security:
        - bearer_auth: []
        - cookie_auth: []
components:
  schemas:
    SubmitWorkflowsRequest:
      type: object
      description: Request to submit multiple workflows in batch
      required:
        - workflows
      properties:
        deployment_id:
          type:
            - string
            - 'null'
          description: Deployment ID (optional)
        otel_traceparent:
          type:
            - string
            - 'null'
          description: OpenTelemetry trace parent (deprecated)
        parent_execution_id:
          type:
            - string
            - 'null'
          description: Parent execution ID (deprecated)
        root_execution_id:
          type:
            - string
            - 'null'
          description: Root execution ID (deprecated)
        session_id:
          type:
            - string
            - 'null'
          description: Session ID
        step_key:
          type:
            - string
            - 'null'
          description: Step key identifier (deprecated)
        user_id:
          type:
            - string
            - 'null'
          description: User ID
        wait_for_subworkflow:
          type:
            - boolean
            - 'null'
          description: Whether to wait for subworkflow completion (deprecated)
        workflows:
          type: array
          items:
            $ref: '#/components/schemas/WorkflowRequest'
          description: List of workflows to submit
    SubmitWorkflowsResponse:
      type: object
      description: Response for batch workflow submission
      required:
        - executions
      properties:
        executions:
          type: array
          items:
            $ref: '#/components/schemas/SubmitWorkflowResponse'
          description: List of created executions
    WorkflowRequest:
      type: object
      description: Individual workflow request in a batch
      required:
        - workflow_id
        - payload
      properties:
        concurrency_key:
          type:
            - string
            - 'null'
          description: Concurrency key
        initial_state:
          description: Initial state
        payload:
          description: Input payload
        queue_concurrency_limit:
          type:
            - integer
            - 'null'
          format: int32
          description: Queue concurrency limit
        queue_name:
          type:
            - string
            - 'null'
          description: Queue name
        run_timeout_seconds:
          type:
            - integer
            - 'null'
          format: int32
          description: Timeout in seconds
        workflow_id:
          type: string
          description: Workflow ID to execute
    SubmitWorkflowResponse:
      type: object
      description: Response after submitting a workflow
      required:
        - execution_id
        - created_at
      properties:
        created_at:
          type: string
          description: Creation timestamp (RFC3339)
        execution_id:
          type: string
          description: Execution ID
  securitySchemes:
    bearer_auth:
      type: http
      scheme: bearer
    cookie_auth:
      type: apiKey
      in: cookie
      name: polos_auth

````