---
title: "Proof that an earlier head is a prefix of a later one"
method: GET
path: "/api/v2/evidence/consistency"
tags: ["Evidence"]
---

# Proof that an earlier head is a prefix of a later one

`GET /api/v2/evidence/consistency`

## Request

- Base URL: `https://api.riskrouter.eu`
- URL: `https://api.riskrouter.eu/api/v2/evidence/consistency`
- Auth: none declared

RFC 9162 consistency proof. Check it against the root in the head you saved for first, never a root the service supplies.

## Query parameters

- `first` integer, required
- `second` integer

## Response `200`

The proof.

- object
  - `format` 'riskrouter-evidence-consistency|v2'
  - `first` integer
  - `second` integer
  - `proof` string[]

## Other responses

- `400`: Every error carries the same envelope with a stable code.
- `413`: Every error carries the same envelope with a stable code.
- `429`: Every error carries the same envelope with a stable code.
- `502`: Every error carries the same envelope with a stable code.
- `503`: Every error carries the same envelope with a stable code.

---

[API](https://skmtc.dev/riskrouter/apis/riskrouter-api.md) · [All operations](https://skmtc.dev/riskrouter/apis/riskrouter-api/llms.txt) · [OpenAPI document](https://skmtc.dev/riskrouter/apis/riskrouter-api/revisions/5fee45dc6d1f?raw)
