> ## Documentation Index
> Fetch the complete documentation index at: https://docs.conversales.in/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Template List

> Get filtered list of templates

## Authentication

<ParamField header="X-API-Key" type="string" required>
  Your API key for authentication
</ParamField>

## Query Parameters

<ParamField query="page" type="number">
  Page number (default: 1)
</ParamField>

<ParamField query="text" type="string">
  Search text filter
</ParamField>

<ParamField query="category" type="string">
  Category filter: `MARKETING`, `UTILITY`, or `AUTHENTICATION`
</ParamField>

<ParamField query="orderBy" type="string">
  Sort field (e.g., `createdAt`, `name`)
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET "https://backend.conversales.in/api/v1/getTemplateList?page=1&category=MARKETING" \
    -H "X-API-Key: 3kJ9mP2nQ8rT5vW7xY1zA4bC6dE8fG0hI"
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    "https://backend.conversales.in/api/v1/getTemplateList?page=1&category=MARKETING",
    {
      headers: {
        "X-API-Key": "3kJ9mP2nQ8rT5vW7xY1zA4bC6dE8fG0hI",
      },
    }
  );
  ```

  ```python Python theme={null}
  import requests

  url = "https://backend.conversales.in/api/v1/getTemplateList"
  params = {"page": 1, "category": "MARKETING"}
  headers = {"X-API-Key": "3kJ9mP2nQ8rT5vW7xY1zA4bC6dE8fG0hI"}

  response = requests.get(url, params=params, headers=headers)
  ```
</RequestExample>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "statusCode": 200,
    "message": "Template list retrieved successfully",
    "data": {
      "templates": [
        {
          "templateId": "template_123456",
          "name": "welcome_message",
          "status": "APPROVED",
          "category": "MARKETING",
          "createdAt": "2025-11-01T12:00:00.000Z"
        }
      ],
      "total": 15
    }
  }
  ```
</ResponseExample>
