Avinash
NNovu
•Created by Avinash on 7/11/2024 in #💬│support
need actual message instead of "new Notification"
curl -X POST 'https://api.novu.co/v1/events/trigger' \
-H 'Authorization: ApiKey NOVU_SECRET_KEY' \
-H 'Content-Type: application/json' \
-d '{
"name": "sassari-alert",
"to": {
"subscriberId": "avinash.uteka@gmail.com",
"email": "avinash.uteka@gmail.com"
},
"payload": {
"building_id": 235,
"trigger_name": "sassari-alert",
"project_id": 147,
"alert_type": 104,
"title": "Power reached over threshold.",
"description": "Power reached over 500% in last 5 minutes\nfor the building building 1 with the device shellyem-485519D70B85"
},
"overrides": {
"fcm": {
"type": "data",
"imageUrl": "https://app.staging.preflet.com/_nuxt/img/logo.77c72cf.png"
}
}
}'
this is my payload @Pawan Jain
9 replies