Send a notification immediately
POST
/api/v1/notifications/send
const url = 'https://renotify.app/api/v1/notifications/send';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"notification_id":1,"notification_audience":"VIP Customers","notification_template":"welcome_new_user","test_mode":false,"test_phone":"+15550101234"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://renotify.app/api/v1/notifications/send \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "notification_id": 1, "notification_audience": "VIP Customers", "notification_template": "welcome_new_user", "test_mode": false, "test_phone": "+15550101234" }'Queue the broadcast for its saved segment, template and variables, exactly as “Send now” does in the app. With test_mode, send it once to test_phone instead.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
notification_id
required
The notification ID to send.
integer
Example
1notification_audience
Deprecated and ignored: the broadcast’s saved segment is used.
string
Example
VIP Customersnotification_template
Deprecated and ignored: the broadcast’s saved template is used.
string
Example
welcome_new_usertest_mode
Send one test message to test_phone instead of the audience.
boolean
Example
falsetest_phone
The number for a test send, with its country code. Required with test_mode.
string
Example
+15550101234