Skip to content

Send a notification immediately

POST
/api/v1/notifications/send
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.

Media typeapplication/json
object
notification_id
required

The notification ID to send.

integer
Example
1
notification_audience

Deprecated and ignored: the broadcast’s saved segment is used.

string
nullable
Example
VIP Customers
notification_template

Deprecated and ignored: the broadcast’s saved template is used.

string
nullable
Example
welcome_new_user
test_mode

Send one test message to test_phone instead of the audience.

boolean
Example
false
test_phone

The number for a test send, with its country code. Required with test_mode.

string
nullable
Example
+15550101234