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

# Send a WhatsApp message

> Sends a supported WhatsApp message using the specified Sender Hash.

This single endpoint supports 15 request formats. Select the relevant named request example in the API playground to load a sample payload, then replace the sample recipient, media IDs and message details with your own values.

The recipient number must be in international format without
the leading plus sign.

Free-form messages are subject to Meta's 24-hour customer-service
window. Outside this window, an approved template message is
required to reopen the conversation.

A successful response means the request was accepted for delivery.
It does not guarantee that the recipient received the message.

Media messages require a media ID obtained through the Media
Upload API before the message is sent.




## OpenAPI

````yaml /cpaas-api-reference.yaml post /api/whatsapp/{senderHash}/messages
openapi: 3.1.0
info:
  title: CPaaS+ Messaging API
  version: 1.0.0
  description: >-
    Unified REST API for sending and managing customer communications across
    **SMS**, **WhatsApp**, **Email**, **RCS** and **Flow Builder**. It also
    includes the **WhatsApp Wrapper API**, a simplified layer over Meta's
    WhatsApp Cloud API for sending free-form message types (text, media,
    interactive and more).


    All APIs are HTTP-based, use JSON and are secured with bearer-token
    authentication. Generate a token in the CPaaS+ portal (API tab, then **Add
    new Token**) and send it as `Authorization: Bearer <token>` on every
    request.


    A `200` response means the request was **accepted**, not that the message
    was delivered. Use the status endpoints for delivery results.
servers:
  - url: '{baseUrl}'
    description: Your CPaaS+ API host (provided at onboarding)
    variables:
      baseUrl:
        default: https://api.yourcpaas.com
        description: Host of your CPaaS+ web portal account, without a trailing slash.
security:
  - bearerAuth: []
tags:
  - name: SMS
    description: >-
      Send SMS using portal campaigns, approved templates, or open text, and
      check delivery status.
  - name: SMS Webhooks
    description: SMS delivery report callback payloads.
  - name: WhatsApp Messaging
    description: Send WhatsApp template messages and manage order status and refunds.
  - name: WhatsApp Wrapper API
    description: >-
      Send text, media, contact, location, interactive and other WhatsApp
      message types through the single Wrapper endpoint.
  - name: WhatsApp User Management
    description: >-
      Block, unblock, bulk-import and sync blocked WhatsApp users for a WABA
      number.
  - name: Email
    description: Send template-based or open-text email and check delivery status.
  - name: RCS Templates
    description: Create RCS templates (text with buttons, rich card, carousel).
  - name: RCS Messaging
    description: Send RCS messages and check message status.
  - name: RCS Webhooks
    description: Customer-facing RCS webhook callback payloads and event schemas.
  - name: Flow Builder
    description: Create, manage, publish and trigger Flow Builder journeys.
paths:
  /api/whatsapp/{senderHash}/messages:
    post:
      tags:
        - WhatsApp Wrapper API
      summary: Send a WhatsApp message
      description: >
        Sends a supported WhatsApp message using the specified Sender Hash.


        This single endpoint supports 15 request formats. Select the relevant
        named request example in the API playground to load a sample payload,
        then replace the sample recipient, media IDs and message details with
        your own values.


        The recipient number must be in international format without

        the leading plus sign.


        Free-form messages are subject to Meta's 24-hour customer-service

        window. Outside this window, an approved template message is

        required to reopen the conversation.


        A successful response means the request was accepted for delivery.

        It does not guarantee that the recipient received the message.


        Media messages require a media ID obtained through the Media

        Upload API before the message is sent.
      operationId: sendWhatsAppCloudMessage
      parameters:
        - name: senderHash
          in: path
          required: true
          description: |
            Sender Hash from CPaaS+ Portal > Account > Numbers >
            WhatsApp channel.
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
                - title: Text Message
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - text
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                      default: individual
                    to:
                      type: string
                      description: Recipient phone number without a leading plus sign.
                    type:
                      type: string
                      enum:
                        - text
                    text:
                      type: object
                      required:
                        - body
                      properties:
                        body:
                          type: string
                          maxLength: 4096
                          description: Text content of the message.
                        preview_url:
                          type: boolean
                          description: Controls URL preview in the text message.
                - title: Audio Message
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - audio
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - audio
                    audio:
                      type: object
                      required:
                        - id
                      properties:
                        id:
                          type: string
                          description: Media ID obtained through media upload.
                - title: Image Message
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - image
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - image
                    image:
                      type: object
                      required:
                        - id
                      properties:
                        id:
                          type: string
                          description: Media ID obtained through media upload.
                        caption:
                          type: string
                          description: Optional image caption.
                - title: Video Message
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - video
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - video
                    video:
                      type: object
                      required:
                        - id
                      properties:
                        id:
                          type: string
                          description: Media ID obtained through media upload.
                        caption:
                          type: string
                          description: Optional video caption.
                - title: Document Message
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - document
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - document
                    document:
                      type: object
                      required:
                        - id
                      properties:
                        id:
                          type: string
                          description: Media ID obtained through media upload.
                        caption:
                          type: string
                          description: Optional document caption.
                        filename:
                          type: string
                          description: Optional document filename.
                - title: Sticker Message
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - sticker
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - sticker
                    sticker:
                      type: object
                      required:
                        - id
                      properties:
                        id:
                          type: string
                          description: Media ID for a WebP sticker.
                - title: Contacts Message
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - contacts
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - contacts
                    contacts:
                      type: array
                      items:
                        type: object
                        required:
                          - name
                        properties:
                          name:
                            type: object
                            required:
                              - formatted_name
                            properties:
                              formatted_name:
                                type: string
                              first_name:
                                type: string
                              last_name:
                                type: string
                              middle_name:
                                type: string
                              suffix:
                                type: string
                              prefix:
                                type: string
                          phones:
                            type: array
                            items:
                              type: object
                              properties:
                                phone:
                                  type: string
                                type:
                                  type: string
                                wa_id:
                                  type: string
                          emails:
                            type: array
                            items:
                              type: object
                              properties:
                                email:
                                  type: string
                                type:
                                  type: string
                          addresses:
                            type: array
                            items:
                              type: object
                              properties:
                                street:
                                  type: string
                                city:
                                  type: string
                                state:
                                  type: string
                                zip:
                                  type: string
                                country:
                                  type: string
                                country_code:
                                  type: string
                                type:
                                  type: string
                          org:
                            type: object
                            properties:
                              company:
                                type: string
                              department:
                                type: string
                              title:
                                type: string
                          urls:
                            type: array
                            items:
                              type: object
                              properties:
                                url:
                                  type: string
                                type:
                                  type: string
                - title: Location Message
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - location
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - location
                    location:
                      type: object
                      required:
                        - latitude
                        - longitude
                      properties:
                        latitude:
                          type: number
                        longitude:
                          type: number
                        name:
                          type: string
                        address:
                          type: string
                - title: Location Request
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - interactive
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - interactive
                    interactive:
                      type: object
                      required:
                        - type
                        - body
                        - action
                      properties:
                        type:
                          type: string
                          enum:
                            - location_request_message
                        body:
                          type: object
                          required:
                            - text
                          properties:
                            text:
                              type: string
                        action:
                          type: object
                          required:
                            - name
                          properties:
                            name:
                              type: string
                              enum:
                                - send_location
                - title: Interactive CTA URL
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - interactive
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - interactive
                    interactive:
                      type: object
                      required:
                        - type
                        - body
                        - action
                      properties:
                        type:
                          type: string
                          enum:
                            - cta_url
                        header:
                          type: object
                          description: Optional message header.
                          properties:
                            type:
                              type: string
                            text:
                              type: string
                        body:
                          type: object
                          required:
                            - text
                          properties:
                            text:
                              type: string
                        footer:
                          type: object
                          properties:
                            text:
                              type: string
                        action:
                          type: object
                          required:
                            - parameters
                          properties:
                            parameters:
                              type: object
                              required:
                                - display_text
                                - url
                              properties:
                                display_text:
                                  type: string
                                url:
                                  type: string
                - title: Interactive List
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - interactive
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - interactive
                    interactive:
                      type: object
                      required:
                        - type
                        - body
                        - action
                      properties:
                        type:
                          type: string
                          enum:
                            - list
                        header:
                          type: object
                          properties:
                            type:
                              type: string
                            text:
                              type: string
                        body:
                          type: object
                          required:
                            - text
                          properties:
                            text:
                              type: string
                        footer:
                          type: object
                          properties:
                            text:
                              type: string
                        action:
                          type: object
                          required:
                            - button
                            - sections
                          properties:
                            button:
                              type: string
                            sections:
                              type: array
                              items:
                                type: object
                                properties:
                                  title:
                                    type: string
                                  rows:
                                    type: array
                                    items:
                                      type: object
                                      required:
                                        - id
                                        - title
                                      properties:
                                        id:
                                          type: string
                                        title:
                                          type: string
                                        description:
                                          type: string
                - title: Interactive Buttons
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - interactive
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - interactive
                    interactive:
                      type: object
                      required:
                        - type
                        - body
                        - action
                      properties:
                        type:
                          type: string
                          enum:
                            - button
                        header:
                          type: object
                          properties:
                            type:
                              type: string
                            text:
                              type: string
                        body:
                          type: object
                          required:
                            - text
                          properties:
                            text:
                              type: string
                        footer:
                          type: object
                          properties:
                            text:
                              type: string
                        action:
                          type: object
                          required:
                            - buttons
                          properties:
                            buttons:
                              type: array
                              maxItems: 3
                              items:
                                type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - reply
                                  reply:
                                    type: object
                                    required:
                                      - id
                                      - title
                                    properties:
                                      id:
                                        type: string
                                      title:
                                        type: string
                - title: Reaction
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - reaction
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - reaction
                    reaction:
                      type: object
                      required:
                        - message_id
                        - emoji
                      properties:
                        message_id:
                          type: string
                          description: ID (wamid) of the message to react to.
                        emoji:
                          type: string
                          description: >-
                            A single emoji, or an empty string to remove a
                            reaction.
                - title: Contextual Reply
                  type: object
                  required:
                    - messaging_product
                    - to
                    - type
                    - context
                    - text
                  properties:
                    messaging_product:
                      type: string
                      enum:
                        - whatsapp
                    recipient_type:
                      type: string
                      enum:
                        - individual
                    to:
                      type: string
                    type:
                      type: string
                      enum:
                        - text
                    context:
                      type: object
                      required:
                        - message_id
                      properties:
                        message_id:
                          type: string
                          description: ID (wamid) of the message being replied to.
                    text:
                      type: object
                      required:
                        - body
                      properties:
                        body:
                          type: string
                          maxLength: 4096
                - title: Typing Indicators & Read Receipts
                  type: object
                  required:
                    - status
                    - message_id
                  properties:
                    status:
                      type: string
                      enum:
                        - read
                      description: Marks an incoming message as read.
                    message_id:
                      type: string
                      description: ID of the incoming message to mark as read.
                    typing_indicator:
                      type: object
                      description: Optional typing indicator described in the guide.
                      properties:
                        type:
                          type: string
                          enum:
                            - text
            examples:
              textMessage:
                summary: Text message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: text
                  text:
                    preview_url: true
                    body: 'As requested, here is the link to our latest product:'
              audioMessage:
                summary: Audio message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: audio
                  audio:
                    id: '766235952871902'
              imageMessage:
                summary: Image message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: image
                  image:
                    id: '762449710003335'
                    caption: Here's a look at our latest arrival
              videoMessage:
                summary: Video message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: video
                  video:
                    id: '1487009022497978'
                    caption: A quick look at the product in action
              documentMessage:
                summary: Document message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: document
                  document:
                    id: '1452039652685523'
                    filename: invoice.pdf
                    caption: Your order confirmation (PDF)
              stickerMessage:
                summary: Sticker message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: sticker
                  sticker:
                    id: '762449710003335'
              contactsMessage:
                summary: Contact message
                value:
                  messaging_product: whatsapp
                  to: '919373084880'
                  type: contacts
                  contacts:
                    - name:
                        formatted_name: Barbara Johnson
                        first_name: Barbara
                        last_name: Johnson
                        middle_name: Joana
                        prefix: Dr.
                        suffix: Esq.
                      phones:
                        - phone: '+16505559999'
                          type: Landline
                        - phone: '+19175559999'
                          type: Mobile
                          wa_id: '19175559999'
                      emails:
                        - email: bjohnson@luckyshrub.com
                          type: Work
                      addresses:
                        - street: 1 Lucky Shrub Way
                          city: Menlo Park
                          state: CA
                          zip: '94025'
                          country: United States
                          country_code: US
                          type: Office
                      org:
                        company: Lucky Shrub
                        department: Legal
                        title: Lead Counsel
                      urls:
                        - url: https://www.luckyshrub.com
                          type: Company
              locationMessage:
                summary: Location message
                value:
                  messaging_product: whatsapp
                  to: '919373084880'
                  type: location
                  location:
                    latitude: 19.07609
                    longitude: 72.877426
                    name: Mumbai
                    address: Maharashtra, Mumbai
              locationRequestMessage:
                summary: Location request message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: interactive
                  interactive:
                    type: location_request_message
                    body:
                      text: >-
                        Let's start with your pickup point — please share your
                        current location.
                    action:
                      name: send_location
              interactiveCTAURLMessage:
                summary: Interactive CTA URL message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: interactive
                  interactive:
                    type: cta_url
                    header:
                      type: text
                      text: Available dates
                    body:
                      text: Tap the button below to see available dates.
                    action:
                      name: cta_url
                      parameters:
                        display_text: See Dates
                        url: >-
                          https://www.example.com?clickID=kqDGWd24Q5TRwoEQTICY7W1J
                    footer:
                      text: Dates subject to change.
              interactiveListMessage:
                summary: Interactive list message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: interactive
                  interactive:
                    type: list
                    header:
                      type: text
                      text: Choose Shipping Option
                    body:
                      text: Which shipping option do you prefer?
                    footer:
                      text: 'CPaaS+: reliable delivery, every time'
                    action:
                      button: Shipping Options
                      sections:
                        - title: I want it ASAP!
                          rows:
                            - id: priority_express
                              title: Priority Mail Express
                              description: Next Day to 2 Days
                            - id: priority_mail
                              title: Priority Mail
                              description: 1-3 Days
                        - title: I can wait a bit
                          rows:
                            - id: ground_advantage
                              title: Ground Advantage
                              description: 2-5 Days
                            - id: media_mail
                              title: Media Mail
                              description: 2-8 Days
              interactiveButtonsMessage:
                summary: Interactive reply buttons message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: interactive
                  interactive:
                    type: button
                    header:
                      type: image
                      image:
                        id: '762449710003335'
                    body:
                      text: >-
                        Your appointment is scheduled for 9am tomorrow. Use the
                        buttons if you need to reschedule.
                    footer:
                      text: CPaaS+ Appointments
                    action:
                      buttons:
                        - type: reply
                          reply:
                            id: change-button
                            title: Change
                        - type: reply
                          reply:
                            id: cancel-button
                            title: Cancel
              reactionMessage:
                summary: Reaction message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  type: reaction
                  reaction:
                    message_id: >-
                      wamid.HBgMOTE5MzczMDg0ODgwFQIAERgSNThGNjk3RjVFOUQ2QzNCNDFGAA==
                    emoji: 😀
              contextualReplyMessage:
                summary: Contextual reply message
                value:
                  messaging_product: whatsapp
                  recipient_type: individual
                  to: '919373084880'
                  context:
                    message_id: >-
                      wamid.HBgMOTE5MzczMDg0ODgwFQIAERgSN0RDMUZCMEVGRjQ3MDA2ODNDAA==
                  type: text
                  text:
                    body: You're welcome!
              readReceiptMessage:
                summary: Mark an incoming message as read (optional typing indicator)
                value:
                  messaging_product: whatsapp
                  status: read
                  message_id: >-
                    wamid.HBgMOTE5MzczMDg0ODgwFQIAERgSNzJFNDJBOUFFNjA4MUZGNUEyAA==
                  typing_indicator:
                    type: text
      responses:
        '200':
          description: |
            Request accepted for delivery. This does not guarantee
            receipt by the recipient.
        '400':
          description: Invalid JSON, missing fields, or malformed recipient.
        '401':
          description: Bearer token is missing, invalid, or expired.
        '403':
          description: |
            Sender account is not permitted to message the recipient.
            This can include a re-engagement-window restriction.
        '404':
          description: Sender account ID in the URL was not found.
        '413':
          description: Media exceeds Meta's size limit.
        '429':
          description: Sender rate limit exceeded.
        '500':
          description: Server-side error. Retry or contact support.
      servers:
        - url: https://testqa.cpaas.globeteleservices.com
          description: Sandbox environment
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API token issued for your account. Send as `Authorization: Bearer
        <token>`.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.