Docs

API referenceChangelogStatus
Documentation menu
Developers › REST API v1

REST API v1

The REST API lets you read and manage everything in the dashboard from your own tools. The machine-readable OpenAPI 3 description is published at api.formvigilant.com/v1/openapi.json; import it into Postman, Insomnia or a client generator.

Base URL and authentication

https://api.formvigilant.com/v1
Authorization: Bearer fv_live_…

Create keys under Settings › API keys. Each key belongs to the organisation, carries scopes (read-only or read-write per area) and shows when it was last used. The full key is shown once; FormVigilant stores only a hash.

Conventions

  • JSON in and out, UTF-8. Timestamps are ISO 8601 in UTC.
  • IDs are 26-character ULIDs.
  • Lists accept limit and a cursor from the previous page.
  • Rate limit: 600 requests per minute per organisation. A 429 response includes Retry-After.
  • Errors return {"error": {"code": "…", "message": "…", "details": …}} with a 4xx or 5xx status; validation errors are 422 with code: "VALIDATION_FAILED" and the failing fields in details. A resource from another organisation returns 404, never 403.

Endpoints

AreaEndpoints
SitesPOST /sites/pairing-code, GET /sites, GET /sites/:id, PATCH /sites/:id, DELETE /sites/:id, POST /sites/:id/discover, GET /sites/:id/forms, GET /sites/:id/diagnostics, POST /sites/:id/pause, POST /sites/:id/resume
MonitorsPOST /monitors, GET /monitors, GET /monitors/:id, PATCH /monitors/:id, DELETE /monitors/:id, POST /monitors/:id/run
RunsGET /runs (filters site, monitor, state, from, to), GET /runs/:id (with stages and evidence)
IncidentsGET /incidents, GET /incidents/:id, POST /incidents/:id/acknowledge, /snooze, /assign, /resolve, /notes
AlertsCRUD /alert-channels, /alert-rules, /escalation-policies; POST /alert-channels/:id/test; GET /notifications
ReportsGET /reports, POST /reports, GET /reports/:id, GET /reports/:id/download (signed URL); CRUD /report-schedules
TeamGET /members, POST /invites, PATCH /members/:id, DELETE /members/:id
OrganisationGET /org, PATCH /org, GET /usage
API keysCRUD /api-keys
WebhooksCRUD /webhooks, GET /webhooks/:id/deliveries
DashboardGET /dashboard/summary, GET /dashboard/outcomes?days=30
PublicGET /public/status/:orgSlug/:siteSlug (no auth)

Examples

Run a monitor now and read the result:

curl -X POST https://api.formvigilant.com/v1/monitors/01JB8Z3K6WQ7M5N2P4R8T0V9XY/run \
  -H "Authorization: Bearer $FV_KEY"

curl "https://api.formvigilant.com/v1/runs?monitor=01JB8Z3K6WQ7M5N2P4R8T0V9XY&limit=1" \
  -H "Authorization: Bearer $FV_KEY"

List open Critical incidents:

curl "https://api.formvigilant.com/v1/incidents?state=open&severity=critical" \
  -H "Authorization: Bearer $FV_KEY"

Run states

A run moves through QUEUED → RUNNING → SUBMITTED → VERIFYING and ends as PASSED, PASSED_LATE, FAILED, INCONCLUSIVE, TIMED_OUT or CANCELLED. Each run has a target_level, the reached_level and, when it did not pass, a reason code.

Connector endpoints

/connector/* endpoints are called by the WordPress connector and are signed with the site secret, not an API key. They are described in Connector protocol.