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

# Retrieve batch

> Returns information about a specific batch job.



## OpenAPI

````yaml /api-reference/openapi.json get /v1/batches/{batch_id}
openapi: 3.1.0
info:
  title: Neosantara AI API
  description: OpenAI-compatible LLM Gateway
  version: 1.0.0
servers:
  - url: https://api.neosantara.xyz
    description: Neosantara Production Gateway
security:
  - bearerAuth: []
paths:
  /v1/batches/{batch_id}:
    get:
      tags:
        - Batches
      summary: Retrieve batch
      description: Returns information about a specific batch job.
      operationId: getV1BatchesByBatchId
      parameters:
        - schema:
            type: string
          in: path
          name: batch_id
          required: true
      responses:
        '200':
          description: Batch details
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  object:
                    type: string
                    const: batch
                  endpoint:
                    type: string
                  status:
                    type: string
                  created_at:
                    type: number
                  request_counts:
                    type: object
                    properties:
                      total:
                        type: number
                      completed:
                        type: number
                      failed:
                        type: number
                    required:
                      - total
                      - completed
                      - failed
                required:
                  - id
                  - object
                  - endpoint
                  - status
                  - created_at
                  - request_counts
        '404':
          description: Batch not found
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.