Risk RegisterGuides

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

PropertyValue
Base URLhttps://riskregister.com
All pathsPrefixed with /api/v1/
AuthenticationBearer token in the Authorization header - either a personal access token (rr_pat_live_*, every plan) or an organisation API key (rrk_live_*, Business+)
Wire formatJSON request and response. UTF-8.
Schema/docs/api/openapi.yaml: the OpenAPI 3.0.3 specification
IdempotencyOptional Idempotency-Key header on every mutation, modelled on Stripe's
ConcurrencyOpt-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)
PaginationCursor-based on every list endpoint
ErrorsStable typed envelope with discriminated codes
Rate limitsPer-token: 1000 reads/min, 100 mutations/min
WebhooksHMAC-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…ReadMutate
RegistersGET /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
RisksGET /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 verbsGET /api/v1/risks/{id}/reviews, GET /api/v1/risks/{id}/acceptancesPOST /api/v1/risks/{id}/{assess,treat,request-review,complete-review,record-review,cancel-review,accept,revoke-acceptance}
ControlsGET /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 mappingsEach 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 categoriesGET /api/v1/risk-categoriesIn the app only today (no v1 mutation surface)
Audit logGET /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)
ReviewsGET /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

ContractReference
Bearer authentication, PAT vs org-keyAuthentication
Idempotency-Key on retriesIdempotency
ETag + x-rr-if-match for concurrent editsETag and optimistic concurrency
Cursor pagination on list endpointsPagination
Stable error envelopeErrors
Per-token + per-IP rate limitsRate 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:

Within v1:

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

CodeMeaning
200Success
201Resource created
204Success, no body (DELETE)
400Validation error
401Authentication failed
403Authentication OK, forbidden by tier / role / suspension
404Entity doesn't exist or isn't visible to this caller
405Method not allowed (e.g. DELETE /api/v1/registers/{id} - use /archive instead)
409Conflict: state machine violation or idempotency body mismatch
412Precondition failed: stale x-rr-if-match
413Payload too large
422A proposal that can't be stored as it stands; the body says which rows and why
428A proposal sent without expectedRevision
429Rate limited - honour Retry-After
500Internal server error - quote requestId
503EXTERNAL_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

WorkflowRecipe
First integrationMint a personal access token (PAT) → GET /api/v1/registers with curl → create a risk via POST → confirm with GET. Getting started tutorial.
AI-generated registerPOST /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 importPOST /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 updateGET the resource → capture ETag → PATCH with x-rr-if-match → handle 412 by re-reading + re-applying. ETag reference.
Idempotent retry on POSTGenerate 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 pushConfigure a webhook endpoint (admin UI), verify signatures on every delivery. Webhooks.
Resume long-running paginationForward next_cursor from the prior response on subsequent requests. Cursors don't expire. Pagination.

Support

See also