Authentication
QuantumSafe uses API keys for authentication. All API requests must include your key in theAuthorization header.
API Key Types
There are two types of API keys, each with different permissions:| Key Type | Prefix | Permissions | Usage |
|---|---|---|---|
| Publishable | qs_pub_ | Scanner endpoints only | Frontend / client-side |
| Secret | qs_sec_ | All endpoints | Server-side only |
Environment Prefixes
Each key type has environment variants:| Environment | Key Pattern | Base URL |
|---|---|---|
| Testnet | qs_pub_test_* / qs_sec_test_* | https://api.testnet.quantumsafe.io/v1 |
| Mainnet | qs_pub_live_* / qs_sec_live_* | https://api.quantumsafe.io/v1 |
Testnet keys work against test infrastructure with relaxed rate limits. Use them during development.
Publishable Keys
Publishable keys (qs_pub_) are safe to include in frontend applications. They can only access:
POST /v1/scan/wallet— Scan wallet addresses for quantum vulnerability
Secret Keys
Secret keys (qs_sec_) have full API access and must only be used server-side.
Creating API Keys
- Sign up at quantumsafe.io/signup
- Navigate to the Dashboard
- Go to Settings > API Keys
- Click Create Key and select the type (Publishable or Secret)
Key Rotation
Rotate your API keys regularly. When you create a new key, the old key remains active for 24 hours to allow for a graceful transition.If you suspect a key has been compromised, delete it immediately via the dashboard or
DELETE /v1/auth/api-keys/{id}. Deletion is instant.