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

# Get Templates

> Retrieve a list of all templates associated with your account



## OpenAPI

````yaml /openapi/notifier-system-api.json get /api:AFRA_QCy/get_templates
openapi: 3.0.0
info:
  title: Notifyer System API
  description: >-
    Notifyer System API Documentation - A comprehensive API for sending WhatsApp
    messages and managing templates
  version: 1.0.0
servers:
  - url: https://api.insightssystem.com
    description: Notifyer System API
security: []
paths:
  /api:AFRA_QCy/get_templates:
    get:
      tags:
        - Templates
      summary: Get Templates
      description: Retrieve a list of all templates associated with your account
      operationId: getTemplates
      responses:
        '200':
          description: List of templates
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Template'
        '401':
          description: Unauthorized - Invalid or missing API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Forbidden - Account does not have access to templates
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - BearerAuth: []
      x-codeSamples:
        - lang: cURL
          source: |-
            curl -X GET \
              'https://api.insightssystem.com/api:AFRA_QCy/get_templates' \
              -H 'Content-Type: application/json' \
              -H 'Authorization: Bearer YOUR_API_KEY'
components:
  schemas:
    Template:
      type: object
      properties:
        id:
          type: integer
          description: The unique identifier for the template
        user_id:
          type: string
          format: uuid
          description: UUID of the user who owns the template
        name:
          type: string
          description: Descriptive name of the template
        category:
          type: string
          description: Category of the template (e.g., MARKETING, UTILITY)
        type:
          type: string
          description: The type of template (e.g., text)
        language:
          type: string
          description: Language code of the template (e.g., en, en_US)
        status:
          type: string
          description: Approval status of the template (e.g., APPROVED, REJECTED)
        variable_counts:
          type: integer
          description: Number of variable placeholders in the template
        template_formate:
          type: string
          description: Format string showing variable placement (e.g., [b:7])
        template_id:
          type: string
          format: uuid
          description: UUID of the template
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: Error code
            message:
              type: string
              description: Error message
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: Your Notifyer System API Token

````