COSTRINITY Webhooks API

The webhooks API from COSTRINITY — 4 operation(s) for webhooks.

GitHub OpenAPI

Operations 4

POST /api/webhooks/compliance/register Register a compliance webhook endpoint #
GET /api/webhooks/compliance/list List registered compliance webhook endpoints #
POST /api/webhooks/compliance/test Fire a test compliance webhook #
GET /api/webhooks/compliance/deliveries Read compliance webhook delivery audit log #

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/costrinity-xyz:costrinity-xyz-webhooks-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

costrinity-xyz-webhooks-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: VITNA API (Phase 1) Webhooks API
  version: 1.1.0
  description: 'The compliance evidence layer for AI agents. Pre-flight compliance checks agents call before they act (consent, breach reportability, EU AI Act classification, cross-border), and audit-grade, signed records of what they did. Phase 1 surface covers region routing labels (one database region is in use today), DPIA/ROPA generation, Data Subject Rights (scoped: answerable only for events linked to a subject via principal_ref at ingest, from the point linkage begins; earlier events are permanently unattributable and cannot be linked retroactively), consent lifecycle, Sahamati AA integration, breach notification, and INR/Razorpay billing for DPDP-IN owners (switched off pending merchant onboarding). Also includes one-command agent self-provisioning (/api/setup, mints a restricted trial key with no signup), a destructive-action safety pre-flight (/api/preflight/action-check), scoped engagement sessions with signed evidence bundles (/api/engagement/*), and account claim by a person, from the claim link (/claim).'
  contact:
    name: COSTRINITY
    email: dpo@costrinity.xyz
    url: https://www.costrinity.xyz/
  license:
    name: Proprietary
    url: https://vitna.costrinity.xyz/terms
servers:
- url: https://vitna.costrinity.xyz
  description: Production
- url: https://vigil-staging.vercel.app
  description: Staging (preview branch)
tags:
- name: Webhooks
paths:
  /api/webhooks/compliance/register:
    post:
      summary: Register a compliance webhook endpoint
      description: 'Operator registers a URL to receive a specific compliance event kind (breach_notification, grievance_filed, consent_revoked, data_subject_request, cross_border_transfer, dpia_threshold_triggered). Deliveries are signed with HMAC-SHA256 and audit-logged. Today VITNA sends only breach_notification and grievance_filed to registered endpoints, and only the signed-in owner can register those two, because their payloads concern people''s personal data. With an API key (x-vitna-key, x-vigil-key, x-api-key or Authorization: Bearer, a restricted trial key included, even beside a session cookie) a request for either is refused 403 session_required and nothing is stored. A key may register the other four kinds. The url must be https, under 2,048 characters, and not an address on VITNA''s own network (else 400 "url rejected: "); until 2026-10-29 plain http was taken. Registered with an API key, the url must also use https''s default port, 443 (since 2026-10-29: with the test route, any port let a key probe the ports of hosts it named); the signed-in owner may name another. A restricted trial key is held to its expiry and limits, and registrations are paced at 20 a minute per network on each server instance (429).'
      tags:
      - Webhooks
      security:
      - Session: []
      - ApiKey: []
      - Bearer: []
      responses:
        '200':
          description: Endpoint registered
        '400':
          description: Invalid event_kind or url
        '401':
          description: Auth required
        '403':
          description: 'session_required: an API key asked for breach_notification or grievance_filed; or key_expired: a trial key past its expiry'
        '429':
          description: More than 20 registrations a minute from this network
      operationId: postApiWebhooksComplianceRegister
      x-operation-id-source: derived
  /api/webhooks/compliance/list:
    get:
      summary: List registered compliance webhook endpoints
      description: 'Signed-in owner only (since 2026-11-01). With an API key (x-vitna-key, x-vigil-key, x-api-key or Authorization: Bearer, a restricted trial key included, even beside a session cookie) it is refused 403 session_required before anything is read: the list holds the addresses the owner registered, and a webhook address often carries its own secret.'
      tags:
      - Webhooks
      security:
      - Session: []
      parameters:
      - name: event_kind
        in: query
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: 'Unauthorized: no signed-in session, or owner_id names another account'
        '403':
          description: 'session_required: the request carried an API key'
      operationId: getApiWebhooksComplianceList
      x-operation-id-source: derived
  /api/webhooks/compliance/test:
    post:
      summary: Fire a test compliance webhook
      description: 'Sends a synthetic breach_notification payload (data.test=true) to the endpoint named by endpoint_id, or with none named to every active breach_notification endpoint. Helps operators verify their receiver before the first real event. With an API key (x-vitna-key, x-vigil-key, x-api-key or Authorization: Bearer, a restricted trial key included, even beside a session cookie) a request naming a breach_notification or grievance_filed endpoint, or naming none, is refused 403 session_required and nothing is sent; a key may test an endpoint of another kind by its endpoint_id. To a key each result is {endpoint_id, url, delivered, signed}; the signed-in owner also sees attempts, status_code, refused_ssrf and duration_ms. An endpoint that is not a public https URL is not sent to and its refusal is recorded. A restricted trial key is held to its expiry and limits, and tests are paced at 10 a minute per network on each server instance (429). A test makes one try. Until 2026-10-29 a key, an expired trial key included, read the receiver''s status code, the tries and the time.'
      tags:
      - Webhooks
      security:
      - Session: []
      - ApiKey: []
      - Bearer: []
      responses:
        '200':
          description: OK
        '401':
          description: Auth required
        '403':
          description: 'session_required: only the signed-in owner tests breach and grievance endpoints; or key_expired: a trial key past its expiry'
        '429':
          description: More than 10 tests a minute from this network
      operationId: postApiWebhooksComplianceTest
      x-operation-id-source: derived
  /api/webhooks/compliance/deliveries:
    get:
      summary: Read compliance webhook delivery audit log
      description: 'Returns every delivery attempt (delivered + failed + SSRF-refused) with payload_sha256 for tamper-evidence. The regulator-facing proof log. Signed-in owner only (since 2026-11-01). With an API key (x-vitna-key, x-vigil-key, x-api-key or Authorization: Bearer, a restricted trial key included, even beside a session cookie) it is refused 403 session_required before anything is read, because these records are not tied to a session.'
      tags:
      - Webhooks
      security:
      - Session: []
      parameters:
      - name: event_kind
        in: query
        schema:
          type: string
      - name: delivered
        in: query
        schema:
          type: boolean
      - name: since
        in: query
        schema:
          type: string
          format: date-time
      - name: limit
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 500
      responses:
        '200':
          description: OK
        '401':
          description: 'Unauthorized: no signed-in session, or owner_id names another account'
        '403':
          description: 'session_required: the request carried an API key'
      operationId: getApiWebhooksComplianceDeliveries
      x-operation-id-source: derived
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: x-vigil-key
      description: 'Per-agent API key. Format: vitna_<64-char-hex>; legacy vigil_ keys remain valid. Send on /api/ingest.'
    Bearer:
      type: http
      scheme: bearer
      bearerFormat: vitna_<key> (legacy vigil_<key> accepted)
      description: 'Same key as x-vigil-key, sent as `Authorization: Bearer <key>`.'
    Session:
      type: apiKey
      in: cookie
      name: vigil_session
      description: 'Operator dashboard session cookie. Set by a sign-in: the second step of a password sign-in (/api/auth/verify-pin), or, for an address whose mail Google handles (Gmail or a Google Workspace domain) while VITNA''s mail cannot reach Gmail, the password alone (/api/owners); GitHub; a passkey; or a claim.'
    CronSecret:
      type: http
      scheme: bearer
      description: Bearer ${CRON_SECRET}. Only the Vercel cron infrastructure should hold this.