Get WhatsApp Template Variables
WhatsApp
Get WhatsApp Template Variables
Retrieves the variable keys and types for a specific WhatsApp template
GET
Get WhatsApp Template Variables
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.Headers
string
required
Your API key for authentication.
string
required
Your workspace ID for authentication.
Path Parameters
string
required
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
string
required
The name of the WhatsApp template for which you want to retrieve variable information.
string
required
The language code of the template (e.g., “en”, “en_US”). This must match the language of the template you want to query.
Response
boolean
Indicates whether the API call was successful.
string
Success or error message from the API.
object
The template variables response containing:
array
An array of template variable objects, each containing:
string
The variable key name that should be used when sending the template. This is the identifier you’ll use in your API request.
string
The display label for the variable, which provides a human-readable description of what the variable represents.
string
The type of the variable. Possible values: “IMAGE_URL”, “VIDEO_URL”, “DOCUMENT_URL”, “TEXT”, “OTP”.