Additionally, you can send custom notifications to this component using our https://api.velt.dev/v1/notifications/add API end point.Sample Post Request:
{ "data": { "apiKey": "YOUR_API_KEY", "authToken": "YOUR_AUTH_TOKEN", "documentId": "YOUR_DOCUMENT_ID", "actionUser": { "email": "actionuseremail@domain", // required "name": "Action Username", // optional "photoUrl": "Action User Photo URL", // optional "userId": "User ID", // required }, "displayHeadlineMessageTemplate": "This is main template, you can pass variables using curly brackets like this: {actionUser}, {recipientUser}, {yourCustomVariableWithStringValue}", "displayHeadlineMessageTemplateData": { "actionUser": { "email": "actionuseremail@domain", // required "name": "Action Username", // optional "photoUrl": "Action User Photo URL", // optional "userId": "User ID", // required }, "recipientUser": { "email": "recipientuseremail@domain", // required "name": "Recipient Username", // optional "photoUrl": "Recipient User Photo URL", // optional "userId": "User ID", // required }, "yourCustomVariableWithStringValue": "Variable will be replaced with this text" }, "displayBodyMessage": "This is body message (Secondary message)", // Pass list of users who should be notified, notification will be shown to all the users in all section in notification panel and notification history panel, but it will be shown in 'forYou' section also to notifyUsers. "notifyUsers": [ { "email": "notifyuseremail@domain", // required "name": "Notify User Name", // optional "photoUrl": "Notify User Photo URL", // optional "userId": "User ID", // required } ] }}