Send message
Requires authentication — see Authentication.
Sends a new Notification depending on the type of communication channel. you want to send (SMS, Email, RCS, WhatsApp).The channel parameter allows us to differentiate the type of communication channel between SMS, WhatsApp, Email, or RCS. That's why only this endpoint is used for the send of Notification because the channel help us to send each type of communication channel.
This is the single endpoint behind the unified Messaging API guide (covering text, media, location, contacts, and interactive messages), and is also used by the channel-specific sending tutorials: Sending Outbound SMS, Sending Email, Sending RCS, Text Message Template, and Media Message Template.
Request
- Base URLhttps://elastic.messangi.me/oberyn
- URLhttps://elastic.messangi.me/oberyn/v2/notification
- AuthHTTP bearer
Request body
Example request
{
"channel": "EMAIL",
"callbacks": [
"http://www.mycalbackk.com?id=1",
"http://www.mycalbackk.com?id=2"
],
"request": {
"message": "example text",
"clientId": "48118112",
"externalId": "123456789abcde",
"to": "+580000000005|email@service.com",
"from": "service@service.com",
"subject": "email subject"
}
}Response
Accepted the request to send the notification
Example response
{
"meta": {
"timestamp": 1597166699457,
"transactionId": "70169d77-c165-4795-9932-35b8a3af96fb",
"explain": "a descriptive text"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.