Encryption
Endpoints for WhatsApp Business encryption features
Retrieve the current business public key and its signature verification status. The public key is used for encrypting message payloads and data channel requests.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
Comma-separated list of fields to include. Available fields: business_public_key, business_public_key_signature_status
Business encryption public key retrieved successfully
Response containing business encryption public key information wrapped in a data array
Bad request - Invalid parameters or malformed request
Unauthorized - Invalid or missing API key
Forbidden - Insufficient permissions to access this phone number
Not found - Phone Number ID does not exist or is not accessible
Too many requests - Rate limit exceeded
Internal server error
GET /whatsapp_business_encryption HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Accept: */*
{
"data": [
{
"business_public_key": "-----BEGIN PUBLIC KEY-----\nAAA...\n-----END PUBLIC KEY-----",
"business_public_key_signature_status": "VALID"
}
]
}Upload and configure a business public key for message payload encryption. The key must be a valid RSA public key in PEM format. Only one active public key per phone number at a time; previous keys are replaced when a new one is uploaded.
API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.
The business public key in PEM format to be uploaded and signed
Public key successfully uploaded and signed
Response after successfully uploading and configuring the business encryption public key
Indicates whether the public key was successfully uploaded and signed
trueBad request - Invalid key format or malformed request
Unauthorized - Invalid or missing API key
Forbidden - Insufficient permissions to modify encryption settings
Not found - Phone Number ID does not exist or is not accessible
Too many requests - Rate limit exceeded
Internal server error
POST /whatsapp_business_encryption HTTP/1.1
Host: waba-v2.360dialog.io
D360-API-KEY: YOUR_API_KEY
Content-Type: multipart/form-data
Accept: */*
Content-Length: 30
{
"business_public_key": "text"
}{
"success": true
}Last updated
Was this helpful?