VATFind Monitoring API

Scheduled company-record rechecks, material change events, and signed webhook delivery. Monitoring does not imply live tax-authority status.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 8

POST /monitors Create a company-record monitor #
GET /monitors List company-record monitors #
GET /monitors/{monitor_id} Get a company-record monitor #
PATCH /monitors/{monitor_id} Update a company-record monitor #
DELETE /monitors/{monitor_id} Archive a company-record monitor #
POST /monitors/{monitor_id}/run Run a company-record monitor now #
GET /monitoring-events List company-monitoring events #
GET /monitoring-events/{event_id} Get a company-monitoring event #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/vatfind-com:vatfind-com-monitoring-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

vatfind-com-monitoring-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VATFind Monitoring API
  version: 1.1.0
  description: Check business tax identifiers, resolve company records, schedule company-record monitoring, retrieve change events, and read usage. VATFind keeps format, registry match, tax-authority status, and company legal status separate. The current monitor contract does not monitor authority-reported VAT-registration status.
  contact:
    name: VATFind
    url: https://vatfind.com/contact
  license:
    name: VATFind API Terms
    url: https://vatfind.com/terms
servers:
- url: https://vatfind.com/v1
  description: Environment is selected by the vf_test_ or vf_live_ key prefix
security:
- VatFindApiKey: []
tags:
- name: Monitoring
  description: Scheduled company-record rechecks, material change events, and signed webhook delivery. Monitoring does not imply live tax-authority status.
paths:
  /monitors:
    post:
      operationId: createMonitor
      tags:
      - Monitoring
      summary: Create a company-record monitor
      description: Creates a company-record monitor and runs its first usable baseline. It does not monitor authority-reported VAT-registration status. Idempotency-Key is required. A successful live baseline uses one check. A retry with the same key and body returns the exact completed response, including any webhook signing secret.
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonitorCreateRequest'
      responses:
        '201':
          description: Active monitor and completed baseline
          headers:
            Idempotency-Replayed:
              schema:
                type: boolean
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorCreateResponse'
        '400':
          $ref: '#/components/responses/Problem'
        '401':
          $ref: '#/components/responses/Problem'
        '402':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '413':
          $ref: '#/components/responses/Problem'
        '415':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
        '500':
          $ref: '#/components/responses/Problem'
        '503':
          $ref: '#/components/responses/Problem'
    get:
      operationId: listMonitors
      tags:
      - Monitoring
      summary: List company-record monitors
      parameters:
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: Monitors most recently updated first
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorList'
        '400':
          $ref: '#/components/responses/Problem'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
        '500':
          $ref: '#/components/responses/Problem'
  /monitors/{monitor_id}:
    parameters:
    - name: monitor_id
      in: path
      required: true
      schema:
        type: string
        pattern: ^mon_[A-Za-z0-9_-]{16,80}$
    get:
      operationId: getMonitor
      tags:
      - Monitoring
      summary: Get a company-record monitor
      responses:
        '200':
          description: Monitor
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Monitor'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
        '500':
          $ref: '#/components/responses/Problem'
    patch:
      operationId: updateMonitor
      tags:
      - Monitoring
      summary: Update a company-record monitor
      description: Supplying a non-null webhook_url returns the current signing secret. A retry with the same idempotency key and body returns the exact completed response, including that signing secret.
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonitorUpdateRequest'
      responses:
        '200':
          description: Updated monitor and webhook signing secret when a non-null webhook_url was explicitly supplied
          headers:
            Idempotency-Replayed:
              schema:
                type: boolean
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorUpdateResponse'
        '400':
          $ref: '#/components/responses/Problem'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '413':
          $ref: '#/components/responses/Problem'
        '415':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
        '500':
          $ref: '#/components/responses/Problem'
        '503':
          $ref: '#/components/responses/Problem'
    delete:
      operationId: archiveMonitor
      tags:
      - Monitoring
      summary: Archive a company-record monitor
      description: Stops future checks and releases the monitor slot while retaining event evidence. A retry with the same idempotency key returns the exact completed archive response.
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
      responses:
        '200':
          description: Archived
          headers:
            Idempotency-Replayed:
              schema:
                type: boolean
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                - archived
                properties:
                  archived:
                    const: true
        '400':
          $ref: '#/components/responses/Problem'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
        '500':
          $ref: '#/components/responses/Problem'
        '503':
          $ref: '#/components/responses/Problem'
  /monitors/{monitor_id}/run:
    post:
      operationId: runMonitor
      tags:
      - Monitoring
      summary: Run a company-record monitor now
      description: Runs a billable manual company-record recheck. Idempotency-Key is required and the JSON body must be empty.
      parameters:
      - name: monitor_id
        in: path
        required: true
        schema:
          type: string
          pattern: ^mon_[A-Za-z0-9_-]{16,80}$
      - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
      responses:
        '200':
          description: Completed monitoring refresh
          headers:
            Idempotency-Replayed:
              schema:
                type: boolean
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorRunResponse'
        '400':
          $ref: '#/components/responses/Problem'
        '401':
          $ref: '#/components/responses/Problem'
        '402':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '409':
          $ref: '#/components/responses/Problem'
        '413':
          $ref: '#/components/responses/Problem'
        '415':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
        '500':
          $ref: '#/components/responses/Problem'
        '503':
          $ref: '#/components/responses/Problem'
  /monitoring-events:
    get:
      operationId: listMonitoringEvents
      tags:
      - Monitoring
      summary: List company-monitoring events
      parameters:
      - name: monitor_id
        in: query
        required: false
        schema:
          type: string
          pattern: ^mon_[A-Za-z0-9_-]{16,80}$
      - $ref: '#/components/parameters/Limit'
      - $ref: '#/components/parameters/Cursor'
      responses:
        '200':
          description: Material changes and operational events
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorEventList'
        '400':
          $ref: '#/components/responses/Problem'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '422':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
        '500':
          $ref: '#/components/responses/Problem'
  /monitoring-events/{event_id}:
    get:
      operationId: getMonitoringEvent
      tags:
      - Monitoring
      summary: Get a company-monitoring event
      parameters:
      - name: event_id
        in: path
        required: true
        schema:
          type: string
          pattern: ^evt_[A-Za-z0-9_-]{16,80}$
      responses:
        '200':
          description: Monitoring event
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MonitorEvent'
        '401':
          $ref: '#/components/responses/Problem'
        '403':
          $ref: '#/components/responses/Problem'
        '404':
          $ref: '#/components/responses/Problem'
        '429':
          $ref: '#/components/responses/Problem'
        '500':
          $ref: '#/components/responses/Problem'
webhooks:
  monitorEvent:
    post:
      operationId: receiveMonitorEvent
      summary: Receive a signed company-monitoring event
      description: VATFind sends events at least once. Verify HMAC-SHA256 over ., then deduplicate with VATFind-Event-Id. Redirects are not followed.
      security: []
      parameters:
      - name: VATFind-Event-Id
        in: header
        required: true
        schema:
          type: string
          pattern: ^evt_[A-Za-z0-9_-]{16,80}$
      - name: VATFind-Timestamp
        in: header
        required: true
        schema:
          type: string
          pattern: ^[0-9]{10,}$
      - name: VATFind-Signature
        in: header
        required: true
        schema:
          type: string
          pattern: ^v1=[a-f0-9]{64}$
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MonitorWebhookEnvelope'
      responses:
        2XX:
          description: Event accepted. Other responses are retried up to the documented delivery limit.
      tags:
      - Monitoring
components:
  schemas:
    MonitorWatchedField:
      type: string
      enum:
      - registry_match_status
      - company_legal_status
      - legal_name
      - registration_number
      - vat_numbers
      - registered_address
    Monitor:
      type: object
      additionalProperties: false
      required:
      - id
      - object
      - environment
      - status
      - health
      - identifier
      - cadence
      - watched_fields
      - baseline_check_id
      - latest_check_id
      - latest_snapshot
      - last_checked_at
      - next_check_at
      - failure_count
      - estimated_monthly_checks
      - created_at
      - updated_at
      properties:
        id:
          type: string
          pattern: ^mon_[A-Za-z0-9_-]{16,80}$
        object:
          const: vat_monitor
        environment:
          type: string
          enum:
          - live
          - sandbox
        status:
          type: string
          enum:
          - active
          - paused
          - attention
        health:
          type: string
          enum:
          - healthy
          - source_degraded
          - needs_credits
        identifier:
          $ref: '#/components/schemas/Identifier'
        company_name:
          type: string
        client_reference:
          type: string
        metadata:
          type: object
          additionalProperties:
            type: string
        cadence:
          $ref: '#/components/schemas/MonitorCadence'
        watched_fields:
          type: array
          minItems: 1
          uniqueItems: true
          items:
            $ref: '#/components/schemas/MonitorWatchedField'
        webhook_url:
          type: string
          format: uri
          pattern: ^https://
        baseline_check_id:
          type: string
          pattern: ^chk_[A-Za-z0-9_-]{16,80}$
        latest_check_id:
          type: string
          pattern: ^chk_[A-Za-z0-9_-]{16,80}$
        latest_snapshot:
          $ref: '#/components/schemas/MonitorSnapshot'
        last_checked_at:
          type: string
          format: date-time
        next_check_at:
          type: string
          format: date-time
        last_event_at:
          type: string
          format: date-time
        failure_count:
          type: integer
          minimum: 0
        last_error_code:
          type: string
        estimated_monthly_checks:
          type: integer
          enum:
          - 1
          - 5
          - 30
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    Pagination:
      type: object
      required:
      - limit
      - has_more
      properties:
        limit:
          type: integer
        has_more:
          type: boolean
        next_cursor:
          type: string
    RegistryMatchStatus:
      type: string
      enum:
      - matched
      - not_matched
      - ambiguous
      - unavailable
      - not_supported
      - not_checked
    Problem:
      type: object
      required:
      - type
      - title
      - status
      - detail
      - code
      - request_id
      - retryable
      properties:
        type:
          type: string
          format: uri
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
        code:
          type: string
        request_id:
          type: string
        retryable:
          type: boolean
        errors:
          type: array
          items:
            type: object
            required:
            - pointer
            - code
            - message
            properties:
              pointer:
                type: string
              code:
                type: string
              message:
                type: string
    Evidence:
      type: object
      additionalProperties: false
      required:
      - dimension
      - source_type
      - retrieved_at
      properties:
        dimension:
          type: string
          enum:
          - format
          - registry_match
          - tax_authority
          - company_legal
        source_type:
          type: string
          enum:
          - vatfind_rules
          - government_registry
          - tax_authority
          - official_public_record
          - licensed_data_provider
        source_name:
          type: string
        source_url:
          type: string
          format: uri
        raw_status:
          type: string
        retrieved_at:
          type: string
          format: date-time
    Company:
      type: object
      required:
      - id
      - object
      - legal_name
      - vat_numbers
      - tax_identifiers
      - country_code
      - company_legal_status
      - sources
      - retrieved_at
      properties:
        tax_number_evidence:
          type: object
          additionalProperties: false
          required:
          - number
          - source_urls
          - retrieved_at
          properties:
            number:
              type: string
            source_urls:
              type: array
              maxItems: 3
              items:
                type: string
                format: uri
            retrieved_at:
              type: string
              format: date-time
          description: Published evidence for a recovered VAT/EIN. Registry facts retain their separate source.
        id:
          type: string
          pattern: ^cmp_
        object:
          const: company
        legal_name:
          type: string
        registration_number:
          type: string
        vat_numbers:
          type: array
          items:
            type: string
        tax_identifiers:
          type: array
          items:
            type: string
        country_code:
          $ref: '#/components/schemas/CountryCode'
        company_legal_status:
          $ref: '#/components/schemas/CompanyLegalStatus'
        raw_company_legal_status:
          type: string
        legal_form:
          type: string
        incorporation_date:
          type: string
          format: date
        registered_address:
          type: object
          properties:
            formatted:
              type: string
          required:
          - formatted
        website:
          type: string
          format: uri
        sources:
          type: array
          items:
            $ref: '#/components/schemas/Source'
        retrieved_at:
          type: string
          format: date-time
    IdentifierType:
      type: string
      enum:
      - vat_number
      - tax_identifier
      - registration_number
    MonitorChange:
      type: object
      additionalProperties: false
      required:
      - field
      - previous
      - current
      properties:
        field:
          $ref: '#/components/schemas/MonitorWatchedField'
        previous:
          oneOf:
          - type: string
          - type: array
            items:
              type: string
          - type: 'null'
        current:
          oneOf:
          - type: string
          - type: array
            items:
              type: string
          - type: 'null'
    CountryCodeInput:
      type: string
      pattern: ^[A-Za-z]{2}$
      examples:
      - GB
      - gb
    MonitorCreateRequest:
      type: object
      additionalProperties: false
      required:
      - identifier_type
      - identifier
      - country_code
      properties:
        identifier_type:
          $ref: '#/components/schemas/IdentifierType'
        identifier:
          type: string
          minLength: 1
          maxLength: 128
        country_code:
          $ref: '#/components/schemas/CountryCodeInput'
        company_name:
          type: string
          minLength: 1
          maxLength: 256
        cadence:
          $ref: '#/components/schemas/MonitorCadence'
          default: daily
        watched_fields:
          type: array
          minItems: 1
          maxItems: 6
          uniqueItems: true
          items:
            $ref: '#/components/schemas/MonitorWatchedField'
          default:
          - registry_match_status
          - company_legal_status
          - legal_name
          - registration_number
          - vat_numbers
          - registered_address
        webhook_url:
          type: string
          format: uri
          pattern: ^https://
          minLength: 12
          maxLength: 2048
          description: Public HTTPS endpoint. Credentials, IP literals, and local, test, internal, or localhost names are rejected.
        client_reference:
          type: string
          minLength: 1
          maxLength: 128
        metadata:
          type: object
          maxProperties: 20
          additionalProperties:
            type: string
            maxLength: 500
    CompanyLegalStatus:
      type: string
      enum:
      - active
      - inactive
      - dissolved
      - liquidation
      - insolvency
      - unknown
      - unavailable
      - not_applicable
      - not_supported
      - not_checked
    MonitorUpdateRequest:
      type: object
      additionalProperties: false
      minProperties: 1
      properties:
        status:
          type: string
          enum:
          - active
          - paused
        cadence:
          $ref: '#/components/schemas/MonitorCadence'
        watched_fields:
          type: array
          minItems: 1
          maxItems: 6
          uniqueItems: true
          items:
            $ref: '#/components/schemas/MonitorWatchedField'
        webhook_url:
          description: Public HTTPS endpoint, or null to disable delivery. Credentials, IP literals, and local, test, internal, or localhost names are rejected.
          anyOf:
          - type: string
            format: uri
            pattern: ^https://
            minLength: 12
            maxLength: 2048
          - type: 'null'
    Warning:
      type: object
      additionalProperties: false
      required:
      - dimension
      - code
      - message
      - retryable
      properties:
        dimension:
          type: string
        code:
          type: string
        message:
          type: string
        retryable:
          type: boolean
    MonitorRunResponse:
      type: object
      additionalProperties: false
      required:
      - monitor
      - check
      - changes
      - event_id
      properties:
        monitor:
          $ref: '#/components/schemas/Monitor'
        check:
          $ref: '#/components/schemas/Check'
        changes:
          type: array
          items:
            $ref: '#/components/schemas/MonitorChange'
        event_id:
          type:
          - string
          - 'null'
          pattern: ^evt_[A-Za-z0-9_-]{16,80}$
    Identifier:
      type: object
      additionalProperties: false
      required:
      - type
      - input
      - normalized
      - country_code
      properties:
        type:
          $ref: '#/components/schemas/IdentifierType'
        input:
          type: string
        normalized:
          type: string
        country_code:
          $ref: '#/components/schemas/CountryCode'
    MonitorUpdateResponse:
      type: object
      additionalProperties: false
      required:
      - monitor
      properties:
        monitor:
          $ref: '#/components/schemas/Monitor'
        webhook_signing_secret:
          type: string
          pattern: ^vfwhsec_
          readOnly: true
    MonitorList:
      type: object
      additionalProperties: false
      required:
      - object
      - data
      - pagination
      properties:
        object:
          const: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/Monitor'
        pagination:
          $ref: '#/components/schemas/Pagination'
    Check:
      type: object
      required:
      - id
      - object
      - processing_status
      - source
      - identifier
      - format_status
      - registry_match_status
      - tax_authority_status
      - company_legal_status
      - evidence
      - warnings
      - credits_used
      - created_at
      - completed_at
      properties:
        id:
          type: string
          pattern: ^chk_
        object:
          const: check
        processing_status:
          const: completed
        source:
          type: string
          enum:
          - api
          - mcp
          - dashboard
          - monitoring
        identifier:
          $ref: '#/components/schemas/Identifier'
        format_status:
          $ref: '#/components/schemas/FormatStatus'
        registry_match_status:
          $ref: '#/components/schemas/RegistryMatchStatus'
        tax_authority_status:
          $ref: '#/components/schemas/TaxAuthorityStatus'
        company_legal_status:
          $ref: '#/components/schemas/CompanyLegalStatus'
        company_name:
          type: string
        client_reference:
          type: string
        metadata:
          type: object
          additionalProperties:
            type: string
        company:
          $ref: '#/components/schemas/Company'
        evidence:
          type: array
          items:
            $ref: '#/components/schemas/Evidence'
        warnings:
          type: array
          items:
            $ref: '#/components/schemas/Warning'
        credits_used:
          type: integer
          minimum: 0
        created_at:
          type: string
          format: date-time
        completed_at:
          type: string
          format: date-time
    MonitorSnapshot:
      type: object
      additionalProperties: false
      required:
      - check_id
      - observed_at
      - registry_match_status
      - company_legal_status
      - legal_name
      - registration_number
      - vat_numbers
      - registered_address
      properties:
        check_id:
          type: string
          pattern: ^chk_[A-Za-z0-9_-]{16,80}$
        observed_at:
          type: string
          format: date-time
        registry_match_status:
          $ref: '#/components/schemas/RegistryMatchStatus'
        company_legal_status:
          $ref: '#/components/schemas/CompanyLegalStatus'
        legal_name:
          type:
          - string
          - 'null'
        registration_number:
          type:
          - string
          - 'null'
        vat_numbers:
          type: array
          items:
            type: string
        registered_address:
          type:
          - string
          - 'null'
    MonitorWebhookEnvelope:
      type: object
      additionalProperties: false
      required:
      - id
      - type
      - api_version
      - created_at
      - data
      properties:
        id:
          type: string
          pattern: ^evt_[A-Za-z0-9_-]{16,80}$
        type:
          type: string
          enum:
          - vat.monitor.change_detected
          - vat.monitor.source_degraded
          - vat.monitor.source_restored
          - vat.monitor.needs_credits
          - vat.monitor.paused
          - vat.monitor.resumed
        api_version:
          const: '2026-08-29'
        created_at:
          type: string
          format: date-time
        data:
          type: object
          additionalProperties: false
          required:
          - monitor_id
          - changes
          properties:
            monitor_id:
              type: string
              pattern: ^mon_[A-Za-z0-9_-]{16,80}$
            changes:
              type: array
              items:
                $ref: '#/components/schemas/MonitorChange'
            check_id:
              type: string
              pattern: ^chk_[A-Za-z0-9_-]{16,80}$
            snapshot:
              $ref: '#/components/schemas/MonitorSnapshot'
    CountryCode:
      type: string
      pattern: ^[A-Z]{2}$
      examples:
      - GB
    FormatStatus:
      type: string
      enum:
      - valid
      - invalid
      - not_supported
      - not_checked
    MonitorEvent:
      type: object
      additionalProperties: false
      required:
      - id
      - object
      - monitor_id
      - type
      - severity
      - changes
      - delivery
      - created_at
      properties:
        id:
          type: string
          pattern: ^evt_[A-Za-z0-9_-]{16,80}$
        object:
          const: vat_monitor_event
        monitor_id:
          type: string
          pattern: ^mon_[A-Za-z0-9_-]{16,80}$
        type:
          type: string
          enum:
          - vat.monitor.change_detected
          - vat.monitor.source_degraded
          - vat.monitor.source_restored
          - vat.monitor.needs_credits
          - vat.monitor.paused
          - vat.monitor.resumed
        severity:
          type: string
          enum:
          - info
          - warning
          - high
        changes:
          type: array
          items:
            $ref: '#/components/schemas/MonitorChange'
        check_id:
          type: string
          pattern: ^chk_[A-Za-z0-9_-]{16,80}$
        snapshot:
          $ref: '#/components/schemas/MonitorSnapshot'
        delivery:
          type: object
          additionalProperties: false
          required:
          - status
          - attempts
          properties:
            status:
              type: string
              enum:
              - not_configured
              - pending
              - delivered
              - retrying
              - failed
            attempts:
              type: integer
              minimum: 0
            delivered_at:
              type: string
              format: date-time
            response_status:
              type: integer
              minimum: 100
              maximum: 599
        acknowledged_at:
          type: string
          format: date-time
        created_at:
          type: string
          format: date-time
    Source:
      type: object
      additionalProperties: false
      required:
      - source_type
      properties:
        source_type:
          type: string
          enum:
          - government_registry
          - official_public_record
          - licensed_data_provider
        source_name:
          type: string
        source_url:
          type: string
          format: uri
    MonitorEventList:
      type: object
      additionalProperties: false
      required:
      - object
      - data
      - pagination
      properties:
        object:
          const: list
        data:
          type: array
          items:
            $ref: '#/components/schemas/MonitorEvent'
        pagination:
          $ref: '#/components/schemas/Pagination'
    MonitorCadence:
      type: string
      enum:
      - daily
      - weekly
      - monthly
    TaxAuthorityStatus:
      type: string
      enum:
      - valid
      - invalid
      - unavailable
      - not_applicable
      - not_supported
      - not_checked
    MonitorCreateResponse:
      type: object
      additionalProperties: false
      required:
      - monitor
      - baseline_check
      properties:
        monitor:
          $ref: '#/components/schemas/Monitor'
        baseline_check:
          $ref: '#/components/schemas/Check'
        webhook_signing_secret:
          type: string
          pattern: ^vfwhsec_
          readOnly: true
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: true
      description: Stable key for safe retries, scoped to workspace, environment, and operation.
      schema:
        type: string
        minLength: 8
        maxLength: 128
        pattern: ^[A-Za-z0-9._-]+$
    Limit:
      name: limit
      in: query
      required: false
      schema:
        type: integer
        minimum: 1
        maximum: 100
        default: 20
    Cursor:
      name: cursor
      in: query
      required: false
      schema:
        type: string
        maxLength: 2048
  responses:
    Problem:
      description: VATFind problem detail
      headers:
        X-Request-Id:
          schema:
            type: string
        Retry-After:
          description: Seconds until retry when the problem is retryable.
          schema:
            type: integer
            minimum: 1
        WWW-Authenticate:
          schema:
            type: string
        Allow:
          schema:
            type: string
      content:
        application/problem+json:
          schema:
            $ref: '#/components/schemas/Problem'
  securitySchemes:
    VatFindApiKey:
      type: http
      scheme: bearer
      bearerFormat: VATFind API key