Description
This endpoint allows you to retrieve the variable keys and their types for a specific RCS template. This is useful when you need to know what variables are required or available in a template before sending a message.
Your API key for authentication.
Your workspace ID for authentication.
Path Parameters
The unique identifier of the RCS bot. This is the Bot ID associated with your RCS account.
Query Parameters
The name of the RCS template for which you want to retrieve variable information.
Response
Indicates whether the API call was successful.
Success or error message from the API.
An array of template variable objects, each containing:
The variable key name that should be used when sending the template.
The type of the variable (e.g., “text”, “image”, “video”, etc.).
200-Success
400-Bad Request
401-Unauthorized
500-Internal Server Error
{
"success" : true ,
"message" : "Template variables retrieved successfully" ,
"data" : [
{
"key" : "customer_name" ,
"type" : "text"
},
{
"key" : "order_number" ,
"type" : "text"
},
{
"key" : "product_image" ,
"type" : "image"
}
]
}