Skip to Content
API for developersOverview

Regulatory Snapshot API

The Regulatory Snapshot API gives you programmatic access to the same horizon-scanning engine that powers the regsn.app dashboard. Configure a set of jurisdictions and regulatory areas, run a scan, and get back a structured snapshot — items, trends, an executive summary and narrative, and (when a prior comparable snapshot exists) an overlay of changes between snapshots. From any snapshot you can then generate exportable artefacts: PDFs, slide decks, infographics, audio briefings, and more.

The API is a small JSON-over-HTTPS surface at https://api.regsn.app/v1. Bearer-key authentication, idempotent retries, rate limits, RFC 9457 errors, and Server-Sent Events for long-running scans are all first-class. If you have used Stripe or Plaid, the shape will feel familiar.

The lifecycle

One scan produces one snapshot; one snapshot can feed many exports. Everything else is a read.

A sync scan (POST /v1/scans, the default mode) blocks for up to 120 seconds and returns the finished snapshot inline. Anything longer — and every export — is asynchronous: you get an id back, then poll or stream until it completes.

Endpoint map

Method & pathWhat it doesReference
POST /v1/scansRun a scan (sync up to 120 s, or ?mode=async)Scans
POST /v1/scans/estimateCost envelope for a scan config, without running itScans
GET /v1/scans/{id}Poll scan status and progressScans
GET /v1/scans/{id}/streamServer-Sent Events progress streamScans
POST /v1/scans/{id}/cancelCancel a running scanScans
GET /v1/snapshotsList snapshots with filters and pagingSnapshots
GET /v1/snapshots/{id}Full snapshot envelopeSnapshots
GET /v1/snapshots/{id}/itemsItems onlySnapshots
GET /v1/snapshots/{id}/trendsTrends onlySnapshots
GET /v1/snapshots/{id}/executive-summaryExecutive summary blockSnapshots
GET /v1/snapshots/{id}/executive-narrativeNarrative prose, with ?language=Snapshots
GET /v1/snapshots/{id}/driftChanges overlay against a prior snapshotSnapshots
POST /v1/exportsQueue an export job against a snapshotExports
GET /v1/exportsList your export jobsExports
GET /v1/exports/{id}Poll one export jobExports
GET /v1/exports/{id}/downloadDownload the finished artefactExports
DELETE /v1/exports/{id}Delete a job and its artefact bytesExports
GET /v1/meta/enginesSupported engines and horizonsDiscovery
GET /v1/meta/modelsModel catalogue per providerDiscovery
GET /v1/meta/jurisdictionsJurisdiction vocabulary, with regulatorsDiscovery
GET /v1/meta/areasRegulatory-area vocabularyDiscovery
GET /v1/meta/export-typesExport catalogue incl. per-type option schemasDiscovery
GET /v1/usageRequest, scan, export, and cost telemetryUsage
GET /v1/usage/budgetCurrent budget, spend, and remainingUsage
POST /v1/keysCreate an API key (dashboard session)Authentication
GET /v1/keysList keys, masked (dashboard session)Authentication
POST /v1/keys/{id}/revokeRevoke a key (dashboard session)Authentication

Conventions

  • Base URLhttps://api.regsn.app. All paths are prefixed /v1.
  • AuthenticationAuthorization: Bearer regsn_live_… on every call except the dashboard-session /v1/keys/* endpoints. See Authentication.
  • Content typeapplication/json requests and responses; errors use application/problem+json. Request bodies are capped at 2 MB.
  • Request IDs — every response carries an X-Request-Id header (req_…); quote it in support requests. The same value appears as request_id in error bodies.
  • IdempotencyPOST /v1/scans and POST /v1/exports accept an Idempotency-Key header: same key + same body returns the cached response for 24 hours. See Idempotency.
  • Budget — all scan and export work depletes the same budget pool the regsn.app UI consumes; there is no separate API meter. Check GET /v1/usage/budget before a large run. See Usage & budget.
  • Amounts — every *_cents field is US cents, and may carry fractions of a cent.

What you can build

  • Compliance dashboards — pull snapshots into your own UI and slice by jurisdiction or area.
  • Briefing pipelines — run scheduled scans, then export the snapshot as a PDF, deck, or audio briefing and route it to the people who need it.
  • Change monitoring — compare snapshots over time; GET /v1/snapshots/{id}/drift returns what shifted between snapshots, not just what each one said.
  • Workflow integrations — trigger a scan from a ticketing system, attach the tearsheet to the ticket, post the narrative to chat.

SDKs

LanguagePackageRequirements
JavaScript@regsn/apiNode 18+, ESM
PythonregsnPython ≥ 3.8, stdlib only

Both SDKs cover the core scan → snapshot → export flow, retry on 429 and 5xx, and generate idempotency keys automatically. They are thin wrappers — anything they do not cover is a plain HTTPS call away. See each SDK page for current availability.

See also

  • Quickstart — key → first scan → snapshot → download, start to finish.
  • Errors — the problem-details shape and every error code.
  • Core concepts — the data model in product terms.
  • Glossary — one-line definitions for every term used here.
Last updated on