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

# List message batches



## OpenAPI

````yaml /openapi.json get /v1/messages/batches
openapi: 3.0.0
info:
  description: >-
    AI gateway routing requests to multiple LLM providers (OpenAI, Anthropic,
    Gemini, Groq, Fireworks AI, Meta, OpenRouter, Kilo AI, DeepSeek, Z.ai, xAI,
    MiniMax, Xiaomi MiMo, OpenCode Go, Oracle, Ollama, Bailian). Drop-in
    OpenAI-compatible API.
  title: GoModel API
  contact: {}
  version: '1.0'
servers:
  - url: '{base_url}'
    description: Edit the base URL to point at your GoModel deployment.
    variables:
      base_url:
        default: http://localhost:8080
        description: Your GoModel deployment URL
security: []
paths:
  /v1/messages/batches:
    get:
      tags:
        - messages
      summary: List message batches
      parameters:
        - description: Pagination cursor
          name: after_id
          in: query
          schema:
            type: string
        - description: Maximum items to return (1-100, default 20)
          name: limit
          in: query
          schema:
            type: integer
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/anthropicapi.MessageBatchList'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/anthropicapi.ErrorResponse'
      security:
        - BearerAuth: []
components:
  schemas:
    anthropicapi.MessageBatchList:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/anthropicapi.MessageBatch'
        first_id:
          type: string
        has_more:
          type: boolean
        last_id:
          type: string
    anthropicapi.ErrorResponse:
      type: object
      properties:
        error:
          $ref: '#/components/schemas/anthropicapi.ErrorObject'
        type:
          type: string
    anthropicapi.MessageBatch:
      type: object
      properties:
        archived_at:
          type: string
        cancel_initiated_at:
          type: string
        created_at:
          type: string
        ended_at:
          type: string
        expires_at:
          type: string
        id:
          type: string
        processing_status:
          type: string
        request_counts:
          $ref: '#/components/schemas/anthropicapi.MessageBatchRequestCounts'
        results_url:
          type: string
        type:
          type: string
    anthropicapi.ErrorObject:
      type: object
      properties:
        message:
          type: string
        type:
          type: string
    anthropicapi.MessageBatchRequestCounts:
      type: object
      properties:
        canceled:
          type: integer
        errored:
          type: integer
        expired:
          type: integer
        processing:
          type: integer
        succeeded:
          type: integer
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````