# 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`**:

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

This is the general payload for requesting `message API:`

## Send Message

<mark style="color:green;">`POST`</mark> `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<mark style="color:red;">\*</mark> | String | Use your channel ID see [Get Channel ID](https://docs-wa.neuapix.com/whatsapp-api/getting-started/get-access-token) |

#### Headers

| Name                                            | Type             | Description                                                                                           |
| ----------------------------------------------- | ---------------- | ----------------------------------------------------------------------------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | Bearer           | JWT token, see [Get Token](https://docs-wa.neuapix.com/whatsapp-api/getting-started/get-access-token) |
| Content-Type<mark style="color:red;">\*</mark>  | application/json | The content type is `application/json`                                                                |

#### Request Body

| Name                                      | Type   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| ----------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| payload<mark style="color:red;">\*</mark> | Object | Please see sample payload for each message types [`text`](https://docs-wa.neuapix.com/whatsapp-api/whatsapp-api/send-messages/text-mesage), [`reaction`](https://docs-wa.neuapix.com/whatsapp-api/whatsapp-api/send-messages/reaction-message), [`media`](https://docs-wa.neuapix.com/whatsapp-api/whatsapp-api/media), [`contact`](https://docs-wa.neuapix.com/whatsapp-api/whatsapp-api/send-messages/contact-message), [interactive](https://docs-wa.neuapix.com/whatsapp-api/whatsapp-api/send-messages/interactive-message), [`template`](https://docs-wa.neuapix.com/whatsapp-api/whatsapp-api/send-messages/template-message), [`reply`](https://docs-wa.neuapix.com/whatsapp-api/whatsapp-api/send-messages/reply-message) |

{% tabs %}
{% tab title="200: OK Success Response, you will get message ID to identify your message" %}

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

{% endtab %}
{% endtabs %}
