> ## 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 Score History

> Retrieve Table sheet score history.

Retrieve score-history points across Table sheet versions.

Use `range` to limit the history window (`all`, `last_25`, `last_50`, `last_100`, or `last_250`), `resolution` to control sampling (`auto`, `raw`, or `min_max_bucket`), and `max_points` to cap the number of returned points. `max_points` defaults to 1200 and must be between 50 and 5000.


## OpenAPI

````yaml GET /api/public/v2/tables/{table_id}/sheets/{sheet_id}/versions/score-history
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security:
  - ApiKeyAuth: []
paths:
  /api/public/v2/tables/{table_id}/sheets/{sheet_id}/versions/score-history:
    get:
      tags:
        - tables
      summary: Get Table Sheet Score History
      description: >-
        Retrieve score-history points across Table sheet versions. 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: getTableSheetVersionScoreHistory
      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: max_points
          in: query
          required: false
          schema:
            type: integer
            minimum: 50
            maximum: 5000
            default: 1200
          description: Maximum points to return.
        - name: range
          in: query
          required: false
          schema:
            type: string
            enum:
              - all
              - last_25
              - last_50
              - last_100
              - last_250
            default: all
          description: History range.
        - name: resolution
          in: query
          required: false
          schema:
            type: string
            enum:
              - auto
              - raw
              - min_max_bucket
            default: auto
          description: Point resolution.
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TableSheetScoreHistoryResponse'
        '400':
          description: Invalid query parameter or workspace context.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Table or sheet not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    TableSheetScoreHistoryResponse:
      type: object
      title: TableSheetScoreHistoryResponse
      required:
        - success
        - score_history
      properties:
        success:
          type: boolean
        score_history:
          type: object
          required:
            - points
            - total_points
            - returned_points
            - resolution
            - range
            - max_points
            - is_sampled
          properties:
            points:
              type: array
              items:
                additionalProperties: true
                type: object
            total_points:
              type: integer
            returned_points:
              type: integer
            resolution:
              type: string
              enum:
                - auto
                - raw
                - min_max_bucket
            range:
              type: string
            max_points:
              type: integer
            is_sampled:
              type: boolean
    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.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-KEY

````