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

# List message templates

> List message templates for the active team



## OpenAPI

````yaml /swagger.yml get /public/message-templates
openapi: 3.0.0
info:
  title: Public API Docs
  description: Clerk Public API
  version: '1.0'
  contact: {}
servers:
  - url: https://web-api.clerk.chat
    description: Production server
  - url: http://localhost:3000
    description: Production server
security: []
tags: []
paths:
  /public/message-templates:
    get:
      tags:
        - Messages
      summary: List message templates
      description: List message templates for the active team
      operationId: PublicMessageTemplatesController_listMessageTemplates
      parameters:
        - name: limit
          in: query
          required: false
          description: Number of items to return (max 50)
          example: 10
          schema:
            type: number
        - name: page
          in: query
          required: false
          description: Page number
          example: 1
          schema:
            type: number
      responses:
        '200':
          description: A paginated list of message templates
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaginatedMessageTemplatesResponse'
        '400':
          description: Invalid request body
        '401':
          description: Unauthorized request
        '403':
          description: You do not have permission to access this resource
        '404':
          description: Resource not found
        '422':
          description: Invalid request parameters
        '429':
          description: Too many requests for this resource
        '500':
          description: Internal server error
      security:
        - api_key: []
components:
  schemas:
    PaginatedMessageTemplatesResponse:
      type: object
      required:
        - data
        - total
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/MessageTemplateObject'
        links:
          type: object
          properties:
            next:
              type: string
              description: The URL for the next page
            prev:
              type: string
              description: The URL for the previous page
            self:
              type: string
              description: The URL for the current page
        total:
          type: number
          description: The total number of message templates
          example: 1
    MessageTemplateObject:
      type: object
      description: Represents a message template resource
      required:
        - id
        - teamId
        - name
        - body
        - type
        - isPersonal
        - attachmentIds
        - created
        - updated
      properties:
        id:
          type: number
          description: The ID of the resource
          example: 1
          readOnly: true
        teamId:
          type: string
          description: The ID of the team that owns the resource
          example: 00000000-0000-0000-0000-000000000000
          readOnly: true
        userId:
          type: string
          description: The ID of the user who created the resource
          example: '1'
          readOnly: true
          nullable: true
        name:
          type: string
          description: The name of the template
          example: Welcome Message
        body:
          type: string
          description: The body of the template
          example: Hello {{first_name}}, welcome!
        type:
          $ref: '#/components/schemas/MessageTemplateType'
        externalId:
          type: string
          description: The external ID of the resource
          example: external-id
          nullable: true
        isPersonal:
          type: boolean
          description: Whether the template is personal (visible only to its owning user)
          example: false
        attachmentIds:
          type: array
          description: IDs of attachments associated with the template
          items:
            type: string
          example: []
        created:
          type: string
          format: date-time
          example: '2021-01-01T00:00:00.000Z'
          readOnly: true
          description: The date and time the resource was created
        updated:
          type: string
          format: date-time
          example: '2021-01-01T00:00:00.000Z'
          readOnly: true
          description: The date and time the resource was last updated
    MessageTemplateType:
      type: string
      enum:
        - rcs
        - text
        - amb
  securitySchemes:
    api_key:
      type: apiKey
      in: header
      name: apiKey

````