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

# List batches

> List the call batches for your account, newest first. Single calls also
get a batch, so every call you place via this API appears here.

Returns 20 batches per page.




## OpenAPI

````yaml /api-reference/openapi.yaml get /batches
openapi: 3.1.0
info:
  title: Outbound Calls API
  version: 1.0.0-beta
  description: |
    REST API for placing AI-powered outbound calls to your contacts. Place a
    single call or a batch, personalize each call's prompt, and review the
    results.

    This reference is in **beta**: the endpoints below are live in production,
    but the reference itself is still being expanded to cover the rest of the
    platform API.
servers:
  - url: https://aipro.placetel.de/api/v1/outbound
security:
  - bearerAuth: []
tags:
  - name: Calls
    description: Place outbound calls.
  - name: Batches
    description: Review the outcome of calls you placed.
  - name: Consents
    description: Manage individual call records before they are dialed.
paths:
  /batches:
    get:
      tags:
        - Batches
      summary: List batches
      description: |
        List the call batches for your account, newest first. Single calls also
        get a batch, so every call you place via this API appears here.

        Returns 20 batches per page.
      operationId: listBatches
      parameters:
        - name: page
          in: query
          required: false
          schema:
            type: integer
            minimum: 1
            default: 1
      responses:
        '200':
          description: A page of batches.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    examples:
                      - true
                  batches:
                    type: array
                    items:
                      type: object
                      properties:
                        batch_id:
                          type: string
                          format: uuid
                        batch_created_at:
                          type: string
                          format: date-time
                        agent_name:
                          type: string
                          nullable: true
                        agent_number:
                          type: string
                        phone_count:
                          type: integer
                          description: Numbers in this batch.
                        called_count:
                          type: integer
                          description: Numbers that were actually dialed.
                        approved_count:
                          type: integer
                        pending_count:
                          type: integer
                        rejected_count:
                          type: integer
                        expired_count:
                          type: integer
                        cancelled_count:
                          type: integer
                        mode:
                          type: string
                          examples:
                            - direct
                  total_pages:
                    type: integer
                    examples:
                      - 3
                  current_page:
                    type: integer
                    examples:
                      - 1
                  total_entries:
                    type: integer
                    examples:
                      - 42
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  responses:
    Unauthorized:
      description: Missing or invalid API token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Outbound calling is not enabled for your account.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      properties:
        success:
          type: boolean
          examples:
            - false
        error:
          type: string
          description: Description of the issue, in English.
        error_type:
          type: string
          description: Machine-readable error category, present on limit-related errors.
        detail:
          type: string
          description: Where to go next, present on rate-limit errors.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |
        Generate (or rotate) your token on the **Outbound Calls** page in your
        dashboard. The token is shown once - store it securely; rotating it
        invalidates the previous token. A token only reaches your own agents and
        data.

````