Verify Configured Channel
POST
/alerts/v1/notifications/test
const url = 'http://localhost:3000/alerts/v1/notifications/test';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"message":"Testing Email integration. If you can read this, it\'s working!","payload":{"error":{"selectChannel":true,"configureChannel":true},"manager":"grafana","name":"udhw","type":"email","config":{"recipientAddresses":"jerald@sanketika.in"}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3000/alerts/v1/notifications/test \ --header 'Content-Type: application/json' \ --data '{ "message": "Testing Email integration. If you can read this, it'\''s working!", "payload": { "error": { "selectChannel": true, "configureChannel": true }, "manager": "grafana", "name": "udhw", "type": "email", "config": { "recipientAddresses": "jerald@sanketika.in" } } }'Request Body
Section titled “Request Body ” Media type application/json
object
Example
{ "message": "Testing Email integration. If you can read this, it's working!", "payload": { "error": { "selectChannel": true, "configureChannel": true }, "manager": "grafana", "name": "udhw", "type": "email", "config": { "recipientAddresses": "jerald@sanketika.in" } }}Responses
Section titled “ Responses ”Successful response
Media type application/json