Notification Destinations
Notification destinations define where and how you receive alerts. You can configure them at four levels: team-wide, per monitor, per tag, or per tag group.
You’ll need a team ID, monitor ID, or tag or tag group ID for the destination you want to manage.
Example request:
$ OHDEAR_TOKEN="your API token" $ curl https://ohdear.app/api/team-notification-destinations \ -H "Authorization: Bearer $OHDEAR_TOKEN" \ -H 'Accept: application/json' \ -H 'Content-Type: application/json'
All endpoints below follow the same authentication pattern.
Destination response fields #
Every notification destination endpoint returns an object with these fields:
{ "id": 1, "label": "Primary alerts", "team_id": 1, "channel": "mail", "destination": { "mail": "alerts@example.com" }, "notification_types": [ "HttpUptimeCheckFailedNotification", "HttpUptimeCheckRecoveredNotification", "CertificateExpiresSoonNotification" ], "enabled": true, "group_notifications": false, "group_window_seconds": 60, "groupable_notification_types": [ "HttpUptimeCheckFailedNotification", "HttpUptimeCheckRecoveredNotification", "TcpUptimeCheckFailedNotification", "TcpUptimeCheckRecoveredNotification", "PingUptimeCheckFailedNotification", "PingUptimeCheckRecoveredNotification", "CertificateUnhealthyNotification", "CertificateFixedNotification" ], "disabled_reason": null }
id: unique identifier for the destinationlabel: custom label (if set)team_id: the team ID (only present for team-level destinations)channel: the notification channel (see supported channels)destination: channel-specific destination configuration (see channel destination formats)notification_types: array of notification type class names this destination receives (see available notification types)enabled: whether the destination is currently active. A disabled destination keeps all its settings but sends no notifications (see enable or disable)group_notifications: whether matching alerts are collected into groups for this destinationgroup_window_seconds: the fixed collection window, either 30, 60, or 120 secondsgroupable_notification_types: the notification types supported for grouping on this channel, or an empty array for other channelsdisabled_reason: when we disabled a destination automatically after repeated delivery failures, this explains why. It'snullfor active destinations and for destinations you disabled yourself
For tag-level destinations, the response also includes a tag object. For tag-group-level destinations, it includes a tagGroup object.
List notification destinations #
Each level has its own list endpoint:
- Team-level:
GET /api/team-notification-destinations - Monitor-level:
GET /api/monitors/{monitorId}/notification-destinations - Tag-level:
GET /api/tags/notification-destinations - Tag-group-level:
GET /api/tag-groups/{tagGroupId}/notification-destinations
Each returns a list of destination objects.
Create a notification destination #
Each level has its own create endpoint:
- Team-level:
POST /api/team-notification-destinations/{teamId} - Monitor-level:
POST /api/monitors/{monitorId}/notification-destinations - Tag-level:
POST /api/tags/{tagId}/notification-destinations - Tag-group-level:
POST /api/tag-groups/{tagGroupId}/notification-destinations
Request body (JSON):
channel(string, required) -- the notification channel to use (see supported channels)destination(object, required) -- channel-specific fields (see channel destination formats)notification_types(array, optional) -- array of notification type class names. If omitted, all available notification types for the channel are enabledlabel(string, optional) -- a custom label for this destination (max 191 characters)group_notifications(boolean, optional) -- enable grouped notifications. Defaults tofalsewhen creating a destination; omitted values are preserved on updategroup_window_seconds(integer, optional) -- collection window in seconds. Allowed values:30,60,120. Defaults to60on create; omitted values are preserved on updatetest(boolean, optional) -- set totrueto send a test notification immediately after creation. If the test fails, for example because your webhook answers with an error, you'll get a 422 with the reason inerrors.destination.url. The destination is still saved, so you can fix it with an update.
Returns the destination object.
Update a notification destination #
Each level has its own update endpoint:
- Team-level:
PUT /api/team-notification-destinations/{teamId}/destination/{destinationId} - Monitor-level:
PUT /api/monitors/{monitorId}/notification-destinations/{destinationId} - Tag-level:
PUT /api/tags/{tagId}/notification-destinations/{destinationId} - Tag-group-level:
PUT /api/tag-groups/{tagGroupId}/notification-destinations/{destinationId}
The request body accepts the same fields as creation.
Returns the updated destination object.
Enable or disable a notification destination #
Disabling a destination pauses it without deleting it: all its settings and selected notification types are kept, but no notifications are sent until you enable it again. This is handy when you want to silence a channel temporarily, or to switch one back on after Oh Dear disabled it automatically following repeated delivery failures.
Each level has its own enable and disable endpoint:
- Team-level:
POST /api/team-notification-destinations/{teamId}/destination/{destinationId}/enableand.../disable - Monitor-level:
POST /api/monitors/{monitorId}/notification-destinations/{destinationId}/enableand.../disable - Tag-level:
POST /api/tags/{tagId}/notification-destinations/{destinationId}/enableand.../disable - Tag-group-level:
POST /api/tag-groups/{tagGroupId}/notification-destinations/{destinationId}/enableand.../disable
These endpoints take no request body.
$ curl -X POST https://ohdear.app/api/monitors/1/notification-destinations/123/disable \ -H "Authorization: Bearer $OHDEAR_TOKEN" \ -H 'Accept: application/json'
Both return the updated destination object. After a disable, enabled is false; after an enable, enabled is true and disabled_reason is cleared. Enabling and disabling through the API never sends an email, so you can flip the state without notifying your team.
Delete a notification destination #
Each level has its own delete endpoint:
- Team-level:
DELETE /api/team-notification-destinations/{teamId}/destination/{destinationId} - Monitor-level:
DELETE /api/monitors/{monitorId}/notification-destinations/{destinationId} - Tag-level:
DELETE /api/tags/{tagId}/notification-destinations/destination/{destinationId} - Tag-group-level:
DELETE /api/tag-groups/{tagGroupId}/notification-destinations/{destinationId}
Returns 204 No Content on success.
Supported channels #
Oh Dear supports these notification channels:
| Channel | Value |
|---|---|
mail |
|
| Slack | slackApi |
| Slack Webhook | slack |
| Discord | discord |
| Telegram | telegram |
| Microsoft Teams | microsoftTeamsWorkflow |
| Microsoft Teams (Legacy) | microsoftTeams |
| Google Chat | googleChat |
| Zoom Team Chat (Beta) | zoom |
| PagerDuty | pagerDuty |
| Opsgenie | opsgenie |
| Pushover | pushover |
| ntfy | ntfy |
| SMS | sms |
| Webhooks | webhook |
Channel destination formats #
Each channel requires specific fields in the destination object.
Email:
{ "mail": "alerts@example.com" }
Slack (API):
{ "channel": "#ops-alerts", "slack_api_token": "xoxb-..." }
Slack Webhook:
{ "url": "https://hooks.slack.com/services/..." }
The url field accepts any HTTPS webhook URL that supports the Slack message format, including services like Zulip, Mattermost, and RocketChat.
Discord:
{ "url": "https://discordapp.com/api/webhooks/..." }
Telegram:
{ "chat_id": "123456789" }
Microsoft Teams (Workflow):
{ "url": "https://..." }
Microsoft Teams (Legacy):
{ "url": "https://outlook.webhook.office.com/..." }
Google Chat:
{ "url": "https://chat.googleapis.com/v1/spaces/..." }
Zoom Team Chat (Beta):
Create a standard connection with Zoom's Incoming Webhook app, as described in the Zoom setup guide. The destination object accepts:
url(string, required) -- the HTTPS endpoint onintegrations.zoom.us, with a path starting with/chat/webhooks/incomingwebhook/. No query parameters are needed;?format=fullis also accepted.token(string, required) -- the verification token, without aBearerprefix. Signature and basic-auth connections aren't supported.
For example:
{ "url": "https://integrations.zoom.us/chat/webhooks/incomingwebhook/example-connection", "token": "your-verification-token" }
Opsgenie:
{ "apiKey": "...", "priority": "P3", "euEndpoint": false }
PagerDuty:
{ "apiKey": "...", "serviceId": "...", "fromEmail": "alerts@example.com" }
Webhooks:
{ "url": "https://example.com/webhook", "headers": [ { "name": "Authorization", "value": "Bearer ..." } ] }
The headers field is optional and takes up to 5 headers. We send them with every webhook to this destination. An update replaces the headers, so send them again when you change only the URL.
SMS:
{ "to": "+1234567890", "from": "oh dear", "apiKey": "...", "apiSecret": "..." }
Pushover:
{ "userKey": "...", "apiToken": "...", "priority": "0" }
ntfy:
{ "serverUrl": "https://ntfy.sh", "topic": "my-ohdear-alerts", "accessToken": "tk_...", "priority": "3" }
serverUrl(required) -- the ntfy server URL. Usehttps://ntfy.shfor the hosted service, or your own server URL for self-hosted instancestopic(required) -- the topic name your devices are subscribed to. Choose something hard to guess, as topics on ntfy.sh are publicaccessToken(optional) -- an access token for authenticated ntfy servers or topicspriority(optional) -- priority level from1(min/silent) to5(max/urgent). Defaults to3(default)
Available notification types #
You can control exactly which notifications a destination receives by passing an array of notification type class names. Here are all available types, grouped by check:
Uptime:
HttpUptimeCheckFailedNotification, HttpUptimeCheckRecoveredNotification, PingUptimeCheckFailedNotification, PingUptimeCheckRecoveredNotification, TcpUptimeCheckFailedNotification, TcpUptimeCheckRecoveredNotification
Certificate health:
CertificateExpiresSoonNotification, CertificateFixedNotification, CertificateHasChangedNotification, CertificateUnhealthyNotification
Broken links:
BrokenLinksFoundNotification, BrokenLinksFixedNotification
Mixed content:
MixedContentFoundNotification, MixedContentFixedNotification
Performance:
PerformanceThresholdExceededNotification, PerformanceThresholdRecoveredNotification, PerformanceDeltaExceededNotification
Lighthouse:
LighthouseIssuesDetectedNotification, LighthouseIssuesFixedNotification
Cron jobs:
CronNotExecutedOnTimeNotification, CronFailedNotification
Sitemap:
SitemapIssuesFoundNotification, SitemapIssuesFixedNotification
DNS:
DnsIssuesFoundNotification, DnsIssuesFixedNotification, DnsRecordsChangedNotification
DNS blocklist:
DnsBlocklistIssuesFoundNotification, DnsBlocklistIssuesFixedNotification
Application health:
ApplicationHealthClientErrorNotification, ApplicationHealthResultsTooOldNotification, ApplicationHealthProblemDetectedNotification, ApplicationHealthProblemFixedNotification
Domain:
DomainIssuesFoundNotification, DomainIssuesFixedNotification
Port scanning:
PortsCheckFailedNotification, PortsCheckRecoveredNotification
AI-powered monitoring:
AiCheckSucceededNotification, AiCheckFailedNotification
Oh Dear system:
MonitorAddedNotification
MonitorAddedNotification type is not available for the Opsgenie and PagerDuty channels.
Grouped notifications #
Grouping collects matching alerts into one message for an individual destination. It supports email, Slack, Slack webhooks, Discord, and Google Chat. Enabling it on another channel returns a validation error.
The first accepted alert starts the 30, 60, or 120 second window. Later alerts do not extend it. Even a single alert waits, and queue or provider delays can add time. HTTP, TCP, and ping uptime failures and recoveries are grouped separately, as are unhealthy and fixed certificates. Other subscribed events and connection tests continue immediately. Alerts accepted during business hours may arrive after those hours end.
Turning grouping off closes open groups. Related recovery alerts wait for earlier groups to finish, so you may briefly receive grouped messages while pending alerts drain. Changing the window applies to newly opened groups only.
Changing a destination's address, its destination object, discards any group still collecting for the previous address. Those alerts are not redelivered to the new one.
Uptime recovery messages include the number of matching monitors still down, with a status timestamp. This is the destination’s latest known state, not a claim that the outages share a cause. Unknown or stale results are counted separately. If that optional status lookup fails, the recovery still arrives without a remaining count.
You can inspect grouped members through the destination’s existing sent-notification log. Links in messages open the monitor dashboard, scoped to the affected or still-down monitors.
Feel free to reach out via support@ohdear.app or on X via @OhDearApp if you have any other questions. We'd love to help!