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

# Show WhatsApp template by ID.



## OpenAPI

````yaml /openapi/chat-client.yaml get /whatsapp/templates/{id}
openapi: 3.0.3
info:
  version: 1.0.0
  title: HealviChat Client API
servers:
  - url: https://{tenant_domain}/third-party/v1
    variables:
      tenant_domain:
        default: your-tenant.onhealvi.com
        description: Your tenant domain
security:
  - bearerAuth: []
paths:
  /whatsapp/templates/{id}:
    get:
      tags:
        - whatsapp
      summary: Show WhatsApp template by ID.
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/WhatsappTemplate'
components:
  schemas:
    WhatsappTemplate:
      description: >-
        Template submitted to WhatsApp for approval. Necessary to create
        business initiated conversations.
      type: object
      properties:
        id:
          type: integer
          description: Internal ID.
        agent_ids:
          description: |
            Array of agent IDs which are capable to send this template.
          type: array
          items:
            type: integer
        group:
          description: >-
            Custom group name. Can be null or any value. Useful for filtering
            when fetching all templates.
          type: string
          nullable: true
        template_id:
          description: WhatsApp internal ID.
          type: string
        namespace:
          description: WhatsApp internal namespace.
          type: string
        name:
          description: >-
            Name of template (technical, use friendly name if available for
            display).
          type: string
        friendly_name:
          description: Name of template in a friendly, readable way.
          type: string
          nullable: true
        language:
          description: Language of template.
          type: string
        category:
          $ref: '#/components/schemas/WhatsappTemplateCategory'
        status:
          $ref: '#/components/schemas/WhatsappTemplateStatus'
        components:
          $ref: '#/components/schemas/WhatsappTemplateComponents'
    WhatsappTemplateCategory:
      description: >-
        Category of template. Determines cost of sending message with this
        template.
      type: string
      enum:
        - AUTHENTICATION
        - MARKETING
        - UTILITY
    WhatsappTemplateStatus:
      description: >
        Status of template. WhatsApp decides if template is good or if it will
        be rejected.

        Only "approved" templates can be used to send messages.

        See
        https://developers.facebook.com/docs/whatsapp/cloud-api/webhooks/reference/message_template_status_update
      type: string
      enum:
        - created
        - submitted
        - approved
        - in_appeal
        - pending
        - rejected
        - pending_deletion
        - deleted
        - disabled
        - limit_exceeded
        - archived
        - unarchived
        - flagged
        - locked
        - paused
        - reinstated
    WhatsappTemplateComponents:
      description: >
        Parts of the template (header, body, footer, buttons) with their
        content.

        Variables like {{1}} can be used per part to make template dynamic.

        Format is defined by WhatsApp. See examples on
        https://developers.facebook.com/docs/whatsapp/cloud-api/guides/send-message-templates
      type: array
      items:
        type: object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````