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

# Source coverage

> Events per source and per day, and the sources that stopped sending.



## OpenAPI

````yaml openapi/en/cell.json GET /v1/sources/coverage
openapi: 3.1.0
info:
  title: Niadra data API
  version: '1'
  description: >-
    Writing, context, history, objects, identity, privacy and governance of one
    space. Every space has a stable address, with the space and the region in
    its name.
servers:
  - url: https://{space}.{region}.api.niadra.com
    variables:
      space:
        default: acme-prod
        description: The space, which comes in the source key.
      region:
        default: us-east-1
        description: The region of the space, which also comes in the key.
security: []
paths:
  /v1/sources/coverage:
    get:
      tags:
        - sources
      summary: Source coverage
      description: >-
        Shows, per source and per day, how many events the SDK says it sent, how
        many arrived, how many were rejected and how many had an unmapped type.
        A source whose last event is old is silent: the context marks it in
        `coverage`, and the `source.silent` trigger can notify you.


        **Authentication.** Console person token with the `integration`,
        `analysis` role (or admin), or a source key with the `admin` scope.
      operationId: coverage_v1_sources_coverage_get
      parameters:
        - in: query
          name: days
          required: false
          schema:
            default: 7
            maximum: 90
            minimum: 1
            title: Days
            type: integer
          description: How many days to cover, from 1 to 90.
          example: 7
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CoverageOut'
              example:
                since: '2026-09-16T00:00:00Z'
                items:
                  - source_id: 0192f79e-11ab-7c31-8e4f-7d2e3f506b71
                    name: Billing agent
                    channel: erp
                    sent: 1210
                    received: 1210
                    rejected: 3
                    unmapped: 0
                    last_event_at: '2026-09-22T17:06:21Z'
                    days:
                      - day: '2026-09-22'
                        sent: 188
                        received: 188
                        rejected: 0
                        unmapped: 0
                        last_event_at: '2026-09-22T17:06:21Z'
          description: Coverage per source, with one row per day.
        '422':
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
          description: The request does not match the contract.
      security:
        - sourceKey: []
        - personToken: []
components:
  schemas:
    CoverageOut:
      additionalProperties: false
      properties:
        items:
          items:
            $ref: '#/components/schemas/niadra__contracts__ingest__SourceCoverage'
          title: Items
          type: array
        since:
          format: date-time
          title: Since
          type: string
      required:
        - since
        - items
      title: CoverageOut
      type: object
    Problem:
      additionalProperties: false
      description: RFC 9457 problem details; `code` comes from the versioned error catalog.
      properties:
        code:
          title: Code
          type: string
        detail:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Detail
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Request Id
        status:
          title: Status
          type: integer
        title:
          title: Title
          type: string
        type:
          default: about:blank
          title: Type
          type: string
      required:
        - title
        - status
        - code
      title: Problem
      type: object
    niadra__contracts__ingest__SourceCoverage:
      additionalProperties: false
      description: >-
        Totals over the window plus one row per UTC day with traffic; a
        configured source that sent

        nothing is listed with zeros, since a mute source is what coverage
        exists to show.
      properties:
        channel:
          anyOf:
            - type: string
            - type: 'null'
          title: Channel
        days:
          items:
            $ref: '#/components/schemas/CoverageDay'
          title: Days
          type: array
        last_event_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Event At
        name:
          anyOf:
            - type: string
            - type: 'null'
          description: None for a source no longer in the configuration.
          title: Name
        received:
          title: Received
          type: integer
        rejected:
          title: Rejected
          type: integer
        sent:
          title: Sent
          type: integer
        source_id:
          format: uuid
          title: Source Id
          type: string
        unmapped:
          title: Unmapped
          type: integer
      required:
        - source_id
        - name
        - sent
        - received
        - rejected
        - unmapped
        - days
      title: SourceCoverage
      type: object
    CoverageDay:
      additionalProperties: false
      properties:
        day:
          format: date
          title: Day
          type: string
        last_event_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          title: Last Event At
        received:
          title: Received
          type: integer
        rejected:
          title: Rejected
          type: integer
        sent:
          description: What the SDK's heartbeats say it sent; 0 for sources without an SDK.
          title: Sent
          type: integer
        unmapped:
          title: Unmapped
          type: integer
      required:
        - day
        - sent
        - received
        - rejected
        - unmapped
      title: CoverageDay
      type: object
  securitySchemes:
    sourceKey:
      type: http
      scheme: bearer
      description: nia_sk_...
    personToken:
      type: http
      scheme: bearer
      bearerFormat: JWT

````