Integrate quantum-native key generation into your applications with our RESTful API. Built for developers, designed for enterprise.
Our API provides programmatic access to Prime-Based QKD, NIST SP 800-22 validated keys, and comprehensive key management features.
Standard HTTP methods and JSON responses. Works with any programming language or framework.
API key-based authentication with scoped permissions. OAuth2 support for enterprise deployments.
Monitor usage, track key generation metrics, and access audit logs through dedicated endpoints.
Include your API key in the request header:
curl -X POST https://api.qbitshield.com/api/qkd/generate \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"security_level": 256,
"keyType": "quantum"
}'Create and manage API keys from your dashboard. Each key can be scoped to specific permissions and environments (development, staging, production).
Go to API Keys DashboardGenerate a quantum key with configurable security level and NIST SP 800-22 validation.
/api/qkd/generate{
"projectId": "uuid",
"apiKeyId": "uuid",
"keyType": "quantum",
"security_level": 256,
"metadata": {
"environment": "production"
}
}{
"success": true,
"data": {
"key_row": {
"key_id": 123456,
"key": "base64_encoded_key",
"security_level": 256,
"timestamp": "2025-01-24T...",
"certification_status": "VALIDATED",
"compliance_level": "NIST_SP_800_90B"
},
"metrics": {
"latency_ms": 146.45,
"entropy_bits": 256,
"nist_status": "PASSED",
"tests_passed": 15,
"total_tests": 15
},
"mode": "simulated"
}
}Create, list, and manage API keys programmatically.
/api/api-keys/generateCreate a new API key with specified scopes and permissions.
/api/api-keys/[id]/revokeRevoke an API key immediately.
Access real-time metrics and usage statistics.
/api/analytics/usageRetrieve usage statistics and key generation metrics.
/api/analytics/qkdGet QKD-specific analytics and performance data.
/api/analytics/realtimeAccess real-time system metrics and status.
Monitor API availability and system health.
/api/healthBasic health check endpoint.
/api/statusComprehensive system status including quantum hardware connectivity.
/api/quantum-healthCheck connectivity to IBM Quantum, IonQ, and other hardware backends.
async function generateQuantumKey() {
const response = await fetch(
'https://api.qbitshield.com/api/qkd/generate',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({
security_level: 256,
keyType: 'quantum'
})
}
);
const data = await response.json();
return data.data.key_row.key;
}import requests
def generate_quantum_key():
response = requests.post(
'https://api.qbitshield.com/api/qkd/generate',
headers={
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
json={
'security_level': 256,
'keyType': 'quantum'
}
)
return response.json()['data']['key_row']['key']All generated keys pass 15/15 NIST statistical tests for randomness.
Median generation latency <0.6ms in internal tests.
Support for 128, 256, and custom security levels.
Complete audit trail for compliance and security monitoring.
Configurable rate limits based on your subscription tier.
Receive real-time notifications for key generation events.
Access the complete API documentation, SDK downloads, and integration guides.