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
limitand acursorfrom the previous page. - Rate limit: 600 requests per minute per organisation. A
429response includesRetry-After. - Errors return
{"error": {"code": "…", "message": "…", "details": …}}with a 4xx or 5xx status; validation errors are422withcode: "VALIDATION_FAILED"and the failing fields indetails. A resource from another organisation returns404, never403.
Endpoints
| Area | Endpoints |
|---|---|
| Sites | POST /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 |
| Monitors | POST /monitors, GET /monitors, GET /monitors/:id, PATCH /monitors/:id, DELETE /monitors/:id, POST /monitors/:id/run |
| Runs | GET /runs (filters site, monitor, state, from, to), GET /runs/:id (with stages and evidence) |
| Incidents | GET /incidents, GET /incidents/:id, POST /incidents/:id/acknowledge, /snooze, /assign, /resolve, /notes |
| Alerts | CRUD /alert-channels, /alert-rules, /escalation-policies; POST /alert-channels/:id/test; GET /notifications |
| Reports | GET /reports, POST /reports, GET /reports/:id, GET /reports/:id/download (signed URL); CRUD /report-schedules |
| Team | GET /members, POST /invites, PATCH /members/:id, DELETE /members/:id |
| Organisation | GET /org, PATCH /org, GET /usage |
| API keys | CRUD /api-keys |
| Webhooks | CRUD /webhooks, GET /webhooks/:id/deliveries |
| Dashboard | GET /dashboard/summary, GET /dashboard/outcomes?days=30 |
| Public | GET /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.