Description
This endpoint allows you to retrieve a paginated list of all WhatsApp templates available for a specific Phone ID. Templates can be filtered by status and include details such as name, category, language, and status.
Your API key for authentication.
Your workspace ID for authentication.
Path Parameters
The unique Phone ID associated with your WhatsApp Business account. You can find this on the Zixflow WhatsApp Settings page or by calling the Get WhatsApp Accounts endpoint.
Query Parameters
The maximum number of templates to return in the response. Default is 10.
The number of templates to skip before starting to return results. Used for pagination. Default is 0.
Response
Indicates whether the API call was successful.
Success or error message from the API.
The template list response containing:
An array of WhatsApp template objects, each containing:
The name of the WhatsApp template.
The language code of the template (e.g., “en”, “en_US”).
The category of the template. Possible values: “MARKETING”, “UTILITY”, “AUTHENTICATION”.
The approval status of the template. Possible values: “APPROVED”, “PENDING”, “REJECTED”.
An array of template components that define the structure of the template.
Pagination information containing:
The total number of templates available.
The number of templates returned in this response.
The page size used for this request.
200-Success
400-Bad Request
401-Unauthorized
500-Internal Server Error
{
"success" : true ,
"message" : "Templates retrieved successfully" ,
"data" : {
"data" : [
{
"name" : "welcome_message" ,
"language" : "en" ,
"category" : "UTILITY" ,
"status" : "APPROVED" ,
"components" : []
},
{
"name" : "order_confirmation" ,
"language" : "en_US" ,
"category" : "MARKETING" ,
"status" : "APPROVED" ,
"components" : []
}
],
"pagination" : {
"size" : 25 ,
"count" : 10 ,
"pageSize" : 10
}
}
}