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
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”.