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

# Create message template

> Submits a new WhatsApp message template to Meta for review. The template comes back PENDING and becomes sendable once Meta approves it, which usually takes a few minutes.



## OpenAPI

````yaml openapi-v2 POST /api/v2/message_templates
openapi: 3.1.0
info:
  title: Take App Merchant API V2
  version: 2.0.0
  description: >-
    Authenticated Merchant API for stores. All money values are integers in the
    smallest currency unit (e.g. cents).
servers:
  - url: https://take.app
security:
  - bearerAuth: []
paths:
  /api/v2/message_templates:
    post:
      tags:
        - Message templates
      summary: Create a message template
      description: >-
        Submits a new WhatsApp message template to Meta for review. The template
        comes back PENDING and becomes sendable once Meta approves it, which
        usually takes a few minutes.
      operationId: createMessageTemplate
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MessageTemplateCreate'
      responses:
        '200':
          description: Message template
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageTemplate'
        '400':
          description: Validation error or rejected submission
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    MessageTemplateCreate:
      type: object
      properties:
        name:
          type: string
          minLength: 1
          maxLength: 512
          pattern: ^[a-z0-9_]+$
          description: Unique template name, e.g. "spring_sale_2026".
        category:
          type: string
          enum:
            - MARKETING
            - UTILITY
          description: >-
            MARKETING for promotions, UTILITY for transactional follow-ups. Meta
            may re-categorize on review.
        language:
          type: string
          description: Defaults to the store's template language.
        header:
          type: string
          maxLength: 60
          description: Optional text header, max 60 characters. No variables.
        header_image_url:
          type: string
          format: uri
          description: >-
            Optional image header. Publicly reachable HTTPS JPEG or PNG URL, 5MB
            or smaller. Cannot be combined with `header`.
        body:
          type: string
          minLength: 1
          maxLength: 1024
          description: >-
            Message body. Use {{variable_name}} for values filled in at send
            time.
        footer:
          type: string
          maxLength: 60
          description: Optional footer, max 60 characters. No variables.
        buttons:
          type: array
          items:
            $ref: '#/components/schemas/MessageTemplateButtonCreate'
          maxItems: 3
        parameter_examples:
          type: object
          additionalProperties:
            type: string
          description: >-
            Sample value per body variable, e.g. { "customer_name": "Ada" }.
            Meta reviewers read these, so realistic values approve faster.
      required:
        - name
        - category
        - body
    MessageTemplate:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          enum:
            - message_template
        name:
          type: string
        status:
          type: string
          enum:
            - APPROVED
            - IN_APPEAL
            - PENDING
            - REJECTED
            - PENDING_DELETION
            - DELETED
            - DISABLED
            - PAUSED
            - LIMIT_EXCEEDED
          description: Meta review status. Only APPROVED templates can be sent.
        category:
          type: string
          enum:
            - MARKETING
            - UTILITY
            - AUTHENTICATION
        language:
          type: string
        header:
          type:
            - string
            - 'null'
        header_image_url:
          type:
            - string
            - 'null'
        body:
          type: string
        footer:
          type:
            - string
            - 'null'
        buttons:
          type: array
          items:
            $ref: '#/components/schemas/MessageTemplateButton'
        parameters:
          type: array
          items:
            type: string
          description: >-
            Named body variables this template expects, e.g. ["customer_name"].
            Pass them as `parameters` when sending.
        rejected_reason:
          type:
            - string
            - 'null'
      required:
        - id
        - object
        - name
        - status
        - category
        - language
        - header
        - header_image_url
        - body
        - footer
        - buttons
        - parameters
        - rejected_reason
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
              enum:
                - invalid_request_error
                - authentication_error
                - permission_error
                - not_found_error
                - rate_limit_error
                - api_error
            code:
              type: string
            message:
              type: string
            param:
              type: string
            request_id:
              type: string
          required:
            - type
            - code
            - message
            - request_id
      required:
        - error
    MessageTemplateButtonCreate:
      type: object
      properties:
        type:
          type: string
          enum:
            - QUICK_REPLY
            - URL
            - PHONE_NUMBER
        text:
          type: string
          minLength: 1
          maxLength: 25
          description: Button label, max 25 characters.
        url:
          type: string
          format: uri
          description: Required for URL buttons.
        phone_number:
          type: string
          description: Required for PHONE_NUMBER buttons. Digits only, no leading "+".
      required:
        - type
        - text
    MessageTemplateButton:
      type: object
      properties:
        type:
          type: string
          enum:
            - QUICK_REPLY
            - URL
            - PHONE_NUMBER
            - FLOW
        text:
          type: string
        url:
          type: string
        phone_number:
          type: string
      required:
        - type
        - text
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Merchant API V2 token. Pass as `Authorization: Bearer <token>`.'

````