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

# List SMS Templates

> Lists every SMS template available to your organization, including the placeholder variables each one expects. Call this first to discover the `templateId` and the variable names to pass to the send endpoint.



## OpenAPI

````yaml GET /text/templates
openapi: 3.0.1
info:
  title: CollectWise API
  description: >-
    An API for managing debtors, tracking statuses, and automating debt
    collection processes
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://collectwiseapi.com
security:
  - apiKey: []
paths:
  /text/templates:
    get:
      summary: List SMS templates
      description: >-
        Lists every SMS template available to your organization, including the
        placeholder variables each one expects. Call this first to discover the
        `templateId` and the variable names to pass to the send endpoint.
      responses:
        '200':
          description: Templates available to your organization.
          content:
            application/json:
              schema:
                type: object
                required:
                  - count
                  - templates
                properties:
                  count:
                    type: integer
                    description: Number of templates returned.
                  templates:
                    type: array
                    items:
                      $ref: '#/components/schemas/SmsTemplate'
              example:
                count: 1
                templates:
                  - templateId: 100
                    accountId: '99999'
                    message: >-
                      {Consumer Name}, {Company Name} is a debt collector
                      attempting to collect a debt. Visit {Website Payment}
                      using your account# {Account Number} or call {Phone#}.
                      Reply STOP to opt out.
                    placeholders:
                      - Consumer Name
                      - Company Name
                      - Website Payment
                      - Account Number
                      - Phone#
        '403':
          description: Texting is not enabled for your organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TextError'
              example:
                error: Texting is not enabled for this organization
        '429':
          description: Rate limit exceeded. See the Retry-After response header.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TextError'
              example:
                error: Too many requests
components:
  schemas:
    SmsTemplate:
      type: object
      required:
        - templateId
        - accountId
        - message
        - placeholders
      properties:
        templateId:
          type: integer
          description: Identifier for the template.
        accountId:
          type: string
          description: >-
            The account the template belongs to (your organization's configured
            account).
        message:
          type: string
          description: The template body, containing `{placeholder}` tokens.
        placeholders:
          type: array
          items:
            type: string
          description: Variable names you must supply in `variables` when sending.
    TextError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable error message.
      example:
        error: Texting is not enabled for this organization
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: collectwise_key

````