Events
Trigger event
Changed onTrigger event is the main (and only) way to send notifications to subscribers. The trigger identifier is used to match the particular workflow associated with it. Maximum number of recipients can be 100. Additional information can be passed according the body interface below.
To prevent duplicate triggers, you can optionally pass a **transactionId** in the request body. If the same **transactionId** is used again, the trigger will be ignored. The retention period depends on your billing tier.
post/v1/events/trigger
Request
- Base URLhttps://api.novu.co
- AuthAPI key in header Authorization
Headers
idempotency-keystring
A header for idempotency purposes
Request body
Example request
{
"name": "workflow_identifier",
"payload": {
"comment_id": "string",
"post": {
"text": "string"
}
},
"bridgeUrl": "https://your-tunnel.novu.co/api/novu",
"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",
"to": [
{
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"phone": "+1234567890",
"avatar": "https://example.com/avatar.jpg",
"locale": "en-US",
"timezone": "America/New_York"
}
],
"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
Created
Changes
- breaking
the
/////request property format changed from no format toemail - breaking
the
/////request property format changed from no format toemail - 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
google-chatenum value to the request property/////// - info
added the new
google-chatenum value to the request property///////// - info
added the new
photon-imessageenum value to the request property/////// - info
added the new
photon-imessageenum value to the request property/////// - info
added the new
photon-imessageenum value to the request property/////////
- info