Get the org-default notification settings
const url = 'https://api.overwatch.weareheavy.dev/v1/notifications';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.overwatch.weareheavy.dev/v1/notifications \ --header 'Authorization: Bearer <token>'The organization’s default notification receivers, plus which sites override them. Session-only, owner/admin.
Authorizations
Section titled “ Authorizations ”Responses
Section titled “ Responses ”The org defaults and the overriding site ids.
object
Notification receivers for one scope (org defaults or a site override). On reads every field is present; on writes all fields are optional — omitted fields keep their current value. At most 10 recipients and 5 webhooks per list.
object
Webhooks for uptime incident alerts.
A notification webhook. slack, discord, and teams format the
message for the respective chat app; http POSTs a structured JSON
payload to any endpoint.
object
Webhooks for search-traffic-drop alerts.
A notification webhook. slack, discord, and teams format the
message for the respective chat app; http POSTs a structured JSON
payload to any endpoint.
object
Webhooks for Core Web Vitals regression alerts.
A notification webhook. slack, discord, and teams format the
message for the respective chat app; http POSTs a structured JSON
payload to any endpoint.
object
Site overrides only — union the org defaults back in at delivery time. Meaningless on the org-defaults scope itself.
The sites that carry their own override row.
object
Example
{ "settings": { "uptimeRecipients": [ { "kind": "user" } ], "uptimeWebhooks": [ { "kind": "slack" } ], "crawlReportRecipients": [ { "kind": "user" } ], "searchAlertRecipients": [ { "kind": "user" } ], "searchAlertWebhooks": [ { "kind": "slack" } ], "perfAlertRecipients": [ { "kind": "user" } ], "perfAlertWebhooks": [ { "kind": "slack" } ], "reportRecipients": [ { "kind": "user" } ], "includeOrgDefaults": true }}Missing or invalid credentials.
object
A human-readable error message.
Example
{ "error": "invalid api key"}A dashboard session is required (API-key callers are rejected), or the session’s role does not allow this action.
object
A human-readable error message.
Example
{ "error": "a dashboard session is required"}