List templates
List all message templates for the WhatsApp Business Account (WABA) associated with the given account. Templates are fetched directly from the WhatsApp Cloud API.
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
WhatsApp social account ID
Response Body
application/json
application/json
curl -X GET "https://zernio.com/api/v1/whatsapp/templates?accountId=string"{
"success": true,
"templates": [
{
"id": "string",
"name": "string",
"status": "APPROVED",
"category": "AUTHENTICATION",
"language": "string",
"components": [
{}
]
}
]
}{
"error": "Unauthorized"
}Delete group DELETE
Delete a contact group. This removes the group from all contacts but does not delete the contacts themselves.
Create template POST
Create a new message template. Supports two modes: **Custom template:** Provide `components` with your own content. Submitted to Meta for review (can take up to 24h). **Library template:** Provide `library_template_name` instead of `components` to use a pre-built template from Meta's template library. Library templates are **pre-approved** (no review wait). You can optionally customize parameters and buttons via `library_template_body_inputs` and `library_template_button_inputs`. Browse available library templates at: https://business.facebook.com/wa/manage/message-templates/