/api/v1/compliance/ledger-public-keyEvidence-ledger Ed25519 public key (unauthenticated trust anchor)
Publishes the PUBLIC half of the evidence-ledger Ed25519 signing key — the trust anchor an auditor pins out-of-band to verify exported evidence offline, via `evalguard verify <export> --public-key` or the `@evalguard/core/verify` library. Unauthenticated by design: a public key is public, and an auditor verifying an export must be able to fetch the anchor without holding a credential for the organization being audited. The private half never leaves the server; only the SPKI public key and its `keyId` are returned. Fail-closed: when ledger signing is not configured this returns 503 LEDGER_KEY_UNAVAILABLE rather than an empty or placeholder key. Cached for 1h; a redeploy invalidates. Format and the full verification algorithm: docs/compliance/evidence-verification-spec.md Authentication: none. This is a public endpoint and no credential is read. The empty `security` is a deliberate statement rather than an omission — nothing on this path resolves a caller, so no API-key scope is evaluated and an `eg_` key sent anyway is ignored.
Authentication
Public endpoint. No credential is read — send the request without an Authorization header. This is a deliberate statement, not a missing one.
Response
200 example
{
"success": true
}All status codes
Code samples
cURL
curl -X GET \ https://evalguard.ai/api/v1/compliance/ledger-public-key \ -H "Authorization: Bearer $EVALGUARD_API_KEY"
TypeScript
// The TypeScript SDK (@evalguard/sdk) exposes TYPED methods — runEval,
// getEval, runSecurityScan, checkFirewall, … — not a generic request().
// For an arbitrary endpoint, call it directly:
const res = await fetch("https://evalguard.ai/api/v1/compliance/ledger-public-key", {
method: "GET",
headers: { Authorization: `Bearer ${process.env.EVALGUARD_API_KEY}` },
});
console.log(res.status, await res.json());Python
# The Python SDK (pip install evalguardai) exposes TYPED methods on
# EvalGuardClient — run_eval, get_eval, … — not a generic request().
# For an arbitrary endpoint, call it directly:
import os
import requests
headers = {"Authorization": f"Bearer {os.environ['EVALGUARD_API_KEY']}"}
response = requests.request("GET", "https://evalguard.ai/api/v1/compliance/ledger-public-key", headers=headers)
print(response.status_code, response.json())Go
package main
import (
"context"
"fmt"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequestWithContext(context.Background(), "GET", "https://evalguard.ai/api/v1/compliance/ledger-public-key", nil)
req.Header.Set("Authorization", "Bearer "+os.Getenv("EVALGUARD_API_KEY"))
resp, err := http.DefaultClient.Do(req)
if err != nil { panic(err) }
defer resp.Body.Close()
fmt.Println(resp.Status)
}