> ## 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 Sheet

> Get Sheet. 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 sheet by ID, including its current row count.

The `version_count` field is the current sheet version number.


## OpenAPI

````yaml GET /api/public/v2/tables/{table_id}/sheets/{sheet_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}:
    get:
      tags:
        - smart-tables
      summary: Get Sheet
      description: >-
        Get Sheet. 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
      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
      responses:
        '200':
          description: Sheet detail
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  sheet:
                    $ref: '#/components/schemas/Sheet'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          description: Table or sheet not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    Sheet:
      type: object
      description: A sheet within a Table.
      properties:
        id:
          type: string
          format: uuid
        table_id:
          type: string
          format: uuid
        workspace_id:
          type: integer
          description: >-
            Workspace that owns this resource; determined by the authenticated
            request scope.
        title:
          type: string
        index:
          type: integer
          description: Display order of the sheet within the table (0-based).
        row_count:
          type: integer
        version_count:
          type: integer
          description: >-
            Current sheet version number. It increments when sheet data, layout,
            score configuration, imports, or execution output changes.
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    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.
  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

````