> ## 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 Scorecard Calculation

> Get details for a single scorecard calculation.

Get details for one scorecard calculation.

Use this endpoint to poll run status and retrieve aggregate verdict, criterion summaries, drift summary, and errors.


## OpenAPI

````yaml GET /api/public/v2/tables/{table_id}/sheets/{sheet_id}/scorecard/calculations/{calculation_id}
openapi: 3.1.0
info:
  title: PromptLayer API
  description: >-
    REST API for PromptLayer: prompt template management, request logging,
    observability, evaluations, and workflows.
  version: 1.0.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /api/public/v2/tables/{table_id}/sheets/{sheet_id}/scorecard/calculations/{calculation_id}:
    get:
      tags:
        - tables
      summary: Get Table Sheet Scorecard Calculation
      description: Get details for a single scorecard calculation.
      operationId: getTableSheetScorecardCalculation
      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: calculation_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: Scorecard calculation ID.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetTableSheetScorecardCalculationResponse'
        '400':
          description: Invalid workspace context.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Calculation not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    GetTableSheetScorecardCalculationResponse:
      type: object
      required:
        - success
        - calculation
        - criterion_summaries
        - drift_summary
      properties:
        success:
          type: boolean
        calculation:
          $ref: '#/components/schemas/TableSheetScorecardCalculation'
        criterion_summaries:
          type: object
          nullable: true
          additionalProperties: true
        drift_summary:
          type: object
          nullable: true
          additionalProperties: true
      additionalProperties: 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.
    TableSheetScorecardCalculation:
      type: object
      required:
        - id
        - scorecard_id
        - workspace_id
        - sheet_id
        - sheet_revision
        - status
        - criterion_summaries
      properties:
        id:
          type: string
          format: uuid
        scorecard_id:
          type: string
          format: uuid
        workspace_id:
          type: integer
        sheet_id:
          type: string
          format: uuid
        sheet_revision:
          type: string
        status:
          type: string
          enum:
            - queued
            - running
            - completed
            - failed
            - cancelled
        aggregate_score:
          type: number
          nullable: true
        aggregate_verdict:
          type: string
          nullable: true
          enum:
            - pass
            - warn
            - fail
            - error
            - skipped
            - null
        criterion_summaries:
          additionalProperties: true
          type: object
        drift_summary:
          type: object
          nullable: true
          additionalProperties: true
        config_hash:
          type: string
          nullable: true
        started_at:
          type: string
          format: date-time
          nullable: true
        completed_at:
          type: string
          format: date-time
          nullable: true
        error_summary:
          type: string
          nullable: true
      additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````