curl --request POST \
--url https://{subdomain}.mihu.ai/api/v1/whatsapp/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"name": "welcome_message",
"language": "en_US",
"category": "MARKETING",
"waba_id": "123456789012345",
"components": [
{
"type": "BODY",
"text": "Welcome to our service! We're glad to have you."
}
]
}
EOF{
"success": true,
"message": "Template created successfully",
"data": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"language": "en_US",
"category": "MARKETING",
"status": "APPROVED",
"content": "<string>",
"components": [
{}
],
"template_id": "<string>",
"waba_id": "<string>",
"phone_number": "<string>",
"type": "whatsapp",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Create a new WhatsApp template
curl --request POST \
--url https://{subdomain}.mihu.ai/api/v1/whatsapp/templates \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"name": "welcome_message",
"language": "en_US",
"category": "MARKETING",
"waba_id": "123456789012345",
"components": [
{
"type": "BODY",
"text": "Welcome to our service! We're glad to have you."
}
]
}
EOF{
"success": true,
"message": "Template created successfully",
"data": {
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"language": "en_US",
"category": "MARKETING",
"status": "APPROVED",
"content": "<string>",
"components": [
{}
],
"template_id": "<string>",
"waba_id": "<string>",
"phone_number": "<string>",
"type": "whatsapp",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
}Authorizations
Use a Bearer token to access these API endpoints. Example: "Bearer {your-token}"
Body
Template name. Must be lowercase snake_case, unique per (name, language) within the WABA. 1-512 chars.
"order_confirmation"
ISO language tag accepted by Meta (en_US, tr, es_ES, pt_BR, etc.).
"en_US"
Meta category. Determines pricing and approval requirements.
MARKETING, UTILITY, AUTHENTICATION "UTILITY"
The WhatsApp Business Account id this template belongs to. The template will be submitted under this WABA.
"123456789012345"
Meta components array. Must contain exactly one BODY. May contain at most one HEADER (text/image/video/document), one FOOTER, and one BUTTONS group (max 10 buttons). Each item is a WaComponent — see oneOf variants for the exact shape required per type.
1TEXT header. Up to 60 chars. May contain at most one {{1}} placeholder; if present, example.header_text is required.
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
- Option 7
Show child attributes
Show child attributes
Response
Template submitted to Meta and stored locally. data.status is typically PENDING.
