WhatsApp Flows

Register a Flows encryption key

Changed on

Register (or replace) the RSA business public key for WhatsApp Flows endpoint encryption on the phone number. Uploading a new key replaces the previous one: only one key is active per phone number. The corresponding private key must be served by the flow's endpoint, or endpoint-backed flows (flow_action: data_exchange) will fail at runtime even though the key is registered.

post/v1/whatsapp/flows/encryption-key

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/whatsapp/flows/encryption-key
  • Auth: HTTP bearer

Request body

accountIdstring required

WhatsApp account ID

businessPublicKeystring required

RSA public key in PEM format. Rejected if it is a private key or not a valid RSA public key PEM.

Response

Encryption key registered

successboolean

Changes

    • warning

      added the new account enum value to the / response property for the response status

    • warning

      added the new account enum value to the / response property for the response status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status