RiskRouter Ledger API

The append-only audit ledger and the material to verify it without trusting us.

GitHub OpenAPI

Operations 3

GET /api/v1/ledger/attestation Signed entry count and head hash #
GET /api/v1/ledger/export Your entries, the chain skeleton, and the signed head #
GET /api/v1/ledger/pubkey The public half of the attestation key #

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-ledger-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-ledger-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: RiskRouter Ledger 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: Ledger
  description: The append-only audit ledger and the material to verify it without trusting us.
paths:
  /api/v1/ledger/attestation:
    get:
      tags:
      - Ledger
      operationId: getAttestation
      summary: Signed entry count and head hash
      description: Save the whole response. The signature covers `riskrouter-ledger-attestation|v1|as_of|entries|head_hash`, so none of the three can be changed afterwards without it failing.
      responses:
        '200':
          description: The current head, signed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Attestation'
        '502':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
  /api/v1/ledger/export:
    get:
      tags:
      - Ledger
      operationId: exportLedger
      summary: Your entries, the chain skeleton, and the signed head
      description: 'Everything needed to verify offline, forever: your own entries in full, (chain_index, row_hash, prev_hash) for every entry in the ledger, and the signed attestation. Check it at https://riskrouter.eu/verify#check or with the offline verifier.'
      security:
      - bearerKey: []
      - headerKey: []
      responses:
        '200':
          description: The export.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LedgerExport'
        '401':
          $ref: '#/components/responses/Error'
        '413':
          $ref: '#/components/responses/Error'
        '429':
          $ref: '#/components/responses/Error'
        '503':
          $ref: '#/components/responses/Error'
  /api/v1/ledger/pubkey:
    get:
      tags:
      - Ledger
      operationId: getPublicKey
      summary: The public half of the attestation key
      description: Convenience only. Verify against the copy in the public repository (anchors/signing-key.json) or one you saved earlier, not a key handed to you at the moment you check.
      responses:
        '200':
          description: The key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicKey'
        '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: {}
    Attestation:
      type: object
      properties:
        ok:
          type: boolean
        attestation:
          type: object
          properties:
            as_of:
              type: string
              format: date-time
            entries:
              type: integer
            genesis:
              type: string
            algorithm:
              type: string
              const: sha256
            canonical:
              type: string
            head_hash:
              type: string
              pattern: ^[0-9a-f]{64}$
        signature:
          type: object
          properties:
            algorithm:
              type: string
              const: ECDSA_P256_SHA256
            key_id:
              type: string
            signed_payload:
              type: string
            signature:
              type: string
              contentEncoding: base64
        signature_unavailable:
          type: string
          description: Present instead of `signature` when no signing key is bound. Never a fabricated signature.
        generated_at:
          type: string
          format: date-time
    LedgerExport:
      type: object
      properties:
        format:
          type: string
          const: riskrouter-ledger-export|v1
        attestation:
          $ref: '#/components/schemas/Attestation/properties/attestation'
        signature:
          $ref: '#/components/schemas/Attestation/properties/signature'
        counts:
          type: object
          properties:
            chain:
              type: integer
            yours:
              type: integer
        skeleton:
          type: array
          items:
            type: object
            properties:
              chain_index:
                type: integer
              row_hash:
                type: string
              prev_hash:
                type: string
        entries:
          type: array
          items:
            type: object
            additionalProperties: true
    PublicKey:
      type: object
      properties:
        ok:
          type: boolean
        key_id:
          type:
          - string
          - 'null'
        algorithm:
          type: string
        public_key:
          type: object
          properties:
            kty:
              const: EC
            crv:
              const: P-256
            x:
              type: string
            y:
              type: string
        caveat:
          type: string
  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