Public REST API
The Risk Register REST API lets you read the registers, risks, controls, scopes, control implementations and audit entries that your role gives you access to, and create or change them programmatically. The app's MCP endpoint is built on the same API.
This page is the API reference hub. Start with Getting started if you've never called the API before.
At a glance
| Property | Value |
|---|---|
| Base URL | https://riskregister.com |
| All paths | Prefixed with /api/v1/ |
| Authentication | Bearer token in the Authorization header - either a personal access token (rr_pat_live_*, every plan) or an organisation API key (rrk_live_*, Business+) |
| Wire format | JSON request and response. UTF-8. |
| Schema | /docs/api/openapi.yaml: the OpenAPI 3.0.3 specification |
| Idempotency | Optional Idempotency-Key header on every mutation, modelled on Stripe's |
| Concurrency | Opt-in: send a record's ETag back in the x-rr-if-match header for optimistic concurrency (not the standard If-Match: see the guide) |
| Pagination | Cursor-based on every list endpoint |
| Errors | Stable typed envelope with discriminated codes |
| Rate limits | Per-token: 1000 reads/min, 100 mutations/min |
| Webhooks | HMAC-SHA256 signed outbound events (webhooks docs) |
MCP endpoint
The app serves MCP itself: 40 tools at https://mcp.riskregister.com/mcp (for a token that may write; fewer for a read or propose token) over the workspace and its people, registers and their documents, what changed and what is due, exports, templates, saving a register as a draft and proposing changes to one, risks (a search across registers, and the risk verbs: assess, treat, review), controls and their implementations, scopes and reference data. All 45 are at https://mcp.riskregister.com/mcp/full, which adds the five admin tools: three for webhooks, one for the audit log and one for connected assistants. Each tool calls the REST route it names, so it gets exactly this API's checks. It authenticates with a personal access token or an organisation API key. See MCP endpoint.
The standalone @riskregister/mcp-server package is being retired in favour of the endpoint.
Capabilities
| You want to… | Read | Mutate |
|---|---|---|
| Registers | GET /api/v1/registers, GET /api/v1/registers/{id} | POST /api/v1/registers, PATCH /api/v1/registers/{id}, POST /api/v1/registers/{id}/archive, POST /api/v1/registers/from-context (AI generation), POST /api/v1/registers/from-document (a whole register, saved as a draft), POST /api/v1/registers/from-template |
| Risks | GET /api/v1/registers/{id}/risks, GET /api/v1/risks/{id} | POST /api/v1/registers/{id}/risks, PATCH /api/v1/risks/{id}, DELETE /api/v1/risks/{id} |
| Risk verbs | GET /api/v1/risks/{id}/reviews, GET /api/v1/risks/{id}/acceptances | POST /api/v1/risks/{id}/{assess,treat,request-review,complete-review,record-review,cancel-review,accept,revoke-acceptance} |
| Controls | GET /api/v1/controls, GET /api/v1/controls/{id} | POST /api/v1/controls, PATCH /api/v1/controls/{id}, DELETE /api/v1/controls/{id} (admin-only) |
| Control implementations (Business+, reads included) | GET /api/v1/controls/{id}/implementations, GET /api/v1/control-implementations/{id} | POST /api/v1/control-implementations, PATCH and DELETE /api/v1/control-implementations/{id}, POST /api/v1/control-implementations/{id}/review |
| Risk-control mappings | Each risk's linked controls are in GET /api/v1/registers/{id}/document and GET /api/v1/registers/{id}/coverage (there is no per-risk controls list) | PUT /api/v1/risks/{riskId}/controls/{controlId}, DELETE |
| Scopes (Business+, reads included) | GET /api/v1/scopes, GET /api/v1/scopes/{id} | POST /api/v1/scopes, PATCH and DELETE /api/v1/scopes/{id} (admin-only) |
| Risk categories | GET /api/v1/risk-categories | In the app only today (no v1 mutation surface) |
| Audit log | GET /api/v1/audit-log (admin-only) | Append-only: no route edits or removes an entry |
| Webhook endpoints (Business+) | GET /api/v1/webhook-endpoints, GET .../{id}, GET .../{id}/deliveries (all admin-only) | In the app only today (Settings > Webhooks) |
| Reviews | GET /api/v1/reviews/{reviewId} | Through the risk-verb endpoints |
The full path list with request/response schemas lives in openapi.yaml. Validate with npx redocly lint; consume with any OpenAPI 3.0 client generator.
Cross-cutting contracts
| Contract | Reference |
|---|---|
| Bearer authentication, PAT vs org-key | Authentication |
| Idempotency-Key on retries | Idempotency |
ETag + x-rr-if-match for concurrent edits | ETag and optimistic concurrency |
| Cursor pagination on list endpoints | Pagination |
| Stable error envelope | Errors |
| Per-token + per-IP rate limits | Rate limits |
| Outbound webhooks (HMAC signing, retries) | Webhooks |
Stable identifiers
Every entity has a human-readable per-org ref (RISK-0042, CTRL-0042, SCOPE-0042, IMPL-0042, REG-0042) alongside its UUID. Every path parameter accepts either:
GET /api/v1/risks/RISK-0042
GET /api/v1/risks/8f3a2b1c-7d9e-4f0a-b3c5-d2e6f7a8b9c0 # same row
Refs are case-insensitive on input, and the pattern is ^[A-Z]+-\d+$. Responses always write a ref zero-padded to at least 4 digits (RISK-0001); on input the padding is optional, so RISK-1 and risk-0001 both resolve to RISK-0001.
DTO conventions
Every successful response with a body wraps its data in { data, requestId } (or { data, pagination, requestId } for paginated lists); an error carries the error envelope instead, and a 204 has no body. Responses leave out orgId, which the token already implies. Field naming is camelCase, with two exceptions that are snake_case: the pagination fields (next_cursor, has_more) and the risk list's filter parameters (score_band, category_id, owner_id, register_id). Timestamps are ISO 8601 strings with millisecond precision and Z suffix.
Score fields (inherentLikelihood, inherentImpact, residualLikelihood, residualImpact) range 1–N where N depends on the parent register's scoringMatrixKind (5 for iso31000_5x5, 3 for simple_3x3).
Versioning + deprecation policy
The current version is v1. A v2 would commit to:
- A 12-month overlap window where both versions are live.
- A 6-month
Sunsetheader notice via RFC 8594 beforev1is removed. - The exact deprecation timeline announced in the CHANGELOG and via direct email to every customer with active API traffic.
Within v1:
- New fields on responses are additive. Clients using TypeScript narrowing won't break.
- New optional request parameters are additive.
- New error codes are additive.
- New event types on webhooks are additive.
- Breaking changes go in
v2.
CORS + browser usage
The API does not emit CORS headers. It's server-to-server only. Calling from a browser will fail at the CORS preflight. To build a browser app on top of Risk Register, sign requests on your server and proxy from the browser.
Status codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Resource created |
| 204 | Success, no body (DELETE) |
| 400 | Validation error |
| 401 | Authentication failed |
| 403 | Authentication OK, forbidden by tier / role / suspension |
| 404 | Entity doesn't exist or isn't visible to this caller |
| 405 | Method not allowed (e.g. DELETE /api/v1/registers/{id} - use /archive instead) |
| 409 | Conflict: state machine violation or idempotency body mismatch |
| 412 | Precondition failed: stale x-rr-if-match |
| 413 | Payload too large |
| 422 | A proposal that can't be stored as it stands; the body says which rows and why |
| 428 | A proposal sent without expectedRevision |
| 429 | Rate limited - honour Retry-After |
| 500 | Internal server error - quote requestId |
| 503 | EXTERNAL_SERVICE_ERROR: an upstream dependency failed, retry with backoff. SERVICE_UNAVAILABLE: paused on purpose (the MCP endpoint's switch), try again later, not in a loop |
Every error response carries the stable error envelope.
Common workflows
| Workflow | Recipe |
|---|---|
| First integration | Mint a personal access token (PAT) → GET /api/v1/registers with curl → create a risk via POST → confirm with GET. Getting started tutorial. |
| AI-generated register | POST /api/v1/registers/from-context with a description; receive the register, every generated risk inline, and a reviewUrl. The register is a draft whatever the caller's access (a propose or write token, a connected app or an organisation key): register.created and risk.created go to webhooks only when a person adopts it in the app. |
| Bulk import | POST /api/v1/registers/from-document saves a whole register, written as a register document, as a draft for a person to adopt in the app. To change an existing register in bulk, send a proposal: POST /api/v1/registers/{id}/proposals. See Drafts and proposals. CSV and Excel files are imported in the app, not through the API. |
| Concurrent-edit-safe update | GET the resource → capture ETag → PATCH with x-rr-if-match → handle 412 by re-reading + re-applying. ETag reference. |
| Idempotent retry on POST | Generate a UUID → POST with Idempotency-Key header → retry with the same key on transport failure. Same body returns the record the first call made (with 200, not a second 201); different body returns 409. Idempotency reference. |
| Receive event push | Configure a webhook endpoint (admin UI), verify signatures on every delivery. Webhooks. |
| Resume long-running pagination | Forward next_cursor from the prior response on subsequent requests. Cursors don't expire. Pagination. |
Support
- Status page: status.riskregister.com
- When filing a ticket: quote the
requestIdfrom any error envelope - Contact: riskregister.com/contact, or support@riskregister.com
See also
- openapi.yaml - the machine-readable spec.
- Webhooks - outbound event delivery.