Zum Hauptinhalt springen
Official Client SDKs

Build with QuantumAPI

Production-ready SDKs for TypeScript, Python, .NET, and Rust. Integrate post-quantum cryptography into your app in minutes.

Quick Install

All SDKs are available on their respective package registries and require no native dependencies.

TypeScript / JavaScriptGA
npm install @quantumapi/sdk
PythonGA
pip install quantumapi
.NET / C#GA
dotnet add package QuantumAPI.Client
RustGA
cargo add quantumapi

Need a different runtime? Full SDK reference

See It in Action

Real TypeScript SDK code. Copy-paste ready — no setup required.

1. Install

terminal
npm install @quantumapi/sdk
>+ @quantumapi/sdk@1.0.0
>added 3 packages in 1.2s

2. Authenticate

app.ts
import { QuantumAPIClient } from '@quantumapi/sdk'
const client = new QuantumAPIClient({
apiKey: process.env.QUANTUMAPI_KEY!,
})
>✓ Client ready — quantum-safe connection

3. Encrypt & Decrypt

encrypt.ts
const encrypted = await client.encryption.encrypt({
plaintext: 'my secret data',
})
>{ ciphertext: "UsBU+Q4k9x...", algorithm: "ML-KEM-768" }
const result = await client.encryption.decrypt({
encryptedPayload: encrypted.encryptedPayload,
})
>{ plaintext: 'my secret data' }

4. Manage Secrets

secrets.ts
await client.secrets.create({
name: 'DATABASE_URL',
value: 'postgres://user:pass@host/db',
})
>✓ Secret stored with ML-KEM-768 encryption
const secret = await client.secrets.get(id)
>{ name: 'DATABASE_URL', version: 1, status: 'active' }

5. Key Management

keys.ts
const key = await client.keys.generate({
name: 'prod-signing-key',
algorithm: 'ML-DSA-65',
purpose: 'signing',
})
>{ id: "c5e9663e-...", algorithm: "ML-DSA-65", status: "active" }
await client.keys.rotate(key.id)
>✓ Key rotated to version 2

6. Error Handling

error-handling.ts
import { AuthenticationError, NotFoundError } from ...
try {
await client.secrets.get('secret-id')
} catch (e) {
if (e instanceof NotFoundError)
console.log('Secret not found:', e.message)
}
>Secret not found: Resource not found

Why Use the SDK?

Post-Quantum Cryptography

ML-KEM-768 and ML-DSA-65 are the default — NIST-standardized quantum-safe algorithms.

Fully Typed

Complete TypeScript types for all requests, responses, and errors. Your IDE will guide you.

Encrypt & Decrypt

One-liner encryption and decryption. Automatic key selection, encoding, and payload handling.

Key Lifecycle

Generate, rotate, enable, disable, and export cryptographic keys. Full BYOK support.

Secret Vault

Create, version, rollback, and share secrets. AI-powered security insights included.

Built-in Retry & Timeout

Automatic exponential backoff, configurable timeouts, and rate-limit handling out of the box.

Ready to Integrate?

Full documentation, runnable examples, and API reference — everything you need to ship.

Build with QuantumAPI | QuantumAPI