API Reference

Endpoint, request, response, error codes, and provenance schema for the live service at api.quantumsecuregateway.com.

Endpoints

Entropy

POST
/v1/entropy

Hardware-derived entropy with signed provenance per draw.

Reference

Verify

POST
/v1/verify

Verify entropy proofs against recorded provenance. Verified and Enterprise tiers only.

Audit Lookup

GET
/v1/audit/:id

Retrieve a single provenance record by ID. Verified and Enterprise tiers only.

Health Check

GET
/health

Service availability and status. No authentication required.

Request Access

POST
/auth/request-access

Submit a sandbox access request with workload details.

Provenance Schema (Summary)

The full schema reference ships with the API client SDKs. Field summary:

FieldTypeDescription
provenance_idstringRecord key (e.g. prov_2026_06_23_abc123)
issued_atstringISO 8601 timestamp
api_key_idstringTruncated key identifier
source_idstringOpaque backend identifier
source_classenumhardware-derived-premium | conditioned-archive-derived | hardware-derived | csprng-fallback
entropy_scorefloat0 to 1, admission threshold ≥ 0.99
size_bytesintNumber of entropy bytes drawn
entropy_hashstringSHA-256 of the entropy payload, base64-prefixed
key_exchangestringHybrid KEM (currently X25519+ML-KEM-1024)
health_check.rct_passedboolSP 800-90B RCT result
health_check.apt_passedboolSP 800-90B APT result
fallback.is_fallbackbooltrue when CSPRNG fallback engaged
fallback.reasonstring | nullReason code (see Entropy API)
fallback.original_sourcestring | nullSource that would have been served
prev_hashstringHash of the prior record in the chain
signaturestringML-DSA-65 signature over the payload

Billing Model

Draws are billed per unit. A unit weight is computed from size_bytes and the draw's source class:

Source ClassUnit WeightBilling Multiplier
hardware-derived-premium1.0×Standard rate per tier
conditioned-archive-derived1.0×Standard rate per tier
hardware-derived1.0×Standard rate per tier
csprng-fallback0.25×Discounted — 25% of standard rate

Size weight: each draw is billed at ceil(size_bytes / 32) base units. A 32-byte draw is 1 unit; a 256-byte draw is 8 units.

Overage: when monthly usage exceeds the included units, additional draws are billed at the tier's published overage rate. See Pricing for tier breakdown.

Authentication

Authenticated endpoints accept a bearer token in the Authorization header:

Authorization: Bearer qsg_live_…

API keys are scoped to a single tier and a single billing account. Tier upgrades do not invalidate existing keys; new keys are issued and old keys remain valid until rotation.

For mTLS with customer-managed certificates, contact info@quantumsecuregateway.com.

Get started

Sandbox keys provisioned within 24–48 hours. Full response shape, full audit chain.