Whatsapp Campaign
Get Template Variables
GET
/
api
/
v1
/
campaign
/
whatsapp
/
variable-keys
Authorization
Query
curl --location --request GET 'https://api.zixflow.com/api/v1/campaign/whatsapp/variable-keys?templateName=welcome_message&language=en' \
--header 'Authorization: Bearer {{zixflow_api_key}}'
{
"status": true,
"message": "Success",
"data": [
{
"label": "Header Image",
"keyName": "image",
"type": "IMAGE_URL"
},
{
"label": "Body 1",
"keyName": "body_1",
"type": "TEXT"
}
]
}
Query Params
templateName
string
requiredRefers to the name of the template to be used for the message, e.g., “welcome_message.”
language
string
requiredSpecifies the language for the message, e.g., “en” for English.
Response
status
boolean
Indicates whether the call was successful. true if successful, false if not.
message
string
success or error response message
data
array_object
The contents of uploaded file
curl --location --request GET 'https://api.zixflow.com/api/v1/campaign/whatsapp/variable-keys?templateName=welcome_message&language=en' \
--header 'Authorization: Bearer {{zixflow_api_key}}'
{
"status": true,
"message": "Success",
"data": [
{
"label": "Header Image",
"keyName": "image",
"type": "IMAGE_URL"
},
{
"label": "Body 1",
"keyName": "body_1",
"type": "TEXT"
}
]
}