> ## 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 List of Template Variables

> Retrieve the variable details for a specific RCS template.

# Get List of RCS Template Variables

This API allows you to retrieve the list of variables for a specific RCS template associated with a bot.

#### Path Parameters

<ParamField path="botId" type="string" required placeholder="Enter Bot ID">
  The unique identifier for the bot associated with the RCS template. Contact
  the Zixflow support team to configure or retrieve your bot ID.
</ParamField>

#### Query Parameters

<ParamField query="templateName" type="string" required placeholder="Enter Template Name">
  The name of the RCS template for which variable details are being requested.
</ParamField>

#### Response

<ResponseField name="status" type="boolean">
  Indicates whether the call was successful. `true` if successful, `false` if
  not.
</ResponseField>

<ResponseField name="message" type="string">
  Provides success or error message details.
</ResponseField>

<ResponseField name="data" type="array_object">
  An array of key-value pairs representing the variables for the specified RCS template.

  <Expandable title="data">
    <ResponseField name="key" type="string">
      The variable key in the template (e.g., "Customer\_Name").
    </ResponseField>

    <ResponseField name="type" type="string">
      The data type of the variable (e.g., "string", "date").
    </ResponseField>
  </Expandable>
</ResponseField>

#### Response Examples

<ResponseExample>
  ```json 200-Success theme={null}
  {
    "status": true,
    "message": "Success",
    "data": [
      {
        "key": "Customer_Name",
        "type": "string"
      },
      {
        "key": "Appointment_Date",
        "type": "date"
      }
    ]
  }
  ```

  ```json 400-Bad Request theme={null}
  {
    "status": false,
    "message": "Invalid bot ID or template name"
  }
  ```

  ```json 401-Unauthorised theme={null}
  {
    "status": false,
    "message": "No token provided"
  }
  ```
</ResponseExample>
