Send Messages

You can send supported message types to your customers, currently Whatsapp Business API supports the following message types:

  1. Text Messages

  2. Reaction Messages

  3. Media Messages

  4. Contact Messages

  5. Interactive Messages

  6. Template Messages

  7. Reply Messages

Messages are identified by a unique ID (WAMID). You can track message status in Webhooks through its WAMID, save your message ID in your database to track message status in your webhook.

Sample sent message request using Curl

curl -X POST --location 'https://wa-api.neuapix.com/whatsapp/v3/{{Channel-ID}}/messages' \
--header 'Authorization: Bearer {{place your token here}}' \
--header 'Content-Type: application/json' \
--data '{
    "messaging_product": "whatsapp",
    "recipient_type": "individual",
    "to": "{{Receipient-Phone-Number}}",
    "type": "text",
    "text":{
        "body":"hai"
    }
}'

Successful response returns WAMID:

{
    "messages": [
        {
            "id": "wamid.HBgNNjI4MTM4MTQ3NTE1ORUCABEYEjFBNzU2QTJGQzJFQzQ1N0QwMAA="
        }
    ]
}

This is the general payload for requesting message API:

Send Message

POST https://wa-api.neuapix.com/whatsapp/v3/{{Channel-ID}}/messages

Use this API to send messages to your customers

Path Parameters

Name
Type
Description

Channel-ID*

String

Use your channel ID see Get Channel ID

Headers

Name
Type
Description

Authorization*

Bearer

JWT token, see Get Token

Content-Type*

application/json

The content type is application/json

Request Body

Name
Type
Description

payload*

Object

Please see sample payload for each message types text, reaction, media, contact, interactive, template, reply

{
    "messages": [
        {
            "id": "wamid.xxxx"
        }
    ]
}

Last updated