> ## 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 template categories

> Returns the catalog of template categories used to group SMS, campaign, script, and automation templates.



## OpenAPI

````yaml /api-reference/openapi.yaml get /api/user/template-categories
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/template-categories:
    get:
      tags:
        - Users
      summary: Get all template categories
      description: >-
        Returns the catalog of template categories used to group SMS, campaign,
        script, and automation templates.
      operationId: get_user_template_categories
      responses:
        '200':
          description: Categories returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserTemplateCategoryListResponse'
        '400':
          description: Invalid request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserErrorResponse'
        '500':
          description: Failed to fetch categories
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    UserTemplateCategoryListResponse:
      type: array
      items:
        $ref: '#/components/schemas/UserTemplateCategory'
      example:
        - _id: 64eea1110000000000000031
          name: introduction
          displayName: Introduction
          sortOrder: 0
          isActive: true
    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
    UserTemplateCategory:
      type: object
      description: >-
        Template category document. `createdBy` is populated with a thin User
        reference when returned by list endpoints.
      properties:
        _id:
          type: string
        name:
          type: string
        displayName:
          type: string
        description:
          type: string
        color:
          type: string
        sortOrder:
          type: integer
        isActive:
          type: boolean
        createdBy:
          type: object
          properties:
            _id:
              type: string
            fullName:
              type: string
            email:
              type: string
              format: email
          additionalProperties: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
      additionalProperties: true
      example:
        _id: 64eea1110000000000000031
        name: introduction
        displayName: Introduction
        description: First-touch templates for new leads.
        color: '#3B82F6'
        sortOrder: 0
        isActive: true
        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

````