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

# List All Batches

> Retrieves a list of all call batches for the authenticated user, sorted by creation date (newest first).



## OpenAPI

````yaml get /api/v1/batch/list
openapi: 3.0.3
info:
  title: Dialgen API
  description: >-
    Dialgen API allows you to programmatically initiate and monitor AI-powered
    voice calls, either one at a time or in high-volume batches.
  version: 1.0.0
  contact:
    name: Dialgen Support
    url: https://sa.dialgen.ai
servers:
  - url: https://sa.dialgen.ai
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Agents
    description: Operations related to AI agents
  - name: Calls
    description: Operations related to individual calls
  - name: Batches
    description: Operations related to batch campaigns
paths:
  /api/v1/batch/list:
    get:
      tags:
        - Batches
      summary: List All Batches
      description: >-
        Retrieves a list of all call batches for the authenticated user, sorted
        by creation date (newest first).
      operationId: batchList
      responses:
        '200':
          description: Batch list retrieved successfully
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/BatchSummary'
              example:
                - batchId: batch_123...
                  status: processing
                  total: 1000
                  processed: 500
                  succeeded: 450
                  failed: 50
                  percentComplete: 50
                  createdAt: '2024-01-15T10:00:00.000Z'
                  agentId: agent_abc...
                  priority: 5
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    BatchSummary:
      type: object
      properties:
        batchId:
          type: string
        status:
          type: string
          enum:
            - ingesting
            - scheduled
            - pending
            - processing
            - completed
            - cancelled
        total:
          type: number
        processed:
          type: number
        succeeded:
          type: number
        failed:
          type: number
        percentComplete:
          type: number
        createdAt:
          type: string
          format: date-time
        agentId:
          type: string
        priority:
          type: number
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        message:
          type: string
        details:
          type: object
  responses:
    Unauthorized:
      description: Missing or invalid API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Unauthorized
            message: Invalid or missing API key
    InternalServerError:
      description: An unexpected server error occurred
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Internal Server Error
            message: An unexpected error occurred
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Bearer token authentication. Obtain your API key from the Dialgen API
        Keys dashboard at https://sa.dialgen.ai/api-keys

````