Set up the encryption key
POST
/flows/{phone_number_id}/set_whatsapp_business_encryptionSets up the encryption key that endpoint Flows use for this number. Do it once per number, then retrieve the private key for your server. No request body is needed.
Authorization
apiKey apikey<token>
Your HostMentor API key, from the dashboard under Messaging → WhatsApp → API keys.
In: header
Path Parameters
phone_number_id*string
ID of your WhatsApp number, from the dashboard or List your phone numbers. It isn't the phone number itself.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://wa.hostmentor.com/v3/flows/106540352242922/set_whatsapp_business_encryption" \ -H "apikey: YOUR_API_KEY"{ "success": true}