Events
Broadcast event to all
Changed onTrigger a broadcast event to all existing subscribers, could be used to send announcements, etc. In the future could be used to trigger events to a subset of subscribers based on defined filters.
post/v1/events/trigger/broadcast
Request
- Base URLhttps://api.novu.co
- AuthAPI key in header Authorization
Headers
idempotency-keystring
A header for idempotency purposes
Request body
Example request
{
"payload": {
"comment_id": "string",
"post": {
"text": "string"
}
},
"overrides": {
"steps": {
"email-step": {
"providers": {
"sendgrid": {
"templateId": "1234567890"
}
},
"layoutId": "step-specific-layout"
}
},
"channels": {
"email": {
"layoutId": "promotional-layout-2024"
}
},
"providers": {
"sendgrid": {
"templateId": "1234567890"
}
}
},
"agentId": "support-agent",
"actor": {
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"avatar": "https://example.com/avatar.jpg",
"locale": "en-US",
"timezone": "America/New_York"
}
}Response
OK
Changes
- breaking
the
/////request property format changed from no format toemail
- breaking
- info
added the new
google-chatenum value to the request property/////// - info
added the new
photon-imessageenum value to the request property///////
- info