Sending WhatsApp text message session
Send a WhatsApp text-only message through the notification endpoint using a simple JSON request body. For developers sending basic text messages programmatically.
Text messages are messages containing only a text body.

Direct SendYou can send a text message with Direct Send: you send the content of the message without a message template, and you add the
directSendattribute to the request. Direct Send is a beta feature that requires access granted by Meta. For more information, see Sending WhatsApp message with Direct Send.
Base URL and authentication
All requests on this page use the base URL https://elastic.messangi.me/oberyn. Send your API key in the Authorization header with the Bearer scheme, for example Authorization: Bearer <your_api_key>. For more information, see Authentication.
HTTP Request : POST /v2/notification
The following text message example includes only a text body:
{
"channel": "WHATSAPP",
"request": {
"message": "Welcome to EliPackage",
"to": "+1000000002",
"from": "1000000001",
"type":"text",
"replyTo": "1234567890ab"
}
}The parameters presented in the request body example when sending a Session Text Message are the following:
| Parameter | Required | Description |
|---|---|---|
| channel | Yes | Specifies the type of delivery channel through which the notification message will be sent: In this case, enter the |
| request | Yes | Message content. |
| request. message |
Yes | Content of the session text message that will be sent to the end user. Emojis and markdown are supported. Maximum length: 1024 characters. |
| request. to |
Conditional | Determines the destination phone number for your message template. Numbers are specified in E.164 format → (‘+’ and a country code). Required if you do not send |
| request. recipient |
Conditional | Identifies a recipient with a reserved username, using the Use this instead of Required if you do not send |
| request. from |
Yes | Phone number of the sender. Phone number provided during the WABA account setup will be used as the sender of the notification message. |
| request. type |
Yes | Type of message you want to send. Supported options:
In this example, we set the |
| request. replyTo |
No | Identifier of the message that this message replies to. |
| request. directSend |
No | Only applies to the Set it to Direct Send is a beta feature that requires access granted by Meta for your WABA, and it is only for Utility content. If you send For more information, see Sending WhatsApp message with Direct Send. |
| request. externalId |
No | Alphanumeric identifier used for reporting purposes. |
| request. clientId |
No | Unique user identifier that can be used for reporting purposes. This is an identifier you can use to uniquely identify the destination address in your systems. This is similar to the externalId and will be sent back to you if you are requesting callbacks that contain status changes of the messages you send. |
| callbacks | No | Indicate one or more webhook URLs to notify about the status of the message delivery. That is, if you want to receive the status of the message you've sent to your contacts, you need to specify your endpoint. Your endpoint must have a HTTP POST access method and receive a JSON body. The URL is the external callback where the events of the message will be registered and published. Once a message is processed, its status will be posted to your callback URL. To view the full list and meaning of each status, please refer to the WhatsApp Status section. |
When you send a Session Text Message, the response body contains the following data:
{
"meta": {
"timestamp": 1642531254980,
"transactionId": "077da1d0-e089-487e-aed0-59534ba2d9f5",
"explain": "Send Notification"
}
}Parameters presented in the response body example when sending the Session Text Message are the following:
| Parameter | Description |
|---|---|
| meta | "meta" segment is dedicated to metadata regarding the call itself. |
| meta. timestamp |
Call’s time mark. Sequence of characters identifying when the message has been sent. |
| meta. transactionId |
Call’s transaction ID, this will help our teams to locate issues faster if arose. |
| meta. explain |
Useful message regarding the operation or the call. |
Updated 11 days ago
