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

# Send message

> Sends a single WhatsApp message using one of the store's approved broadcast templates. Map the template body variables via the named `parameters` object.



## OpenAPI

````yaml openapi-v2 POST /api/v2/messages
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/messages:
    post:
      tags:
        - Messages
      summary: Send a message
      description: >-
        Sends a single WhatsApp message using one of the store's approved
        broadcast templates. Map the template body variables via the named
        `parameters` object.
      operationId: sendMessage
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MessageCreate'
      responses:
        '200':
          description: Message
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Template not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    MessageCreate:
      type: object
      properties:
        to:
          type: string
          minLength: 1
          description: Recipient phone number, digits only, no leading "+".
        template:
          type: string
          minLength: 1
          description: Name of an approved broadcast template to send.
        language:
          type: string
          description: >-
            Template language code (e.g. "en"). Defaults to the template
            language.
        parameters:
          type: object
          additionalProperties:
            type: string
          description: 'Named body variable values, e.g. { "customer_name": "John" }.'
      required:
        - to
        - template
    Message:
      type: object
      properties:
        id:
          type: string
        object:
          type: string
          enum:
            - message
        to:
          type: string
          description: International phone number, digits only, no leading "+".
        template:
          type: string
        status:
          type: string
          enum:
            - sent
      required:
        - id
        - object
        - to
        - template
        - status
    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
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'Merchant API V2 token. Pass as `Authorization: Bearer <token>`.'

````