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

#### Path Params

<ParamField path="phoneId" type="string" required placeholder="Enter phone ID (Not Phone Number)">
  This is the unique identifier associated with the sender's phone number given
  by WhatsApp. Find the Phone ID on the Zixflow WhatsApp Settings page next to
  the number. [Whatsapp
  Settings](https://app.zixflow.com/campaign/settings/whatsapp)
</ParamField>

#### Query Params

<ParamField body="limit" type="number" required>
  The number of templates to be returned, set to 10 in this instance. This
  parameter restricts the response to a specific quantity of templates.
</ParamField>

<ParamField body="offset" type="number" required>
  The starting point from which the templates are to be fetched within the
  entire dataset. In this case, it is set to 0, indicating that retrieval should
  commence from the beginning of the dataset.
</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">
  success or error response message
</ResponseField>

<ResponseField name="data" type="array_object">
  The contents of uploaded file

  <Expandable title="data">
    <ResponseField name="name" type="string">
      It defines template name
    </ResponseField>

    <ResponseField name="language" type="string">
      It defines template language
    </ResponseField>

    <ResponseField name="category" type="string">
      It defines template category
    </ResponseField>

    <ResponseField name="status" type="string">
      It defines template status
    </ResponseField>

    <ResponseField name="components" type="array">
      Whatsapp Template components structure defined
      [here](https://developers.facebook.com/docs/whatsapp/business-management-api/message-templates)
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200-Success theme={null}
  {
    "status": true,
    "message": "Success",
    "data": [
      {
        "language": "en",
        "name": "unsubscribe_response",
        "category": "MARKETING",
        "components": [
          {
            "type": "HEADER",
            "format": "TEXT",
            "text": "Unsubscribe"
          },
          {
            "type": "BODY",
            "text": "We're sorry to see you go 💔\n\nYou've been unsubscribed from receiving messages from us.\n\nIf you'd like to again start getting messages, reply with *START*"
          }
        ],
        "status": "APPROVED"
      }
    ]
  }
  ```

  ```json 400-Bad Request theme={null}
  {
    "status": false,
    "message": "file size exceeded"
  }
  ```

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