Create a template
https://wa.dovemesh.com/v3/{waba_id}/message_templatesSubmits a new template for WhatsApp to review. It's usually PENDING, and the decision arrives on your webhook as a template status event, usually within minutes. WhatsApp can also approve or reject a template straight away, so check status in the response. Authentication templates are often APPROVED at once.
Pick a kind of template under Examples. Templates with an image, video or document header need a sample file first.
Authorization
apiKey Your DoveMesh API key, from the dashboard's Developers page.
In: header
Path Parameters
ID of your WhatsApp Business Account (whatsapp_business_account_id in List your phone numbers).
Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://wa.dovemesh.com/v3/105954558954427/message_templates" \ -H "apikey: dm_live_..." \ -H "Content-Type: application/json" \ -d '{ "name": "order_shipped", "language": "en", "category": "UTILITY", "components": [ { "type": "HEADER", "format": "TEXT", "text": "Order {{1}} shipped", "example": { "header_text": [ "#1042" ] } }, { "type": "BODY", "text": "Hi {{1}}, your order {{2}} is on its way and should arrive by {{3}}.", "example": { "body_text": [ [ "Priya", "#1042", "Friday" ] ] } }, { "type": "FOOTER", "text": "Reply STOP to opt out" } ] }'{ "id": "594425479261596", "status": "PENDING", "category": "UTILITY"}