channels
whatsapp
whatsapp-service-management
whatsapp-sender-management

Upload WhatsApp sender public key

Uploads a public key for WhatsApp encryption. The public key enables end-to-end encrypted data exchange with WhatsApp, such as in WhatsApp Flows. Previous keys are replaced when new ones are uploaded using this endpoint.

post/whatsapp/1/senders/{sender}/public-key

Request

  • Base URL
    https://api.infobip.com (the document declares no server; this is the origin it was published from)
  • Auth
    • OAuth 2
      Client credentials
      Token URL: https://api.infobip.com/auth/1/oauth2/token
    • or API key in header Authorization
    • or API key in header Authorization
    • or HTTP basic

Path parameters

senderstring required

Registered WhatsApp sender number. Must be in international format.

Request body multipart/form-data

filestring binary required

Multipart form data containing the public key file. The file must be in PEM format with a 2048-bit RSA key and include the appropriate header and footer lines. Example file content: `----BEGIN PUBLIC KEY-----\n MIIBIjAN... \n ----END PUBLIC

Response

Public key uploaded successfully.

Changes

No recorded changes to this operation across all 1 revision of this API.