cURL
curl --request POST \ --url https://api.iomnihub.ai/stable/open/whatsapp/send-template \ --header 'Content-Type: multipart/form-data' \ --form template_id=102323213 \ --form channel_id=1022 \ --form 'customer_phone=+628123456789' \ --form 'body_vars={ "1": "John Doe" }' \ --form 'button_vars={ "1": "Home" }' \ --form header_type=document \ --form 'customer_attributes={ "1": "John Doe" }' \ --form file=@example-file
{ "success": true, "data": { "status": "ongoing" } }
Sends a per-approved template message to WhatsApp (with File support)
WhatsApp Template to send
The body is of type object.
object
Successful operation
The response is of type object.