Before proceeding with the configuration, make sure you understand the fields that will change based on the notification channel (SMS).
Request
Header Params
Authorization
string
required
Do not include square [] brackets in the request
Example:
"Bearer [token get from Authorization]"
Content-Type
string
required
Example:
"application/json"
Body Params application/json
array of:
channels
array [object {3}]
required
List of communication channels.
channel
string
required
Communication method (e.g., "sms").
to
string
required
Recipient's contact information (e.g., phone).
metaData
object
required
Additional settings such as retry policies.
subject
string
required
Subject of the notification.
message
string
required
The message content to be sent.
refId
string
required
Unique reference ID for the notification.
Example
[{"channels":[{"channel":"sms","to":"0763407346","metaData":{"retryOnFailure":true}}],"subject":"OTP","message":"Your code is 0092","refId":"REF0092"}]
{"code":"SUCCESS","message":"Request success","data":[{"notificationId":"3b65274a-17aa-45ab-9af3-e39432976c11","status":0,"exception":"","channels":[{"channel":"sms","to":"0763407346","metaData":{"retryOnFailure":true}}],"subject":"OTP","message":"Your code is 0092","refId":"REF0092"}]}