> ## 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.

# Create a draft WhatsApp template



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/whatsapp_templates
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/whatsapp_templates:
    post:
      tags:
        - WhatsApp Templates
      summary: Create a draft WhatsApp template
      operationId: createWhatsAppTemplate
      parameters:
        - name: business-id
          in: header
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TemplateCreate'
      responses:
        '200':
          description: Draft template created.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Template'
              example:
                id: t1a2b3c4-1234-4a5b-9c8d-abcdef123456
                business_id: 6a1f2e2e-1c34-4e2a-9c3e-1234567890ab
                display_name: order_confirmation
                language: pt_BR
                status: DRAFT
                body_text: Seu pedido {{1}} foi confirmado!
        '401':
          description: Missing or invalid credentials.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                detail: Not authenticated
components:
  schemas:
    TemplateCreate:
      type: object
      required:
        - display_name
        - language
        - body_text
      properties:
        display_name:
          type: string
          maxLength: 512
        language:
          type: string
          maxLength: 10
        category:
          type: string
          nullable: true
        header_text:
          type: string
          nullable: true
          maxLength: 60
        body_text:
          type: string
          minLength: 1
          maxLength: 1024
        footer_text:
          type: string
          nullable: true
          maxLength: 60
        twilio_content_sid:
          type: string
          nullable: true
          maxLength: 64
    Template:
      type: object
      properties:
        id:
          type: string
          format: uuid
        business_id:
          type: string
          format: uuid
        display_name:
          type: string
        language:
          type: string
        category:
          type: string
          nullable: true
        status:
          type: string
          enum:
            - DRAFT
            - PENDING
            - APPROVED
            - REJECTED
        body_text:
          type: string
        created:
          type: string
          format: date-time
        modified:
          type: string
          format: date-time
      additionalProperties: 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.

````