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

> Poll a Table sheet operation.

Poll a Table sheet recalculation operation.

The response includes aggregate cell counts by status plus completed, failed, and pending counts.


## OpenAPI

````yaml GET /api/public/v2/tables/{table_id}/sheets/{sheet_id}/operations/{operation_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}/operations/{operation_id}:
    get:
      tags:
        - tables
      summary: Get Table Sheet Operation
      description: >-
        Poll a Table sheet recalculation operation by operation ID. 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: getTableSheetOperationStatus
      parameters:
        - name: X-API-KEY
          in: header
          required: true
          schema:
            type: string
          description: >-
            Your PromptLayer API key. The key's workspace scopes table resources
            for this request.
        - name: table_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Table ID.
        - name: sheet_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Table sheet ID.
        - name: operation_id
          in: path
          required: true
          schema:
            type: string
          description: Operation ID.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTableSheetOperationResponse'
        '400':
          description: Invalid workspace context.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Table, sheet, or operation not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    GetTableSheetOperationResponse:
      type: object
      title: GetTableSheetOperationResponse
      required:
        - success
        - operation
      properties:
        success:
          type: boolean
        operation:
          $ref: '#/components/schemas/TableSheetOperation'
      additionalProperties: false
    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.
    TableSheetOperation:
      type: object
      title: TableSheetOperation
      required:
        - operation_id
        - operation
        - status
        - status_counts
        - cell_count
        - completed_count
        - failed_count
        - pending_count
        - status_url
      properties:
        operation_id:
          type: string
        operation:
          type: string
          enum:
            - recalculate
        status:
          type: string
        status_counts:
          type: object
          additionalProperties:
            type: integer
        cell_count:
          type: integer
        completed_count:
          type: integer
        failed_count:
          type: integer
        pending_count:
          type: integer
        status_url:
          type: string
      additionalProperties: false
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````