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

# Get RCS Template Variables

> Retrieves the variable keys and types for a specific RCS template

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

#### Headers

<ParamField header="x-api-key" type="string" required placeholder="Enter your API key">
  Your API key for authentication.
</ParamField>

<ParamField header="x-workspace-id" type="string" required placeholder="Enter your workspace ID">
  Your workspace ID for authentication.
</ParamField>

#### Path Parameters

<ParamField path="bot_id" type="string" required placeholder="Enter RCS Bot ID">
  The unique identifier of the RCS bot. This is the Bot ID associated with your RCS account.
</ParamField>

#### Query Parameters

<ParamField query="template_name" type="string" required placeholder="Enter template name">
  The name of the RCS template for which you want to retrieve variable information.
</ParamField>

#### Response

<ResponseField name="success" type="boolean">
  Indicates whether the API call was successful.
</ResponseField>

<ResponseField name="message" type="string">
  Success or error message from the API.
</ResponseField>

<ResponseField name="data" type="array">
  An array of template variable objects, each containing:
</ResponseField>

<ResponseField name="data[].key" type="string">
  The variable key name that should be used when sending the template.
</ResponseField>

<ResponseField name="data[].type" type="string">
  The type of the variable (e.g., "text", "image", "video", etc.).
</ResponseField>

<ResponseExample>
  ```json 200-Success theme={null}
  {
    "success": true,
    "message": "Template variables retrieved successfully",
    "data": [
      {
        "key": "customer_name",
        "type": "text"
      },
      {
        "key": "order_number",
        "type": "text"
      },
      {
        "key": "product_image",
        "type": "image"
      }
    ]
  }
  ```

  ```json 400-Bad Request theme={null}
  {
    "success": false,
    "message": "Invalid bot_id or template_name parameter"
  }
  ```

  ```json 401-Unauthorized theme={null}
  {
    "success": false,
    "message": "Unauthorized. Please check your API key and workspace ID."
  }
  ```

  ```json 500-Internal Server Error theme={null}
  {
    "success": false,
    "message": "Internal server error. Please try again later."
  }
  ```
</ResponseExample>
