Encrypted API Requests & Responses
Our APIs support end-to-end encryption for sensitive data and file uploads using JWE (JSON Web Encryption) RFC 7516. This ensures that even over HTTPS, payloads remain confidential and tamper-proof.Key Details
- Protected (
protected): Base64URL-encoded JSON object containing the algorithm (alg) and encryption method (enc). - Algorithm (
alg): Currentlydir(direct mode, uses a shared symmetric key for encryption); other algorithms may be supported in the future - Encryption Method (
enc): CurrentlyA128CBC-HS256(AES-128 CBC with PKCS7 padding); other methods may be supported in the future - IV: Random per request, Base64URL-encoded initialization vector
- Ciphertext: Base64URL-encoded encrypted content
- Tag: Authentication tag for integrity, Base64URL-encoded
- Key (
kid): Identifier for the shared AES key
JSON API Requests
For APIs usingContent-Type: application/json, encrypt the payload and send as JWE JSON serialization:
Example cURL Request
File Upload APIs
Without encryptionFor tasks such as
PII or SRP, make sure to include the appropriate query parameter as described in the Upload API.
