COMMON HEADERS
Authorization: Bearer <token> X-Correlation-Id: <uuid> Idempotency-Key: <uuid> X-Request-Timestamp: <RFC3339> Content-Type: application/json
REFERENCE API CONTRACT
Reference ETSI QKD 014-style and key-lease API contract published.
RESOURCE MODEL
| Method | Endpoint | Purpose |
|---|---|---|
GET | /v1/key-pools | Read pool health and site status |
POST | /v1/keys/lease | Lease a policy-approved key identifier |
POST | /v1/keys/{keyId}/consume | Record one-time key consumption |
POST | /v1/failover | Switch to approved alternate site or fallback policy |
COMMON HEADERS
Authorization: Bearer <token> X-Correlation-Id: <uuid> Idempotency-Key: <uuid> X-Request-Timestamp: <RFC3339> Content-Type: application/json
REQUEST ENVELOPE
{
"profileId": "QS-QB-2026.07",
"requestId": "5fda47cb-55c8-45a8-81a6-2dd1d1938b47",
"mode": "controlled-evaluation",
"evidenceRequired": true
}ERROR MODEL
400 — Invalid schema or unsupported profile401/403 — Authentication or policy denial409 — Idempotency or state conflict422 — Evidence or compatibility requirement not met503 — Protected dependency unavailable; fail-closed unless approved otherwiseVERSIONING
IMPLEMENTATION PATH
Validate the API contract together with the test corpus and readiness passport.