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

# Batch Get Checkpoints Endpoint

> Get up to 100 checkpoints across sandboxes, with per-ID lookup errors.

Missing and inaccessible checkpoints both return NOT_FOUND. Checkpoint
failures are returned as records with state FAILED, not lookup errors.
Every checkpoint carries its merge status with the same derivation
as the single GET: the SDK polls this route after DURABLE and must see
``pending`` while a volume publish's merge is still in flight.



## OpenAPI

````yaml https://api.primeintellect.ai/api/v1/sandbox/openapi.json post /api/v1/sandbox/checkpoints:batchGet
openapi: 3.1.0
info:
  title: PI API
  version: 0.1.0
servers:
  - url: https://api.primeintellect.ai
security: []
paths:
  /api/v1/sandbox/checkpoints:batchGet:
    post:
      tags:
        - Sandbox Checkpoints
      summary: Batch Get Checkpoints Endpoint
      description: |-
        Get up to 100 checkpoints across sandboxes, with per-ID lookup errors.

        Missing and inaccessible checkpoints both return NOT_FOUND. Checkpoint
        failures are returned as records with state FAILED, not lookup errors.
        Every checkpoint carries its merge status with the same derivation
        as the single GET: the SDK polls this route after DURABLE and must see
        ``pending`` while a volume publish's merge is still in flight.
      operationId: batch_get_checkpoints_endpoint_api_v1_sandbox_checkpoints_batchGet_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchCheckpointRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchCheckpointResponse'
        '401':
          description: Authorization failed
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    BatchCheckpointRequest:
      properties:
        checkpoint_ids:
          items:
            type: string
            maxLength: 64
            minLength: 1
          type: array
          maxItems: 100
          minItems: 1
          title: Checkpoint Ids
      type: object
      required:
        - checkpoint_ids
      title: BatchCheckpointRequest
    BatchCheckpointResponse:
      properties:
        checkpoints:
          items:
            $ref: '#/components/schemas/CheckpointResponse'
          type: array
          title: Checkpoints
        errors:
          items:
            $ref: '#/components/schemas/CheckpointLookupError'
          type: array
          title: Errors
      type: object
      required:
        - checkpoints
        - errors
      title: BatchCheckpointResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CheckpointResponse:
      properties:
        id:
          type: string
          title: Id
        sandbox_id:
          type: string
          title: Sandbox Id
        parent_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Parent Id
        team_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Team Id
        state:
          type: string
          title: State
        depth:
          type: integer
          title: Depth
        docker_image:
          type: string
          title: Docker Image
        disk_size_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Disk Size Bytes
        stored_bytes:
          anyOf:
            - type: integer
            - type: 'null'
          title: Stored Bytes
        occupied_bytes:
          type: integer
          title: Occupied Bytes
          default: 0
        error:
          anyOf:
            - type: string
            - type: 'null'
          title: Error
        merge:
          anyOf:
            - type: string
              enum:
                - merged
                - pending
                - failed
            - type: 'null'
          title: Merge
        merge_error:
          anyOf:
            - type: string
            - type: 'null'
          title: Merge Error
        expires_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Expires At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
      type: object
      required:
        - id
        - sandbox_id
        - state
        - depth
        - docker_image
        - created_at
        - updated_at
      title: CheckpointResponse
      description: A filesystem checkpoint. Only DURABLE checkpoints can be restored.
    CheckpointLookupError:
      properties:
        checkpoint_id:
          type: string
          title: Checkpoint Id
        code:
          type: string
          enum:
            - NOT_FOUND
          const: NOT_FOUND
          title: Code
          default: NOT_FOUND
        message:
          type: string
          title: Message
          default: Checkpoint not found
      type: object
      required:
        - checkpoint_id
      title: CheckpointLookupError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````