RiskRouter Service API
The Service API from RiskRouter — 4 operation(s) for service.
The Service API from RiskRouter — 4 operation(s) for service.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/riskrouter-eu:riskrouter-eu-service-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: RiskRouter Service API
version: 1.0.0
summary: Deterministic micro-insurance pricing and a tamper-evident, independently verifiable audit ledger for licensed insurance distributors.
description: 'RiskRouter is infrastructure for insurance distributors: it prices a configuration server-side and, when a distributor key is presented, records the quote in an append-only, SHA-256 hash-chained ledger whose head is signed (ECDSA P-256) so anyone can verify it offline.
Status, stated plainly: this is a validation build. Prices come from a published mock rating matrix, no carrier, bank or payment rail is contacted, and no insurance cover is in force. RiskRouter does not sell insurance and never contacts the policyholder.
Pricing needs no authentication. Recording needs a key; a sandbox key can be taken on the spot from POST /api/v1/sandbox/keys. Keys are sent as `Authorization: Bearer ` or `X-RiskRouter-Key: `. Only the SHA-256 of a key is ever stored.
Human-readable reference: https://riskrouter.eu/docs. Offline verifier: https://github.com/aniljangrabe-dev/riskrouter-verify.'
contact:
name: RiskRouter
url: https://riskrouter.eu/contact
servers:
- url: https://api.riskrouter.eu
tags:
- name: Service
paths:
/api/v1/usage:
get:
tags:
- Service
operationId: getUsage
summary: How much is recorded, and by whom, as counts
description: 'Entries in the quote ledger and the evidence log: totals, the last 7 and 28 days, twelve ISO weeks, and `outside`, the entries recorded with keys that are not RiskRouter''s own (self-serve sandbox keys counted separately). Public: nothing but numbers and week dates is returned. Cached for five minutes at the edge. Answers 413 when the logs exceed the single-request counting ceiling, and 502/503 rather than a guess when the ledger cannot be read.'
responses:
'200':
description: Counts.
content:
application/json:
schema:
type: object
required:
- ok
- format
- as_of
- quotes
- evidence
- outside
- distributors
- by_week
properties:
ok:
type: boolean
format:
type: string
enum:
- riskrouter-usage|1
as_of:
type: string
format: date-time
quotes:
type: object
additionalProperties: true
evidence:
type: object
additionalProperties: true
outside:
type: object
additionalProperties: true
distributors:
type: object
additionalProperties: true
by_week:
type: array
items:
type: object
properties:
week_start:
type: string
format: date
quotes:
type: integer
evidence:
type: integer
outside:
type: integer
method:
type: string
'413':
description: The logs are past the counting ceiling.
'502':
description: The ledger could not be read.
'503':
description: The ledger is not bound.
/api/v1/contact:
post:
tags:
- Service
operationId: sendEnquiry
summary: Submit a business enquiry (the site's contact form)
description: Listed because it is a public write endpoint, not because it is part of the integration surface. Enquiries hold personal data, are erasable, and are deleted twelve months after submission.
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- name
- email
- message
properties:
name:
type: string
minLength: 1
maxLength: 120
email:
type: string
format: email
maxLength: 254
organisation:
type: string
maxLength: 160
enquiry_type:
type: string
enum:
- pilot
- integration
- compliance
- other
default: other
message:
type: string
minLength: 10
maxLength: 4000
src:
type: string
description: Optional campaign tag. Dropped if malformed.
responses:
'201':
description: Stored.
content:
application/json:
schema:
type: object
properties:
ok:
type: boolean
received:
type: boolean
reference:
type: string
format: uuid
'400':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
/api/v1/health:
get:
tags:
- Service
operationId: getHealth
summary: Liveness and binding readiness
description: '`binding_configured: false` means quotes still price but nothing is recorded. `build.commit` names the commit CI deployed, so what answers can be tied to a reviewed version; it is null for a deployment CI did not make.'
responses:
'200':
description: Status.
content:
application/json:
schema:
type: object
additionalProperties: true
/api/v1/landings:
post:
tags:
- Service
operationId: countLanding
summary: Count an arrival from a tagged campaign link (the site's own measurement)
description: 'Adds one to a daily count per campaign tag and page. Nothing else is read or stored: no IP, no identifier, no browser details. Not part of the integration surface.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- src
- path
properties:
src:
type: string
pattern: ^[a-z0-9][a-z0-9-]{0,39}$
path:
type: string
example: /integrate
responses:
'204':
description: Counted.
'400':
$ref: '#/components/responses/Error'
'413':
$ref: '#/components/responses/Error'
'429':
$ref: '#/components/responses/Error'
'503':
$ref: '#/components/responses/Error'
components:
schemas:
Error:
type: object
properties:
ok:
type: boolean
const: false
error:
type: object
required:
- code
- message
- docs
properties:
code:
type: string
message:
type: string
docs:
type: string
format: uri
description: The row of the error table on https://riskrouter.eu/docs that explains this code and what to do about it.
details: {}
responses:
Error:
description: Every error carries the same envelope with a stable code.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
securitySchemes:
bearerKey:
type: http
scheme: bearer
description: A RiskRouter API key, e.g. rr_sandbox_…
headerKey:
type: apiKey
in: header
name: X-RiskRouter-Key
externalDocs:
description: Integration guide
url: https://riskrouter.eu/integrate