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

# Get Batch Status

> Poll an async classification batch at /v1/reflex/asynchronous_batches/{batch_id}

## Overview

Returns the state and row counts of an asynchronous batch. Poll until `status` is terminal, then fetch [results](/api-reference/endpoint/reflex-batch-results).


## OpenAPI

````yaml GET /v1/reflex/asynchronous_batches/{batch_id}
openapi: 3.1.0
info:
  title: Morph API
  version: 1.1.0
  description: >-
    The Morph public API at api.morphllm.com: OpenAI- and Anthropic-compatible
    inference (chat completions, messages), Fast Apply code editing, Compact
    context compression, Reflex classification, and fine-tuning. Model ids,
    prices, and context windows are served live at
    https://www.morphllm.com/api/models/json.
  contact:
    name: Morph
    url: https://morphllm.com
    email: info@morphllm.com
  license:
    name: Proprietary
    url: https://morphllm.com/privacy/tos
servers:
  - url: https://api.morphllm.com
    description: Production
security: []
tags:
  - name: chat
    description: >-
      OpenAI- and Anthropic-compatible chat inference, including Fast Apply and
      WarpGrep models.
  - name: compact
    description: Context compression for long agent conversations.
  - name: reflex
    description: 'Per-turn classifiers: realtime prediction and batches.'
  - name: fine-tuning
    description: Reflex fine-tuning job lifecycle.
  - name: models
    description: Model listing and management.
  - name: telemetry
    description: Usage reporting hooks.
paths:
  /v1/reflex/asynchronous_batches/{batch_id}:
    get:
      tags:
        - reflex
      summary: Poll an async batch
      description: >-
        Read a batch's status. `request_counts` advances as the worker drains
        the queue; `status` moves `queued → in_progress → completed`. Poll on an
        interval rather than holding a request open.
      operationId: getReflexBatch
      parameters:
        - schema:
            type: string
            description: Identifier returned by the async batch upload.
            example: rbatch-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
          required: true
          description: The batch to poll, as returned in `id` when you queued it.
          name: batch_id
          in: path
      responses:
        '200':
          description: Batch status.
          content:
            application/json:
              example:
                id: rbatch-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
                object: reflex.batch
                status: in_progress
                request_counts:
                  total: 2
                  completed: 1
                  failed: 0
                created_at: 1780000000
              schema:
                $ref: '#/components/schemas/ReflexBatch'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
        '429':
          $ref: '#/components/responses/RateLimited'
        '500':
          $ref: '#/components/responses/InternalError'
      security:
        - bearerAuth: []
components:
  schemas:
    ReflexBatch:
      type: object
      properties:
        id:
          type: string
          description: Identifier for the queued batch.
          example: rbatch-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
        object:
          type: string
          description: Object type, always `reflex.batch`.
          example: reflex.batch
        status:
          type: string
          enum:
            - queued
            - in_progress
            - completed
          description: Where the batch is in the queue.
          example: queued
        request_counts:
          type: object
          properties:
            total:
              type: integer
              description: Rows accepted into the batch.
              example: 2
            completed:
              type: integer
              description: Rows classified so far.
              example: 0
            failed:
              type: integer
              description: Rows that failed and will not be retried.
              example: 0
          required:
            - total
            - completed
            - failed
          description: Progress counters, advancing as the worker drains the queue.
          example:
            total: 2
            completed: 0
            failed: 0
        created_at:
          type: integer
          description: Unix timestamp (seconds).
          example: 1780000000
      required:
        - id
        - object
        - status
        - request_counts
        - created_at
      description: Async batch status. `status` moves `queued → in_progress → completed`.
      example:
        id: rbatch-a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d
        object: reflex.batch
        status: queued
        request_counts:
          total: 2
          completed: 0
          failed: 0
        created_at: 1780000000
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: invalid_request_error
              description: Machine-readable error code.
            message:
              type: string
              example: The request body is missing the `model` field.
              description: Human-readable explanation of the failure.
          required:
            - code
            - message
      required:
        - error
      description: Standard error envelope returned by every non-2xx response.
      example:
        error:
          code: invalid_request_error
          message: The request body is missing the `model` field.
  responses:
    BadRequest:
      description: Malformed request — missing or invalid fields.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: invalid_request_error
              message: The request body is missing the `model` field.
    Unauthorized:
      description: Missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: unauthorized
              message: Invalid API key provided.
    NotFound:
      description: The requested resource does not exist.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: not_found
              message: No fine-tuning job found with id ftjob-8f2k1.
    RateLimited:
      description: Rate limited — retry after the interval in the Retry-After header.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: rate_limited
              message: Too many requests. Retry in 12 seconds.
    InternalError:
      description: Internal error — safe to retry with backoff.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error:
              code: internal_error
              message: Something went wrong on our side.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: opaque
      description: >-
        Morph API key, passed as `Authorization: Bearer sk-...`. Create keys at
        https://www.morphllm.com/dashboard/api-keys.

````