> ## Documentation Index
> Fetch the complete documentation index at: https://docs.elementary-data.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List asset health scores

> Lists the current health score of every asset that has test results in the last 7 days — a full snapshot, recomputed hourly. Not an incremental feed: re-read the snapshot instead of tracking changes. Ordered by `asset_id`.



## OpenAPI

````yaml api-reference/beta/openapi.json get /public/beta/{env_id}/asset-health-scores
openapi: 3.1.0
info:
  description: >
    The Elementary Public API is a REST interface for programmatically reading

    Elementary's assets, columns, lineage, tests, and test results for one

    environment.


    **Authentication.** Send a bearer token (personal or account token) in the

    `Authorization` header. The token resolves to an account; results are scoped
    to

    the environments that token may view.


    **Environment scope.** Every resource lives under `/{env_id}`. Call

    `GET /environments` first to discover the ids you can access.


    **Pagination.** List endpoints are keyset-paginated: pass `limit` (default
    500,

    max 2000) and follow `next_cursor` until `has_more` is `false`. Cursors are
    opaque

    and bound to the filters that produced them — reusing a cursor with
    different

    filters returns `400`.


    **Incremental sync.** Every dataset supports a full scan (default). Assets,

    columns, and tests also expose two incremental feeds: `synced_since`
    (upserts)

    and `deleted_since` (soft-delete tombstones). A test's `synced_at` tracks
    its

    definition — new executions do not bump it.


    Latest test executions and per-test execution history are **not**
    incremental.

    Latest executions are a full snapshot replaced in place: re-read it.
    Execution

    history is append-only and scoped to one test, filtered by `start_time_from`
    /

    `start_time_to` (last 30 days by default).


    **Lookback limit.** Explicit lower bounds (`synced_since`, `deleted_since`,

    `start_time_from`) reach back at most 90 days; an older timestamp is treated
    as

    90 days ago rather than rejected. Omitting the filter still returns the full

    current snapshot.


    **Rate limiting.** Requests are rate-limited per account; responses carry

    `RateLimit-*` headers and `429` responses include `Retry-After`.


    _Beta: the shape may change while we co-design with early adopters._
  title: Elementary Public API
  version: beta
servers:
  - url: https://prod.api.elementary-data.com
security:
  - bearerAuth: []
tags:
  - description: Discover accessible environments.
    name: Environments
  - description: Lineage assets — tables, views, BI assets.
    name: Assets
  - description: Columns of assets.
    name: Columns
  - description: Asset-to-asset lineage edges.
    name: Asset lineage
  - description: Column-level lineage edges.
    name: Column lineage
  - description: Test definitions and their configuration.
    name: Tests
  - description: Most recent execution of every sub-test.
    name: Latest test executions
  - description: Execution history of a single test.
    name: Test executions
  - description: Current data health score per asset.
    name: Asset health scores
paths:
  /public/beta/{env_id}/asset-health-scores:
    get:
      tags:
        - Asset health scores
      summary: List asset health scores
      description: >-
        Lists the current health score of every asset that has test results in
        the last 7 days — a full snapshot, recomputed hourly. Not an incremental
        feed: re-read the snapshot instead of tracking changes. Ordered by
        `asset_id`.
      operationId: list_asset_health_scores_public_beta__env_id__asset_health_scores_get
      parameters:
        - description: Environment identifier that scopes the request.
          in: path
          name: env_id
          required: true
          schema:
            description: Environment identifier that scopes the request.
            title: Env Id
            type: string
        - description: >-
            Opaque cursor from a previous response's `next_cursor`. Reuse it
            only with the identical query parameters that produced it.
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Opaque cursor from a previous response's `next_cursor`. Reuse it
              only with the identical query parameters that produced it.
            title: Cursor
        - description: Maximum items to return per page (1-2000).
          in: query
          name: limit
          required: false
          schema:
            default: 500
            description: Maximum items to return per page (1-2000).
            maximum: 2000
            minimum: 1
            title: Limit
            type: integer
        - description: Return only the health scores of these asset ids.
          in: query
          name: asset_ids
          required: false
          schema:
            anyOf:
              - items:
                  type: string
                maxItems: 1000
                type: array
              - type: 'null'
            description: Return only the health scores of these asset ids.
            title: Asset Ids
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedResponse_AssetHealthScore_'
          description: Successful Response
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: Invalid cursor or request parameters.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: Authentication is required.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: The token does not have permission to access the resource.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: The requested resource was not found.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: Request validation failed.
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: Rate limit exceeded.
          headers:
            RateLimit-Limit:
              description: Maximum requests allowed in the current window.
              schema:
                type: integer
            RateLimit-Remaining:
              description: Requests remaining in the current window.
              schema:
                type: integer
            RateLimit-Reset:
              description: Seconds until the current rate-limit window resets.
              schema:
                type: integer
            Retry-After:
              description: Seconds to wait before retrying.
              schema:
                type: integer
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiErrorResponse'
          description: An unexpected server error occurred.
components:
  schemas:
    PaginatedResponse_AssetHealthScore_:
      properties:
        has_more:
          default: false
          description: >-
            The only signal to continue pagination; a short page may still have
            more items because permission filtering can trim rows.
          title: Has More
          type: boolean
        items:
          description: Objects returned in the current page.
          items:
            $ref: '#/components/schemas/AssetHealthScore'
          title: Items
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Opaque cursor for the next page, valid only with identical query
            parameters.
          title: Next Cursor
      required:
        - items
      title: PaginatedResponse[AssetHealthScore]
      type: object
    ApiErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ApiError'
          description: Structured details about the error.
      required:
        - error
      title: ApiErrorResponse
      type: object
    AssetHealthScore:
      properties:
        asset_id:
          description: ID of the asset (matches `Asset.id`).
          title: Asset Id
          type: string
        dimensions:
          description: >-
            Latest score per dimension. Dimensions with no results in the last 7
            days are omitted.
          items:
            $ref: '#/components/schemas/DimensionHealthScore'
          title: Dimensions
          type: array
        total:
          $ref: '#/components/schemas/HealthScoreBucket'
          description: >-
            Weighted score across all dimensions, using the environment's
            configured dimension weights. Computed per hourly bucket, where a
            dimension with no newer result keeps its last known score, so
            `total.bucket_at` can be later than some `dimensions[].bucket_at`.
            It is not the latest of the nested dimension scores.
      required:
        - asset_id
        - total
        - dimensions
      title: AssetHealthScore
      type: object
    ApiError:
      properties:
        code:
          description: Stable code identifying the type of error.
          title: Code
          type: string
        message:
          description: Human-readable explanation of the error.
          title: Message
          type: string
      required:
        - code
        - message
      title: ApiError
      type: object
    DimensionHealthScore:
      properties:
        bucket_at:
          description: Start of the hourly bucket this score was computed for.
          format: date-time
          title: Bucket At
          type: string
        dimension:
          description: >-
            Extensible enum. Data-quality dimension this score covers. New
            values may be added over time.
          examples:
            - completeness
            - uniqueness
            - freshness
            - validity
            - accuracy
            - consistency
          title: Dimension
          type: string
        score:
          description: Health score in the range 0-1 for the most recent hourly bucket.
          title: Score
          type: number
        test_count:
          description: Number of test results that contributed to this score.
          title: Test Count
          type: integer
      required:
        - score
        - test_count
        - bucket_at
        - dimension
      title: DimensionHealthScore
      type: object
    HealthScoreBucket:
      properties:
        bucket_at:
          description: Start of the hourly bucket this score was computed for.
          format: date-time
          title: Bucket At
          type: string
        score:
          description: Health score in the range 0-1 for the most recent hourly bucket.
          title: Score
          type: number
        test_count:
          description: Number of test results that contributed to this score.
          title: Test Count
          type: integer
      required:
        - score
        - test_count
        - bucket_at
      title: HealthScoreBucket
      type: object
  securitySchemes:
    bearerAuth:
      description: Personal or account token.
      scheme: bearer
      type: http

````