Trigger event
Trigger 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.
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
Changed in 5 of the 13 revisions of this API.620
- ▲
removed the enum value
novu-agent-chatof the request property///////request-property-enum-value-removed
- ▲
removed the enum value
novu-agent-chatof the request property///////request-property-enum-value-removed
- ▲
removed the enum value
novu-agent-chatof the request property/////////request-property-enum-value-removed
- ○
added the new
novu-web-chatenum value to the request property///////request-property-enum-value-added
- ○
added the new
novu-web-chatenum value to the request property///////request-property-enum-value-added
- ○
added the new
novu-web-chatenum value to the request property/////////request-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
removed the enum value
novu-web-chatof the request property///////request-property-enum-value-removed
- ▲
removed the enum value
novu-web-chatof the request property///////request-property-enum-value-removed
- ▲
removed the enum value
novu-web-chatof the request property/////////request-property-enum-value-removed
- ○
added the new
novu-agent-chatenum value to the request property///////request-property-enum-value-added
- ○
added the new
novu-agent-chatenum value to the request property///////request-property-enum-value-added
- ○
added the new
novu-agent-chatenum value to the request property/////////request-property-enum-value-added
- ▲
- ○
added the new optional request property
new-optional-request-property
- ○
- ○
added the new
novu-web-chatenum value to the request property///////request-property-enum-value-added
- ○
added the new
novu-web-chatenum value to the request property///////request-property-enum-value-added
- ○
added the new
novu-web-chatenum value to the request property/////////request-property-enum-value-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the new optional request property
new-optional-request-property
- ○
added the new
lineenum value to the request property///////request-property-enum-value-added
- ○
added the new
lineenum value to the request property///////request-property-enum-value-added
- ○
added the new
lineenum value to the request property/////////request-property-enum-value-added
- ○
added the new
sendblueenum value to the request property///////request-property-enum-value-added
- ○
added the new
sendblueenum value to the request property///////request-property-enum-value-added
- ○
added the new
sendblueenum value to the request property/////////request-property-enum-value-added
- ○
added the new
webex-messagingenum value to the request property///////request-property-enum-value-added
- ○
added the new
webex-messagingenum value to the request property///////request-property-enum-value-added
- ○
added the new
webex-messagingenum value to the request property/////////request-property-enum-value-added
- ○