Documentation Index Fetch the complete documentation index at: https://docs.zixflow.com/llms.txt
Use this file to discover all available pages before exploring further.
Description
This endpoint allows you to retrieve the variable keys and their types for a specific WhatsApp template. This is useful when you need to know what variables are required or available in a template before sending a message. Each variable includes its key name, type, and display label.
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 name of the WhatsApp template for which you want to retrieve variable information.
The language code of the template (e.g., “en”, “en_US”). This must match the language of the template you want to query.
Response
Indicates whether the API call was successful.
Success or error message from the API.
The template variables response containing:
An array of template variable objects, each containing:
The variable key name that should be used when sending the template. This is the identifier you’ll use in your API request.
The display label for the variable, which provides a human-readable description of what the variable represents.
The type of the variable. Possible values: “IMAGE_URL”, “VIDEO_URL”, “DOCUMENT_URL”, “TEXT”, “OTP”.
200-Success
400-Bad Request
401-Unauthorized
500-Internal Server Error
{
"success" : true ,
"message" : "Template variables retrieved successfully" ,
"data" : {
"data" : [
{
"keyName" : "customer_name" ,
"label" : "Customer Name" ,
"type" : "TEXT"
},
{
"keyName" : "order_number" ,
"label" : "Order Number" ,
"type" : "TEXT"
},
{
"keyName" : "product_image" ,
"label" : "Product Image" ,
"type" : "IMAGE_URL"
},
{
"keyName" : "otp_code" ,
"label" : "OTP Code" ,
"type" : "OTP"
}
]
}
}