RiskRouter Pricing API

The Pricing API from RiskRouter — 2 operation(s) for pricing.

GitHub OpenAPI

Operations 2

POST /api/v1/quote Price a configuration, and record it when a key is presented #
GET /api/v1/verticals The published rating matrix #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/riskrouter-eu:riskrouter-eu-pricing-api"
All apis
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.

Get an API 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 Specification

riskrouter-eu-pricing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RiskRouter Pricing 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: Pricing
paths:
  /api/v1/quote:
    post:
      tags:
      - Pricing
      operationId: priceQuote
      summary: Price a configuration, and record it when a key is presented
      description: The server prices every quote from its own matrix and ignores any price a client sends. Mandatory base layers are always included. Without a key the quote is priced and nothing is written. With a valid key it is also appended to the ledger; check `persistence.persisted` (or `attribution.recorded`), because a 200 prices the quote even when the ledger refused the write. An invalid, revoked or suspended key is refused with 401 and never downgraded to anonymous.
      security:
      - {}
      - bearerKey: []
      - headerKey: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/QuoteRequest'
            example:
              active_vertical: mobility
              selected_components:
                commuter_roadside: true
      responses:
        '200':
          description: Priced. Whether it was recorded is in `persistence` and `attribution`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuoteResponse'
          headers:
            Idempotent-Replayed:
              description: Present and 'true' when this response replays an entry recorded by an earlier request with the same Idempotency-Key.
              schema:
                type: string
                const: 'true'
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '415':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
      parameters:
      - name: Idempotency-Key
        in: header
        required: false
        description: 'Recommended on every recorded quote. The same key from the same distributor records at most one ledger entry; a retry returns that entry with persistence.replayed: true and an Idempotent-Replayed: true header. Reusing a key for a different quote returns 409. Ignored on anonymous quotes.'
        schema:
          type: string
          pattern: ^[!-~]{1,255}$
  /api/v1/verticals:
    get:
      tags:
      - Pricing
      operationId: listVerticals
      summary: The published rating matrix
      description: Every vertical, its mandatory base layer and optional add-ons, with monthly premiums in EUR as two-decimal strings. The single source of truth a UI should render from.
      responses:
        '200':
          description: The catalogue.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Verticals'
components:
  schemas:
    Component:
      type: object
      properties:
        code:
          type: string
        label:
          type: string
        detail:
          type: string
        monthly_premium:
          $ref: '#/components/schemas/Money'
        mandatory:
          type: boolean
    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: {}
    Money:
      type: string
      pattern: ^\d+\.\d{2}$
      description: EUR, exactly two decimals, as a string. Never a float.
      examples:
      - '3.00'
    Verticals:
      type: object
      properties:
        ok:
          type: boolean
        verticals:
          type: array
          items:
            type: object
            properties:
              key:
                type: string
              label:
                type: string
              description:
                type: string
              base:
                $ref: '#/components/schemas/Component'
              addons:
                type: array
                items:
                  $ref: '#/components/schemas/Component'
    QuoteResponse:
      type: object
      properties:
        ok:
          type: boolean
        quote:
          type: object
          properties:
            quote_reference:
              type: string
              format: uuid
            active_vertical:
              type: string
            currency:
              type: string
              const: EUR
            billing_interval:
              type: string
              const: MONTHLY
            selected_components:
              type: object
              additionalProperties:
                type: boolean
            ignored_components:
              type: array
              items:
                type: string
            line_items:
              type: array
              items:
                type: object
                additionalProperties: true
            totals:
              type: object
              properties:
                base_layer_premium:
                  $ref: '#/components/schemas/Money'
                add_on_premium:
                  $ref: '#/components/schemas/Money'
                total_monthly_premium:
                  $ref: '#/components/schemas/Money'
                indicative_annual_premium:
                  $ref: '#/components/schemas/Money'
                active_add_on_count:
                  type: integer
        attribution:
          type: object
          properties:
            recorded:
              type: boolean
              description: True only when the ledger accepted the entry.
            mode:
              type: string
              enum:
              - ANONYMOUS
              - ATTRIBUTED
            distributor:
              type: string
            environment:
              type: string
              enum:
              - sandbox
              - production
            note:
              type: string
        persistence:
          type: object
          properties:
            attempted:
              type: boolean
            persisted:
              type: boolean
            record_id:
              type: string
            seal:
              type: object
              properties:
                chain_index:
                  type: integer
                row_hash:
                  type: string
                prev_hash:
                  type: string
            detail:
              type: string
            replayed:
              type: boolean
              description: True when an earlier request with the same Idempotency-Key recorded this entry; nothing new was written.
            idempotency_key:
              type: string
        compliance:
          type: object
          additionalProperties: true
        engine:
          type: object
          additionalProperties: true
        generated_at:
          type: string
          format: date-time
    QuoteRequest:
      type: object
      required:
      - active_vertical
      properties:
        active_vertical:
          type: string
          enum:
          - mobility
          - digital_nomad
          - urban_rental
          - micro_travel
        selected_components:
          type: object
          additionalProperties:
            type: boolean
          description: Add-on code to boolean. Unknown codes are reported in `ignored_components`, never priced. Omit for base layer only.
  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