WhatsApp Encrypted Messages API
Payload encryption provides an additional layer of security on top of existing standard TLS/SSL that secures communication between Cloud API and businesses. When enabled, all message requests and message echoes webhooks will undergo encryption using JWE (JSON Web Encryption) format. ## Key Features - **Additional Security Layer**: Adds payload-level encryption on top of standard TLS/SSL - **JWE Format**: Uses JSON Web Encryption standard for encrypting message payloads - **Selective Encryption**: Only successful responses are encrypted; errors remain unencrypted - **Standard Compatibility**: Encrypted payloads contain the same structure as `/messages` endpoint - **Phone-Number Level**: Encryption is configured per phone number within a WABA ## Setup Requirements 1. **Enable Payload Encryption**: Use `POST //settings` to enable encryption 2. **RSA Key Pair**: Generate and provide a 2048-bit RSA public key (base64 encoded) 3. **Algorithm Support**: Multiple algorithms supported for content and key encryption 4. **Access Token**: User Access Token with `whatsapp_business_messaging` permission ## Supported Algorithms - **Content Encryption**: A128GCM, A256GCM, A128CBC-HS256, A192CBC-HS384, A256CBC-HS512 - **Key Encryption**: RSA1_5, RSA-OAEP - **WhatsApp Standard**: A256GCM + RSA-OAEP for responses and webhooks