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

# List execution batches

> List execution batches with filtering and pagination



## OpenAPI

````yaml https://odyssey.asteroid.ai/agents/v2/openapi.yaml get /execution-batches
openapi: 3.1.0
info:
  title: Agent Service
  version: v1
servers:
  - description: V2 API
    url: https://odyssey.asteroid.ai/agents/v2
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
  - name: Environments
  - name: Execution
  - name: Files
  - name: Agent Profiles
  - name: Agent Profile Pools
  - name: Workflows
  - name: Execution Batches
  - name: Scheduled Executions
  - name: Schema
  - name: Documentation
  - name: Context
  - name: Admin Customer Activity
paths:
  /execution-batches:
    get:
      tags:
        - Execution Batches
      summary: List execution batches
      description: List execution batches with filtering and pagination
      operationId: ExecutionBatchesList
      parameters:
        - $ref: '#/components/parameters/Agents.ExecutionBatch.ListFilter.agentId'
        - $ref: '#/components/parameters/Agents.ExecutionBatch.ListFilter.status'
        - $ref: '#/components/parameters/Common.Pagination.pageSize'
        - $ref: '#/components/parameters/Common.Pagination.page'
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  items:
                    items:
                      $ref: '#/components/schemas/Agents.ExecutionBatch.Base'
                    type: array
                  page:
                    format: int64
                    type: integer
                  pageSize:
                    format: int64
                    type: integer
                  total:
                    format: int64
                    type: integer
                required:
                  - items
                  - page
                  - pageSize
                  - total
                type: object
          description: The request has succeeded.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.BadRequestErrorBody'
          description: The server could not understand the request due to invalid syntax.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.UnauthorizedErrorBody'
          description: Access is unauthorized.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.ForbiddenErrorBody'
          description: Access is forbidden.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.NotFoundErrorBody'
          description: The server cannot find the requested resource.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Common.InternalServerErrorBody'
          description: Server error
components:
  parameters:
    Agents.ExecutionBatch.ListFilter.agentId:
      description: Filter by agent ID
      explode: false
      in: query
      name: agentId
      required: true
      schema:
        $ref: '#/components/schemas/Common.uuid'
    Agents.ExecutionBatch.ListFilter.status:
      description: Filter by batch status
      explode: false
      in: query
      name: status
      schema:
        $ref: '#/components/schemas/Agents.ExecutionBatch.Status'
    Common.Pagination.pageSize:
      explode: false
      in: query
      name: pageSize
      schema:
        default: 50
        format: int32
        type: integer
    Common.Pagination.page:
      explode: false
      in: query
      name: page
      schema:
        default: 1
        format: int32
        type: integer
  schemas:
    Agents.ExecutionBatch.Base:
      description: Execution batch with status counts
      properties:
        agentId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: Agent ID this batch belongs to
        awaitingCapacityCount:
          description: Number of items awaiting capacity
          type: integer
        cancelledCount:
          description: Number of cancelled items
          type: integer
        concurrencyGroupId:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: >-
            Batches sharing a group share one concurrency budget rather than
            each getting

            its own. Equals the batch's own id for a one-off batch; a recurring
            batch

            carries the id of the schedule that produced it.
        config:
          allOf:
            - $ref: '#/components/schemas/Agents.ExecutionBatch.BatchConfig'
          description: Batch configuration
        createdAt:
          description: Creation timestamp
          format: date-time
          type: string
        failedCount:
          description: Number of items that could not be triggered and will not be retried
          type: integer
        id:
          allOf:
            - $ref: '#/components/schemas/Common.uuid'
          description: Unique identifier for the batch
        name:
          description: Human-readable name for the batch
          type: string
        pendingCount:
          description: Number of pending items
          type: integer
        startAt:
          description: When to start triggering executions
          format: date-time
          type: string
        status:
          allOf:
            - $ref: '#/components/schemas/Agents.ExecutionBatch.Status'
          description: Current batch status
        totalCount:
          description: Total number of items
          type: integer
        triggeredCount:
          description: Number of triggered items
          type: integer
        updatedAt:
          description: Last update timestamp
          format: date-time
          type: string
      required:
        - id
        - agentId
        - name
        - startAt
        - config
        - concurrencyGroupId
        - status
        - pendingCount
        - triggeredCount
        - cancelledCount
        - awaitingCapacityCount
        - failedCount
        - totalCount
        - createdAt
        - updatedAt
      type: object
    Common.BadRequestErrorBody:
      properties:
        code:
          enum:
            - 400
          type: number
          x-enum-varnames:
            - BadRequest
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.UnauthorizedErrorBody:
      properties:
        code:
          enum:
            - 401
          type: number
          x-enum-varnames:
            - Unauthorized
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.ForbiddenErrorBody:
      properties:
        code:
          enum:
            - 403
          type: number
          x-enum-varnames:
            - Forbidden
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.NotFoundErrorBody:
      properties:
        code:
          enum:
            - 404
          type: number
          x-enum-varnames:
            - NotFound
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.InternalServerErrorBody:
      properties:
        code:
          enum:
            - 500
          type: number
          x-enum-varnames:
            - InternalServerError
        message:
          type: string
      required:
        - code
        - message
      type: object
    Common.uuid:
      format: uuid
      type: string
    Agents.ExecutionBatch.Status:
      description: Execution batch status
      enum:
        - pending
        - running
        - paused
        - completed
        - cancelled
      type: string
    Agents.ExecutionBatch.BatchConfig:
      description: Discriminated union of batch configuration types (discriminated by type)
      discriminator:
        mapping:
          maxConcurrent:
            $ref: '#/components/schemas/Agents.ExecutionBatch.MaxConcurrentConfig'
          timeBatching:
            $ref: '#/components/schemas/Agents.ExecutionBatch.TimeBatchingConfig'
        propertyName: type
      oneOf:
        - $ref: '#/components/schemas/Agents.ExecutionBatch.TimeBatchingConfig'
        - $ref: '#/components/schemas/Agents.ExecutionBatch.MaxConcurrentConfig'
      type: object
    Agents.ExecutionBatch.MaxConcurrentConfig:
      description: Max concurrent execution configuration
      properties:
        maxConcurrent:
          description: Maximum number of executions running at the same time
          type: integer
        type:
          description: Config type discriminator
          enum:
            - maxConcurrent
          type: string
      required:
        - type
        - maxConcurrent
      type: object
    Agents.ExecutionBatch.TimeBatchingConfig:
      description: Time-based batching configuration
      properties:
        batchInterval:
          description: Seconds to wait between each batch of executions
          type: integer
        batchSize:
          description: Maximum number of executions to trigger in each batch
          type: integer
        type:
          description: Config type discriminator
          enum:
            - timeBatching
          type: string
      required:
        - type
        - batchSize
        - batchInterval
      type: object
  securitySchemes:
    ApiKeyAuth:
      in: header
      name: X-Asteroid-Agents-Api-Key
      type: apiKey

````