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

# Send an approved WhatsApp template into a chat

> Sends an approved template message, used to reopen a conversation outside WhatsApp's 24-hour session window. Persists a rendered copy of the message in the conversation.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/chats/{chat_id}/messages/template
openapi: 3.1.0
info:
  title: iZap API
  version: v1
  description: Public REST API for the iZap WhatsApp business messaging platform.
  contact:
    name: iZap API Support
    email: suporte@izap.ai
  license:
    name: MIT
    url: https://opensource.org/licenses/MIT
servers:
  - url: https://api.izap.ai
    description: Production
  - url: https://api-staging.izap.ai
    description: Staging
security:
  - bearerAuth: []
tags:
  - name: Auth
    description: Login and token refresh.
  - name: OAuth
    description: OAuth 2.1 / PKCE authorization for third-party and MCP clients.
  - name: Businesses
    description: Business profile, hours, menus, and chatbot configuration.
  - name: Chats
    description: Conversations, messages, and template sends.
  - name: Scheduling
    description: Customers, services, providers, and bookings (Trinks-backed).
  - name: WhatsApp Templates
    description: Manage and sync WhatsApp message templates.
  - name: Transmissions
    description: Bulk WhatsApp template broadcasts.
  - name: Me
    description: The authenticated user's own profile and active business.
paths:
  /api/v1/chats/{chat_id}/messages/template:
    post:
      tags:
        - Chats
      summary: Send an approved WhatsApp template into a chat
      description: >-
        Sends an approved template message, used to reopen a conversation
        outside WhatsApp's 24-hour session window. Persists a rendered copy of
        the message in the conversation.
      operationId: sendChatTemplateMessage
      parameters:
        - name: chat_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - template_id
              properties:
                template_id:
                  type: string
                  format: uuid
                variables:
                  type: object
                  additionalProperties:
                    type: string
                  description: Body/button variable values, keyed '1', '2', …
      responses:
        '200':
          description: Template message sent.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TemplateSendResult'
              example:
                status: queued
                message_id: wamid.HBgL...
                error: null
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: Not authenticated
components:
  schemas:
    TemplateSendResult:
      type: object
      properties:
        status:
          type: string
        message_id:
          type: string
          nullable: true
        error:
          type: object
          additionalProperties: true
          nullable: true
    Error:
      type: object
      properties:
        detail:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT access token obtained from POST /api/v1/auth/jwt/login, the OAuth
        token endpoint, or a business-scoped API token. Some
        Business/Chat/Template/Scheduling endpoints alternatively accept HTTP
        Basic credentials scoped to the business slug.

````