Send alerts
Create an alert rule
Changed onCreates a rule that watches the bounce, complaint, or delivery rate of each of your sending domains. Nylas checks every rule every 5 minutes. When a domain's rate over the last window_hours crosses the threshold, Nylas sends an alert.triggered notification. Subscribe to that trigger with a webhook to receive it. Rules cover Agent Account and Transactional send messages only.
post/v3/alerts/send
Request
- Base URLhttps://api.us.nylas.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"metric": "bounce_rate",
"threshold": 5,
"window_hours": 1,
"min_volume": 50
}Response
Created. Returns the new alert rule.
Example response
{
"data": {
"id": "8069c06e-a4c0-4bfa-9535-0f286575cc0e",
"application_id": "26302083-12ae-4f38-91fe-6cba93da03ee",
"metric": "bounce_rate",
"direction": "above",
"threshold": 5,
"window_hours": 1,
"min_volume": 50,
"created_at": 1792785235,
"updated_at": 1792785235
}
}Changes
- info
endpoint added
- info