Templates
Create, list, and delete message templates, then send them. Note that template management is rooted at theWhatsApp Business Account id (WABA id), not the phone number id — mirroring Meta.
Create a template
POST https://api.kirim.dev/v23.0/{WABA_ID}/message_templatescreate template
{
"name": "order_confirmation",
"language": "en_US",
"category": "UTILITY",
"components": [
{ "type": "BODY", "text": "Hi {{1}}, your order {{2}} is confirmed." }
]
}Newly created templates start in PENDING and must be approved by Meta before they can be sent. Supported methods on this endpoint: GET (list), POST (create), DELETE.
List templates
GET https://api.kirim.dev/v23.0/{WABA_ID}/message_templatesSend a template
Sending a template is a messages call with type: "template" against the phone number id:
send template
{
"messaging_product": "whatsapp",
"to": "62812XXXXXXX",
"type": "template",
"template": {
"name": "order_confirmation",
"language": { "code": "en_US" },
"components": [
{ "type": "body", "parameters": [
{ "type": "text", "text": "Andi" },
{ "type": "text", "text": "A-1024" }
] }
]
}
}Payload details:Template components, categories, and button types are documented in Meta's Cloud API reference →