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

# Get Cell

> Retrieve a single cell by ID. For prompt-template column cells, the response includes a `request_metrics` object with price, latency, and token usage when available. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.

Retrieve a single cell by ID, including its current status, display value, and structured value.

Cell statuses: `completed`, `stale`, `running`, `queued`, `error`, `cancelled`.


## OpenAPI

````yaml GET /api/public/v2/tables/{table_id}/sheets/{sheet_id}/cells/{cell_id}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /api/public/v2/tables/{table_id}/sheets/{sheet_id}/cells/{cell_id}:
    get:
      tags:
        - smart-tables
      summary: Get Cell
      description: >-
        Retrieve a single cell by ID. For prompt-template column cells, the
        response includes a `request_metrics` object with price, latency, and
        token usage when available. Requests are scoped to the workspace
        associated with the API key; table, sheet, column, cell, operation, and
        version IDs must belong to that workspace.
      operationId: get_table_sheet_cell
      parameters:
        - name: table_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: sheet_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: cell_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Cell detail
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  cell:
                    $ref: '#/components/schemas/Cell'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          description: Cell not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    Cell:
      type: object
      description: A single cell at the intersection of a column and a row.
      properties:
        id:
          type: string
          format: uuid
        sheet_id:
          type: string
          format: uuid
        column_id:
          type: string
          format: uuid
        row_index:
          type: integer
        status:
          type: string
          enum:
            - completed
            - stale
            - running
            - queued
            - error
            - cancelled
          description: Current computation status of the cell.
        display_value:
          type: string
          nullable: true
        value:
          description: Structured cell value (type depends on column type).
        error:
          type: string
          nullable: true
        input_hash:
          type: string
          nullable: true
          description: >-
            Hash of the inputs used to compute this cell, used for cache
            invalidation.
        updated_at:
          type: string
          format: date-time
          description: ISO 8601 timestamp of the last update.
        request_metrics:
          allOf:
            - $ref: '#/components/schemas/SmartTableRequestMetrics'
          nullable: true
          description: >-
            Execution metrics populated for prompt-template column cells.
            Present only when the cell has an associated request log.
        execution_id:
          type: string
          format: uuid
          nullable: true
          description: >-
            Execution ID associated with the current or most recent computed
            value, when available.
        last_computed_version:
          type: integer
          nullable: true
          description: >-
            Sheet version_count when this cell was last computed. Null for text
            cells, virtual cells, or cells that have not completed computation.
        error_message:
          type: string
          nullable: true
          description: >-
            User-visible error message for failed computed cells, when
            available.
    ErrorResponse:
      type: object
      properties:
        success:
          type: boolean
          default: false
          description: Indicates that the request failed.
        message:
          type: string
          description: Human-readable error message.
        error:
          type: string
          description: Machine-readable or fallback error message.
      additionalProperties: true
      description: >-
        Standard error response. Some legacy endpoints may return either message
        or error.
    SmartTableRequestMetrics:
      type: object
      description: >-
        Execution metrics for a prompt-template cell, derived from the
        underlying request log.
      properties:
        request_count:
          type: integer
          description: Number of LLM requests made to produce this cell's value.
        request_ids:
          type: array
          items:
            type: integer
          description: IDs of the request logs associated with this cell.
        latency_ms:
          type: integer
          nullable: true
          description: Total end-to-end latency in milliseconds.
        price:
          type: number
          nullable: true
          description: Total cost in USD for all requests that produced this cell.
        input_tokens:
          type: integer
          nullable: true
          description: Total number of input tokens across all requests.
        output_tokens:
          type: integer
          nullable: true
          description: Total number of output tokens across all requests.
        trace_ids:
          type: array
          items:
            type: string
          description: >-
            Trace IDs linked to this cell (present when the cell was produced
            via an OpenTelemetry-traced workflow).
  responses:
    UnauthorizedError:
      description: Unauthorized - missing or invalid API key.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````