H33 API Documentation
The complete post-quantum authentication API. FHE biometrics, ZK proofs, quantum signatures, blockchain attestation. All in one platform, at 220 microseconds.
Quick Start
Get started in 3 steps
Authentication
All API requests require authentication using your API key in the Authorization header.
h33_test_* - Test keys, sandbox environment (no credits consumed)
Key Management
API keys can be created, rotated, and revoked from your dashboard. We recommend:
- Using different keys for different environments
- Rotating keys every 90 days
- Never committing keys to version control
Pricing & Credits
H33 uses a credit-based pricing model. Buy credits, use them for any operation. Credits never expire. 20% off with annual prepay.
Credit Costs by Operation
Choose your speed tier based on latency requirements:
| Operation | Turbo (220µs) | Standard (633µs) | Precision (2.1ms) |
|---|---|---|---|
| Full Stack Auth | 15 | 8 | 12 |
| Biometric Verify | 3 | 1.5 | 2 |
| Biometric Enroll | 5 | 3 | 4 |
| FHE Encrypt/Decrypt | 3 | 1.5 | 2 |
| ZK Proof Generate | 8 | 5 | 6 |
| ZK Proof Verify | 2 | 1 | 1.5 |
| Quantum Sign/Verify | 3 | 2 | 2 |
| Blockchain Tx | 1 | 1 | 1 |
KYC / Identity (Fixed Pricing)
| Service | Price | Includes |
|---|---|---|
| KYC Basic + SBT | $49 | ID, Selfie, Liveness, Soulbound NFT |
| KYC Enhanced + SBT | $79 | + Proof of Address verification |
| AML/PEP Screening | $19 | Sanctions, PEP, Adverse Media |
| Full Bundle | $99 | KYC + AML + Soulbound NFT |
Full Stack Auth
Complete post-quantum authentication in a single call. Combines FHE-encrypted biometric matching, zero-knowledge proof generation, quantum-resistant signature, and blockchain attestation.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
userId |
string | Required | Unique identifier for the user |
biometric |
object | Required | Biometric data (face, voice, or fingerprint) |
biometric.type |
string | Required | "face" | "voice" | "fingerprint" |
biometric.data |
string | Required | Base64-encoded biometric data |
mode |
string | Optional | "turbo" (220µs) | "standard" (633µs) | "precision" (2.1ms). Default: "standard" |
zkClaims |
object | Optional | Additional claims to include in ZK proof |
blockchain |
object | Optional | Blockchain attestation options |
Example Request
Example Response
Biometric Enroll
Enroll a new biometric template. The template is encrypted using FHE before storage - we never see or store raw biometric data.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
userId |
string | Required | Unique identifier for the user |
biometric |
object | Required | Biometric data to enroll |
biometric.type |
string | Required | "face" | "voice" | "fingerprint" |
biometric.data |
string | Required | Base64-encoded biometric data |
mode |
string | Optional | "turbo" | "standard" | "precision" |
Biometric Verify
Verify a biometric sample against an enrolled template. Matching is performed entirely on encrypted data using FHE - the raw biometric never leaves your device.
FHE Encryption
Encrypt data using Fully Homomorphic Encryption. Encrypted data can be processed without decryption, enabling privacy-preserving computation.
FHE Modes
| Mode | Latency | Parameter N | Use Case |
|---|---|---|---|
| Turbo | 220µs | N=1,024 | Real-time auth, high throughput |
| Standard | 633µs | N=4,096 | General purpose (default) |
| Precision | 2.1ms | N=16,384 | Maximum security, complex ops |
FHE Compute
Perform computations on encrypted data. Supports addition, multiplication, comparison, and custom operations without ever decrypting.
Zero-Knowledge Proofs
Generate a zero-knowledge proof. Prove statements about your data without revealing the data itself. Supports Groth16, PLONK, and custom R1CS circuits.
Supported Proof Types
| Scheme | Proof Size | Verify Time | Notes |
|---|---|---|---|
| KZG (Groth16) | ~200 bytes | ~3ms | Smallest proofs, trusted setup |
| IPA (PLONK) | ~1KB | ~10ms | No trusted setup |
| FRI (STARK) | ~50KB | ~50ms | Post-quantum safe |
Verify a zero-knowledge proof. Returns true if the proof is valid for the given public inputs and verification key.
Quantum Signatures
NIST FIPS 203/204 compliant post-quantum digital signatures. Resistant to attacks from both classical and quantum computers.
CRYSTALS-Kyber - Key encapsulation (FIPS 203)
FALCON - Compact signatures
Sign data using a quantum-resistant algorithm. Default: Dilithium3 (NIST security level 3).
Blockchain Attestation
Create an immutable attestation record on Solana. Perfect for audit trails, compliance records, and tamper-proof logging.
Mint a Soulbound Token (non-transferable NFT) representing verified identity credentials. Included with KYC packages.
KYC Verification
Complete KYC verification with FHE-encrypted biometrics, ZK proofs, and blockchain attestation. Includes Soulbound NFT minting.
Pricing
| Package | Price | Includes |
|---|---|---|
| KYC Basic + SBT | $49 | ID + Selfie + Liveness + Soulbound NFT |
| KYC Enhanced + SBT | $79 | Basic + Proof of Address |
| Full Bundle | $99 | Enhanced KYC + AML + Soulbound NFT |
Continuous Authentication
Real-time continuous authentication using multi-modal behavioral biometrics. LSTM-based temporal modeling of keystroke, mouse, face, and voice patterns.
Invisible Authentication
Zero-transmission authentication. No codes displayed on screen. Authentication keys are hardware-secured and never transmitted over the network.
Estate Fraud Detection
Detect behavioral anomalies indicating potential estate fraud. Analyzes shifts from deceased user baselines and detects beneficiary collusion patterns. Generates court-admissible evidence packages.
Error Codes
All API errors return a consistent JSON structure with an error code and message.
| Code | HTTP | Description |
|---|---|---|
INVALID_API_KEY |
401 | API key is missing, invalid, or revoked |
INSUFFICIENT_CREDITS |
402 | Not enough credits for the operation |
RATE_LIMITED |
429 | Too many requests, slow down |
INVALID_BIOMETRIC |
400 | Biometric data is malformed or unreadable |
USER_NOT_ENROLLED |
404 | No biometric template found for user |
VERIFICATION_FAILED |
200 | Biometric match failed (not an error) |
CIRCUIT_NOT_FOUND |
404 | ZK circuit ID not found |
PROOF_INVALID |
400 | ZK proof verification failed |
BLOCKCHAIN_ERROR |
502 | Blockchain network error |
Rate Limits
Rate limits vary by tier and are applied per API key.
| Tier | Requests/sec | Requests/day | Burst |
|---|---|---|---|
| Trial | 10 | 1,000 | 20 |
| Starter | 50 | 50,000 | 100 |
| Growth | 100 | 100,000 | 200 |
| Business | 500 | 500,000 | 1,000 |
| Scale+ | 1,000 | Unlimited | 2,000 |
X-RateLimit-Limit - Maximum requests allowedX-RateLimit-Remaining - Requests remainingX-RateLimit-Reset - Unix timestamp when limit resets
SDKs & Libraries
Official client libraries with TypeScript definitions, async/await support, and automatic retries.
SDK Features
- Full TypeScript definitions
- Automatic retry with exponential backoff
- Request/response logging
- Webhook signature verification
- Secure enclave integration (mobile)
- Biometric capture helpers