For the complete documentation index, see llms.txt. This page is also available as Markdown.

Encryption

Endpoints for WhatsApp Business encryption features

Get Business Encryption Public Key

get

Retrieve the current business public key and its signature verification status. The public key is used for encrypting message payloads and data channel requests.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Query parameters
fieldsstringOptional

Comma-separated list of fields to include. Available fields: business_public_key, business_public_key_signature_status

Responses
200

Business encryption public key retrieved successfully

application/json

Response containing business encryption public key information wrapped in a data array

get/whatsapp_business_encryption
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"
    }
  ]
}

Set Business Encryption Public Key

post

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.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Body
business_public_keystringRequired

The business public key in PEM format to be uploaded and signed

Responses
200

Public key successfully uploaded and signed

application/json

Response after successfully uploading and configuring the business encryption public key

successbooleanOptional

Indicates whether the public key was successfully uploaded and signed

Example: true
post/whatsapp_business_encryption
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?