curl --request POST \
--url https://api.bland.ai/v1/alarms/{id}/notify \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '
{
"type": "<string>"
}
'{
"data": {
"success": true,
"message": "Alarm notification test completed: 2/2 methods successful",
"results": {
"webhook": {
"success": true,
"statusCode": 200
},
"email": {
"success": true,
"sentTo": ["alerts@example.com"]
}
}
},
"errors": null
}
Send a test alarm or recovery notification.
curl --request POST \
--url https://api.bland.ai/v1/alarms/{id}/notify \
--header 'Content-Type: application/json' \
--header 'authorization: <authorization>' \
--data '
{
"type": "<string>"
}
'{
"data": {
"success": true,
"message": "Alarm notification test completed: 2/2 methods successful",
"results": {
"webhook": {
"success": true,
"statusCode": 200
},
"email": {
"success": true,
"sentTo": ["alerts@example.com"]
}
}
},
"errors": null
}
alarm, recovery.webhook, email, sms).null on success response, or an array with NOTIFICATION_TEST_FAILED.{
"data": {
"success": true,
"message": "Alarm notification test completed: 2/2 methods successful",
"results": {
"webhook": {
"success": true,
"statusCode": 200
},
"email": {
"success": true,
"sentTo": ["alerts@example.com"]
}
}
},
"errors": null
}
Was this page helpful?