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

# Bulk Execute Flows

> Execute multiple flows in bulk.

Useful for:
- Testing multiple flows
- Running related workflows together
- Batch processing scenarios



## OpenAPI

````yaml post /api/v1/flows/executions/bulk
openapi: 3.1.0
info:
  title: ThenaAgentStudio
  description: |2-

        ThenaCrew AI CRM Renewal System

        An intelligent platform to automate customer renewal insights and communications through multi-agent workflows.

        Key Features:
        * AI-powered renewal analysis
        * Personalized communication generation
        * Automated opportunity tracking
        * Multi-agent workflow orchestration
        
  version: 1.0.0
servers:
  - url: https://agent-studio.thena.ai
    description: Production server
  - url: http://localhost:8008
    description: Local development server
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
    description: Agent management endpoints
  - name: Chat
    description: Chat and messaging endpoints
paths:
  /api/v1/flows/executions/bulk:
    post:
      tags:
        - flow-execution
      summary: Bulk Execute Flows
      description: |-
        Execute multiple flows in bulk.

        Useful for:
        - Testing multiple flows
        - Running related workflows together
        - Batch processing scenarios
      operationId: bulk_execute_flows_api_v1_flows_executions_bulk_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BulkExecutionRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkExecutionResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    BulkExecutionRequest:
      properties:
        flow_ids:
          items:
            type: string
          type: array
          title: Flow Ids
          description: List of flow IDs to execute
        trigger_type:
          $ref: '#/components/schemas/ExecutionTriggerType'
          description: Trigger type for all executions
        variables:
          additionalProperties: true
          type: object
          title: Variables
          description: Variables for all executions
        priority:
          $ref: '#/components/schemas/ExecutionPriority'
          description: Priority for all executions
          default: normal
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
          description: Metadata for all executions
      type: object
      required:
        - flow_ids
        - trigger_type
      title: BulkExecutionRequest
      description: Request for bulk flow execution.
    BulkExecutionResponse:
      properties:
        total_requested:
          type: integer
          title: Total Requested
          description: Total executions requested
        successful_queued:
          type: integer
          title: Successful Queued
          description: Successfully queued executions
        failed_queued:
          type: integer
          title: Failed Queued
          description: Failed to queue executions
        execution_ids:
          items:
            type: string
          type: array
          title: Execution Ids
          description: List of created execution IDs
        errors:
          items:
            type: string
          type: array
          title: Errors
          description: List of errors encountered
      type: object
      required:
        - total_requested
        - successful_queued
        - failed_queued
        - execution_ids
      title: BulkExecutionResponse
      description: Response for bulk execution operations.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ExecutionTriggerType:
      type: string
      enum:
        - manual
        - event
        - scheduled
        - api
        - webhook
        - test
      title: ExecutionTriggerType
      description: How the execution was triggered.
    ExecutionPriority:
      type: string
      enum:
        - low
        - normal
        - high
        - urgent
      title: ExecutionPriority
      description: Execution priority levels.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````