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

# List source freshness

> Return the last successful sync timestamp for each active canonical data source.



## OpenAPI

````yaml https://api.qa.nlbs.ai/api/openapi.json get /health/sources
openapi: 3.1.0
info:
  description: >-
    NL Labs AI AML API. Use Bearer API keys for protected endpoints. The /live
    and /ready probes are public.
  title: NL Labs AI
  version: 0.1.0
servers:
  - url: https://api.qa.nlbs.ai/api
security:
  - ApiKeyAuth: []
tags:
  - description: Runtime health checks and source freshness endpoints.
    name: health
  - description: Canonical entity lookup endpoints used before starting analyses.
    name: entities
  - description: AML analysis creation, status, result, and debug endpoints.
    name: analyses
  - description: Regulatory report (Motor 2) creation, status, result, and debug endpoints.
    name: reports
  - description: Versioned deterministic rules catalog endpoints.
    name: rules
  - description: Versioned regulatory reference catalog endpoints.
    name: regulatory
  - description: Webhook endpoint configuration and delivery-event operations.
    name: webhooks
paths:
  /health/sources:
    get:
      tags:
        - health
      summary: List source freshness
      description: >-
        Return the last successful sync timestamp for each active canonical data
        source.
      operationId: list_source_freshness
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/SourceFreshnessResponse'
                title: Response List Source Freshness
                type: array
          description: Successful Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing, malformed, expired, or invalid Bearer API key.
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: The authenticated API key does not have the required scope.
      security:
        - HTTPBearer: []
components:
  schemas:
    SourceFreshnessResponse:
      examples:
        - code: receita_federal_cnpj
          last_synced_at: '2026-06-23T12:00:00Z'
          name: Receita Federal CNPJ
          source_type: public_dataset
      properties:
        code:
          description: Canonical source code.
          examples:
            - receita_federal_cnpj
          title: Code
          type: string
        last_synced_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: Last successful synchronization timestamp, when known.
          examples:
            - '2026-06-23T12:00:00Z'
          title: Last Synced At
        name:
          description: Human-readable source name.
          examples:
            - Receita Federal CNPJ
          title: Name
          type: string
        source_type:
          $ref: '#/components/schemas/SourceType'
          description: Canonical source category.
      required:
        - code
        - name
        - source_type
        - last_synced_at
      title: SourceFreshnessResponse
      type: object
    ErrorResponse:
      properties:
        detail:
          description: Stable public error message.
          examples:
            - Resource not found.
          title: Detail
          type: string
      required:
        - detail
      title: ErrorResponse
      type: object
    SourceType:
      enum:
        - public_dataset
        - public_api
        - public_file
        - public_portal
        - watchlist
        - official_publication
        - internal_dataset
        - synthetic_dataset
        - restricted_source
      title: SourceType
      type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````