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

# Get all SMS templates for organization

> Returns SMS, campaign, script, and automation templates visible to the authenticated user, optionally filtered by template type.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/user/sms-templates
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/user/sms-templates:
    get:
      tags:
        - Users
      summary: Get all SMS templates for organization
      description: >-
        Returns SMS, campaign, script, and automation templates visible to the
        authenticated user, optionally filtered by template type.
      operationId: get_user_sms_templates
      parameters:
        - in: query
          name: type
          required: false
          schema:
            type: string
            enum:
              - sms
              - campaign
              - script
              - automation
      responses:
        '200':
          description: Templates returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserSmsTemplateListResponse'
        '400':
          description: Invalid template type
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserErrorResponse'
        '500':
          description: Failed to fetch templates
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    UserSmsTemplateListResponse:
      type: array
      items:
        $ref: '#/components/schemas/UserSmsTemplate'
      example:
        - _id: 64eea1110000000000000050
          name: Intro - new lead
          template: >-
            Hi {{firstName}}, thanks for reaching out — when is a good time to
            chat?
          type: sms
          category: introduction
    UserErrorResponse:
      type: object
      description: >-
        Generic error envelope returned by Users endpoints. Most paths only
        include `error`; some add `details` for diagnostic context.
      properties:
        error:
          type: string
        details:
          type: string
      required:
        - error
      additionalProperties: true
      example:
        error: User not found
        details: No user with id 64ee9a8b1e7f2a0011223399
    UserSmsTemplate:
      type: object
      description: >-
        Template document as stored under the Template collection. Includes the
        populated `createdBy` reference when returned via list endpoints.
      properties:
        _id:
          type: string
        name:
          type: string
        template:
          type: string
        type:
          type: string
          enum:
            - sms
            - campaign
            - script
            - automation
        category:
          type: string
        organizationId:
          type: string
        userId:
          type: string
        createdBy:
          type: object
          properties:
            _id:
              type: string
            fullName:
              type: string
            email:
              type: string
              format: email
          additionalProperties: true
        updatedBy:
          type: string
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      additionalProperties: true
      example:
        _id: 64eea1110000000000000050
        name: Intro - new lead
        template: >-
          Hi {{firstName}}, thanks for reaching out — when is a good time to
          chat?
        type: sms
        category: introduction
        organizationId: 64ee9a8b1e7f2a0011223344
        userId: 64ee9a8b1e7f2a0011223399
        createdBy:
          _id: 64ee9a8b1e7f2a0011223399
          fullName: Alex Rep
          email: alex@acme.example
        createdAt: '2026-05-01T09:00:00.000Z'
        updatedAt: '2026-05-10T15:23:00.000Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````