> ## 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 Import Operation

> Poll the status of an asynchronous sheet import operation. Requests are scoped to the workspace associated with the API key; table, sheet, column, cell, operation, and version IDs must belong to that workspace.

Poll the status of an asynchronous sheet import operation. The `operation_id` is returned when a sheet is created via the [Create Sheet](/reference/table-sheets-create) endpoint.


## OpenAPI

````yaml GET /api/public/v2/tables/{table_id}/sheets/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/operations/{operation_id}:
    get:
      tags:
        - smart-tables
      summary: Get Sheet Import Operation
      description: >-
        Poll the status of an asynchronous sheet import operation. 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_operation
      parameters:
        - name: table_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
        - name: operation_id
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Operation status
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  operation:
                    $ref: '#/components/schemas/TableImportOperation'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          description: Operation not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TableImportOperation:
      type: object
      description: Status of an asynchronous sheet import operation.
      properties:
        operation_id:
          type: string
        source:
          type: string
          enum:
            - file
            - request_logs
        status:
          type: string
          enum:
            - pending
            - running
            - completed
            - failed
        progress:
          type: number
          nullable: true
        message:
          type: string
          nullable: true
        rows_added:
          type: integer
          nullable: true
        row_count:
          type: integer
          nullable: true
        file_name:
          type: string
          nullable: true
        error_message:
          type: string
          nullable: true
        created_at:
          type: string
          format: date-time
          nullable: true
        updated_at:
          type: string
          format: date-time
          nullable: true
    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

````