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

# Get a cell batch by id

> Get one batch, with its ``instance_count``.

Parameters
----------
batch_id : str
    Batch to retrieve.

Returns
-------
CellBatch
    The batch.



## OpenAPI

````yaml https://api.ionworks.com/openapi.json get /cell_batches/{batch_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers:
  - url: https://api.ionworks.com
    description: Production
security: []
paths:
  /cell_batches/{batch_id}:
    get:
      tags:
        - Cell Batches
      summary: Get a cell batch by id
      description: |-
        Get one batch, with its ``instance_count``.

        Parameters
        ----------
        batch_id : str
            Batch to retrieve.

        Returns
        -------
        CellBatch
            The batch.
      operationId: get_cell_batch_cell_batches__batch_id__get
      parameters:
        - name: batch_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Batch Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CellBatch'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CellBatch:
      properties:
        id:
          type: string
          title: Id
          description: Unique identifier for the batch
        organization_id:
          type: string
          title: Organization Id
          description: ID of the organization that owns this batch
        project_id:
          type: string
          title: Project Id
          description: ID of the project that owns this batch
        cell_specification_id:
          type: string
          title: Cell Specification Id
          description: Cell specification this batch is a production run of
        name:
          type: string
          title: Name
          description: Lot name or number, unique (case-insensitively) per specification
        notes:
          anyOf:
            - type: string
            - type: 'null'
          title: Notes
          description: Free-text notes about the batch
        date_manufactured:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Date Manufactured
          description: Manufacture date of the batch
        properties:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Properties
          description: >-
            Free-form lot metadata (datasheet lot number, QC results). Numeric
            values use the Quantity format.
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
          description: User ID of the user who created this batch
        created_at:
          type: string
          format: date-time
          title: Created At
          description: When the batch was created
        updated_at:
          type: string
          format: date-time
          title: Updated At
          description: When the batch was last updated
        instance_count:
          type: integer
          title: Instance Count
          description: Number of cell instances filed under this batch
          default: 0
      type: object
      required:
        - id
        - organization_id
        - project_id
        - cell_specification_id
        - name
        - created_at
        - updated_at
      title: CellBatch
      description: A manufacturing lot of one cell specification, as returned by the API.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

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