> ## Documentation Index
> Fetch the complete documentation index at: https://docs.valarhq.ai/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 GET /batches/{batch_id}
openapi: 3.1.0
info:
  title: Valar API
  version: '2026-02-18'
  description: >-
    Valar exposes Responses and Chat Completions endpoints that match the OpenAI
    shape. This reference documents the fields Valar supports today.
servers:
  - url: https://api.valarhq.ai/v1
security:
  - BearerAuth: []
tags:
  - name: Models API
    description: Discover which models you can call.
  - name: Responses API
    description: Responses endpoints that follow the OpenAI interface.
  - name: Chat Completions API
    description: Chat Completions endpoints that follow the OpenAI interface.
  - name: Batches API
    description: Submit request batches and track their progress.
paths:
  /batches/{batch_id}:
    get:
      tags:
        - Batches API
      summary: Check batch status
      description: See where a batch currently stands.
      operationId: getBatch
      parameters:
        - name: batch_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: The batch's current status.
          content:
            application/json:
              schema:
                type: object
                required:
                  - id
                  - request_counts
                  - created_at
                  - request_status
                properties:
                  id:
                    type: string
                    description: The batch's unique ID.
                  request_counts:
                    type: integer
                    description: How many requests the batch contains.
                  created_at:
                    type: integer
                    description: When the batch was created, as a Unix timestamp.
                  label:
                    type: string
                    description: The label you gave the batch, when one was set.
                  request_status:
                    type: object
                    description: >-
                      Maps each custom_id to where that request currently
                      stands.
                    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: The request was malformed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: We could not authenticate the request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: No batch exists for that ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Something went wrong on Valar's side.
          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

````