> ## Documentation Index
> Fetch the complete documentation index at: https://octo-98895abd.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Coverage

> How fresh is each dataset, which metrics each family files, and the whole read contract.

Example: `/v2/coverage`

Kinds:

- `freshness`: api.coverage(); the source's as_of is returned as data_through (in v2, as_of means point in time).
- `metrics`: api.metric_coverage(): a (family, metric) pair absent here is one the family never files, not late data.
- `catalog`: api.catalog(): metrics, constraints, limits, applicability, regime breaks, screens. Cache it.

`GET /v2/coverage?help` describes the main parameters, `?help=all` adds the hidden ones.



## OpenAPI

````yaml /api-docs/v2/openapi.json get /coverage
openapi: 3.1.0
info:
  title: SILO API v2
  version: v2
  description: >-
    The v2 gateway over SILO's schema `api`: 14 resources, five shared
    parameters, one envelope and one error object. Generated from
    supabase/functions/silo-api/registry.ts by scripts/gen_openapi_v2.py; do not
    edit by hand. The original v1 API stays available until it is retired.
servers:
  - url: https://zcjbtpxuhdekpwcxmepn.supabase.co/functions/v1/silo-api/v2
    description: The silo-api Edge Function.
security:
  - {}
  - bearerAuth: []
tags:
  - name: Discovery
  - name: Markets and macro
  - name: Companies and funds
  - name: Research
paths:
  /coverage:
    get:
      tags:
        - Discovery
      summary: Coverage
      description: >-
        How fresh is each dataset, which metrics each family files, and the
        whole read contract.


        Example: `/v2/coverage`


        Kinds:


        - `freshness`: api.coverage(); the source's as_of is returned as
        data_through (in v2, as_of means point in time).

        - `metrics`: api.metric_coverage(): a (family, metric) pair absent here
        is one the family never files, not late data.

        - `catalog`: api.catalog(): metrics, constraints, limits, applicability,
        regime breaks, screens. Cache it.


        `GET /v2/coverage?help` describes the main parameters, `?help=all` adds
        the hidden ones.
      operationId: v2_coverage
      parameters:
        - name: kind
          in: query
          required: false
          description: >-
            freshness: per dataset, data_through (newest elapsed period),
            complete_through, landed_at, landed_git_sha. metrics: filed span per
            (family, metric). catalog: the read contract as one JSON object.
            Default: freshness.
          schema:
            type: string
            enum:
              - freshness
              - metrics
              - catalog
            default: freshness
        - name: dataset
          in: query
          required: false
          description: >-
            Comma-separated. kind=freshness: dataset names, e.g. quotes,
            financials, company_events, funds_fidc, fund_nav, macro_series; the
            full list is the dataset column of kind=freshness called with
            dataset left at all. kind=metrics: fund families, e.g. fi, fidc,
            fii; the full list is the entity_type column of kind=metrics with
            dataset left at all. A name no row carries is refused as
            bad_request, the closest names first and then every known name.
            Comma-separated list. Default: all.
          schema:
            type: string
            default: all
        - name: limit
          in: query
          required: false
          description: >-
            The page size. More rows than one page come through next_page_url,
            never cut silently; a call stops at the tier's rows-per-call cap
            with meta.tier_cap_reached. Default: the tier's page maximum (10
            anonymous, 100 signed in); a larger value is coerced to it.
          schema:
            type: integer
            minimum: 1
        - name: cursor
          in: query
          required: false
          description: >-
            The opaque cursor from a previous next_page_url. It carries every
            other parameter: send it alone (another parameter with a different
            value is bad_request). Default: none: the first page.
          schema:
            type: string
      responses:
        '200':
          description: The v2 envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
        default:
          description: >-
            The v2 error object. A SILO refusal (over_limit) keeps its message,
            hint and details verbatim.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Envelope:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: array
          items: {}
          description: Always a list. Rows as the endpoint returned them; null stays null.
        meta:
          type: object
          required:
            - resource
            - kind
            - request
            - id_known
          properties:
            resource:
              type: string
            kind:
              type:
                - string
                - 'null'
            request:
              type: object
              description: Every parameter the resource takes, with the default applied.
            id_known:
              type:
                - boolean
                - 'null'
              description: Whether SILO holds the id; null when the call names none.
            endpoint:
              type: string
              description: The data endpoint that answered.
            source:
              type: string
              description: >-
                The canonical request to cite: /v2/<resource>? with every
                applied parameter, defaults included, so it replays the same
                rows. POST says so; its lists are in meta.body.
            data_through:
              type:
                - string
                - 'null'
              format: date
              description: >-
                The newest elapsed period SILO holds for the dataset this
                endpoint reads (the coverage resource's data_through for
                coverage_dataset). Null when no coverage row applies or the
                coverage read failed; never a guess.
            coverage_dataset:
              type:
                - string
                - 'null'
              description: >-
                The coverage dataset data_through comes from; null when none
                applies.
            data_through_error:
              type: string
              description: >-
                Present only when the coverage read failed: why data_through is
                null. The rows are unaffected.
            tier:
              type: string
              enum:
                - anonymous
                - signed_in
                - pro
            tier_cap_reached:
              type: boolean
              description: True when the result is partial because of the tier cap.
          additionalProperties: true
        next_page_url:
          type: string
          description: Present only when more rows remain. It carries one opaque cursor.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - reason
            - message
            - target
            - innererror
          properties:
            code:
              type: string
              enum:
                - bad_request
                - unknown_parameter
                - unknown_id
                - unauthorized
                - payment_required
                - forbidden_for_tier
                - over_limit
                - rate_limited
                - timeout
                - unavailable
                - internal
            reason:
              type:
                - string
                - 'null'
              enum:
                - row_cap
                - tier_cap
                - null
              description: >-
                over_limit only: row_cap (over one 1,000-row page: narrow or
                page) or tier_cap (over the tier ceiling: narrow or sign in).
                Null otherwise.
            message:
              type: string
            target:
              type:
                - string
                - 'null'
            innererror:
              type: object
              properties:
                sqlstate:
                  type:
                    - string
                    - 'null'
                hint:
                  type:
                    - string
                    - 'null'
                details:
                  type:
                    - string
                    - 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: SILO user access token for authenticated data requests.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.