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

# Get batch status

> Retrieve the current status of a batch.



## OpenAPI

````yaml /openapi.json get /batches/{batch_id}
openapi: 3.1.0
info:
  title: Sail API
  version: '2026-02-18'
  description: >-
    Sail provides OpenAI-compatible Responses and Chat Completions endpoints,
    plus an Anthropic-compatible Messages endpoint. This reference documents the
    currently supported subset of fields.
servers:
  - url: https://api.sailresearch.com/v1
security:
  - BearerAuth: []
tags:
  - name: Models API
    description: Model discovery endpoints.
  - name: Responses API
    description: OpenAI-compatible Responses API endpoints.
  - name: Chat Completions API
    description: OpenAI-compatible Chat Completions API endpoints.
  - name: Messages API
    description: Anthropic-compatible Messages API endpoints.
  - name: Batches API
    description: Submit and manage batches of requests.
paths:
  /batches/{batch_id}:
    get:
      tags:
        - Batches API
      summary: Get batch status
      description: Retrieve the current status of a batch.
      operationId: getBatch
      parameters:
        - name: batch_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Returns the current status of a batch.
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - request_counts
                  - created_at
                  - request_status
                properties:
                  id:
                    type: string
                    description: Unique identifier for the batch.
                  request_counts:
                    type: integer
                    description: Total number of requests in the batch.
                  created_at:
                    type: integer
                    description: Unix timestamp of when the batch was created.
                  label:
                    type: string
                    description: The label for the batch, if provided.
                  request_status:
                    type: object
                    description: A map of custom_id to its current status.
                    additionalProperties:
                      type: object
                      required:
                        - status
                      properties:
                        status:
                          type: string
              example:
                id: batch_abc123
                request_counts: 2
                created_at: 1741564800
                label: my-batch-job
                request_status:
                  my-first-request:
                    status: COMPLETED
                  my-second-request:
                    status: RUNNING
        '400':
          description: Invalid request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Batch not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server error.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          $ref: '#/components/schemas/ErrorObject'
      additionalProperties: false
    ErrorObject:
      type: object
      required:
        - message
        - type
      properties:
        message:
          type: string
        type:
          type: string
        param:
          oneOf:
            - type: string
            - type: 'null'
        code:
          oneOf:
            - type: string
            - type: integer
            - type: 'null'
      additionalProperties: true
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key

````