Docs / API reference
Statement signing key
Every monthly statement, and the receipt that rides on each model request, carries a signature; this route hands out the matching public half so you can check one yourself. GET /v1/statements/public-key needs no key, replies to requests from any origin, and sits in cache for an hour, at https://api.pentestllm.ai/v1/statements/public-key.
What it returns
| Field | Notes |
|---|---|
key_id | The key's identifier, the RFC 7638 thumbprint of the JWK. |
alg | The signing algorithm, Ed25519. |
jwk | The public JSON Web Key: an OKP key on the Ed25519 curve with its x coordinate, alongside kid, a use of sig and an alg of EdDSA. |
verify | A short note on how to check a signature: base64url Ed25519 over the UTF-8 bytes of the payload string. |
Each statement quotes this same key_id, so the practice is: retrieve the key a single time, confirm the identifier matches, and then test the statement’s signature with whatever Ed25519 code you reach for. The signed payload inside a statement additionally embeds the SHA-256 of its accompanying CSV: hash the CSV you downloaded and compare it with that digest, and the one signature then accounts for both files together. If signing has not been configured on the gateway, expect 503 not_configured.
Example
curl https://api.pentestllm.ai/v1/statements/public-keyThe in-page verifier at statement verify uses exactly this key to validate a statement, its CSV, or one response receipt entirely in the browser with Web Crypto, with no upload and no account. The route documented here is for reproducing that validation inside your own software.
Questions
Is a key needed to read it?
No. It answers unauthenticated from any origin and is cacheable for an hour, because a signing key’s public half is meant to be fetched by whoever wants to confirm a signature.
How do I know it is the right key?
Both a statement and a receipt state a key_id. Match that value to the identifier returned here, which is the JWK thumbprint defined by RFC 7638, before you place any trust in a signature. A new key would carry a new thumbprint and so a new key_id, so go by the key_id the document names rather than pinning one key in your code.
What can it verify?
Three kinds of artifact: a monthly statement, the CSV that accompanies it (the SHA-256 of that CSV sits in the statement’s signed payload, so hashing your copy and matching it lets one signature answer for both), and the receipt on any individual model request. Once the JWK is loaded, any Ed25519 implementation handles the check.
Read next
- MCP servers
- Log export
- Invoices
- Billing details
- Keys and scopes
- Usage and signed receipts
- Spend limits and balance
- Redaction and guardrails
- Sessions
- Embeddings, rerank and moderation
- Batch files
- Batches
- Status and proof feeds
- Count tokens
- Usage by app
- App sign-in keys
- Webhook deliveries
- Docs: connect in two minutes
- Verify a statement