Statement signing key: verify receipts yourself

Fetch the Ed25519 public key behind monthly statements and per-request model receipts as a JWK, without a key, and check any signature in your own code.

Checked 2026-11-22

·API reference·Models

Monthly statements and per-request model receipts carry an Ed25519 signature, and GET https://api.uplinkswitch.com/v1/statements/public-key publishes the public key that checks them. The route needs no API key, allows requests from any origin, and its response is cached for an hour.

Response

FieldNotes
key_idThe RFC 7638 thumbprint of the live key's JWK, and so the same string as the JWK's kid.
algEd25519.
jwkThe public key itself: kty OKP, crv Ed25519, x, kid, use sig and alg EdDSA. EdDSA, the JOSE algorithm name, appears only inside this object.
verifyA one-line reminder of the check: an Ed25519 signature, base64url-encoded, over the UTF-8 bytes of a statement's or receipt's payload string.

Checking a signature

  1. Read the key_id printed on the statement or receipt.
  2. Fetch this route and confirm its key_id is identical.
  3. Decode the base64url signature and verify it against the exact payload string, as UTF-8 bytes, with the JWK in any Ed25519 library or in Web Crypto.

A statement's signed payload includes a usage_csv object: the column names, the row count and the SHA-256, in hex, of the statement's CSV file. Hash the CSV you downloaded beside the statement and compare, and that one signature covers the CSV too.

Status codes

  • 200: the key.
  • 503 not_configured: statement signing is not set up, so there is no key to hand out.

Example

bash
curl https://api.uplinkswitch.com/v1/statements/public-key

To check without writing code, the statement verifier uses this same key inside your browser: give it a statement (with its CSV, if you have it) or a receipt, and nothing leaves the page.

Questions and answers

No. Anyone may read it, from any origin, and a response can be reused from cache for up to an hour.

The route serves only the live key. A new key has a new thumbprint, so its key_id changes too; when a document names a key_id other than the live one, this route cannot check it, whether it predates a rotation or the id is simply wrong. Compare against the id printed on each document instead of hard-coding one, and keep any JWK you will need to re-check older documents.

Monthly statements, the CSV each statement covers (through the hash inside its payload), and the per-request model receipts.
Join on Telegram
Help