Skip to content

Notification Channels

A notification channel is an addressable target for alert notifications: a Slack workspace, a phone number, an email inbox, a webhook URL, or a CloudEvents sink. Channels are referenced by escalation-policy step targets.

MethodPathDescriptionScope
GET/api/v1/notification-channelsList.notification_channels
POST/api/v1/notification-channelsCreate.notification_channels
GET/api/v1/notification-channels/{id}Read.notification_channels
PATCH/api/v1/notification-channels/{id}Update.notification_channels
DELETE/api/v1/notification-channels/{id}Delete. Fails if referenced by a policy or monitor.notification_channels
POST/api/v1/notification-channels/{id}/testSend a test notification.notification_channels
POST/api/v1/notification-channels/{id}/rotate-secretReplace a webhook channel’s signing secret and return the new one once. Owners, admins and API keys.notification_channels
POST/api/v1/notification-channels/{id}/verify/sendSend a verification code to an SMS or voice channel’s number. Owners, admins and API keys. YipYap Cloud only.notification_channels
POST/api/v1/notification-channels/{id}/verify/confirmConfirm the code and activate the channel. Owners, admins and API keys. YipYap Cloud only.notification_channels

Types marked Cloud only do not exist on self-hosted YipYap FOSS, and the API refuses them there. On YipYap Cloud, the types marked Pro need a Pro or Enterprise plan. FOSS has no plan gate.

TypeConfig keys
slackbot_token (a Slack bot token, xoxb-...), channel_id. The token reads back masked. See Slack.
slack_appinstallation_id (a connected workspace from GET /api/v1/integrations/slack/installations), channel_id (a Slack channel ID such as C01234ABC), optional channel_name (shown in the console). No token: YipYap sends with the workspace’s token. The workspace must be connected to your organization, and other keys are rejected. Cloud only. See Slack.
discord_appinstallation_id (a Discord server that added the YipYap Discord app), channel_id, optional channel_name. No token. Cloud only. See Discord.
discordbot_token, channel_id. The token reads back masked. For a Discord webhook URL, use a webhook channel.
telegramchat_id only. Messages go through the YipYap bot (on FOSS, the operator’s bot), so there is no token to send. Pro on Cloud.
emailto, smtp_profile_id (omit for SaaS-managed SMTP).
telnyx_smsto, a US or Canada number (+1). Cloud only, Pro. Starts unverified, see Verify a phone number.
telnyx_voiceto, a US or Canada number (+1). Cloud only, Pro. Starts unverified, see Verify a phone number.
webhookurl, optional headers (object of header name to value), optional format (generic, slack, discord, teams, google_chat, lark, dingtalk, synology; omit it to detect from the URL). Always POST. Write-only after save: reads return the header names and the URL host only. See Webhooks.
ntfytopic, optional server_url (default https://ntfy.sh), optional token.
pushoverapi_token, user_key, optional device, optional sound.
cloudevent_httpsink_url, mode (binary/structured), optional auth.oidc.*, optional accepted_replies.types. Cloud only, Pro.

POST /api/v1/notification-channels

{
"name": "Slack #oncall",
"type": "slack",
"config": {
"bot_token": "xoxb-your-bot-token",
"channel_id": "C0456"
},
"enabled": true
}

Response: 201 Created with the channel document. config is returned with secrets redacted (*****).

CloudEvents HTTP channel (Cloud only, Pro+)

Section titled “CloudEvents HTTP channel (Cloud only, Pro+)”
{
"name": "SRE sink",
"type": "cloudevent_http",
"config": {
"sink_url": "https://sre.example.com/cloudevents",
"mode": "binary",
"auth": {
"oidc": {
"token_url": "https://auth.example.com/oauth/token",
"client_id": "yipyap-source",
"client_secret": "…",
"audience": "https://sre.example.com"
}
},
"accepted_replies": {
"types": ["run.yipyap.reply.alert.*"]
}
}
}

SSRF guard: every URL in a CloudEvents HTTP channel (sink_url, token_url, auth.oidc.issuer) is resolved and rejected if it maps to a private, loopback, link-local, or metadata address, both on write and at every dispatch dial.

Plan gate: cloudevent_http channels need a paid plan. Creating one on Free returns 403 with {"error": "Knative CloudEvents delivery requires a paid plan", "upgrade_required": true}. SMS, voice and Telegram channels are gated the same way on YipYap Cloud.

A new telnyx_sms or telnyx_voice channel starts unverified and gets no alerts or tests until its number is confirmed. Changing config.to sets it back to unverified. SMS and voice channels carry a verification object; other types do not:

{ "verification": { "status": "pending" } }

status is pending or verified. A verified channel also has verified_at.

Send a code: POST /api/v1/notification-channels/{id}/verify/send

{ "method": "sms" }

method is sms or voice. Omit the body to use the default: a call for voice channels, a text otherwise. Returns 202 Accepted:

{
"status": "sent",
"method": "sms",
"phone_last4": "4240",
"expires_at": "2026-11-24T15:10:00Z",
"resend_after": "2026-11-24T15:01:00Z",
"resend_after_seconds": 60,
"attempts_remaining": 5
}

The code expires after 10 minutes, and a new code replaces the previous one. A number can get one code every 60 seconds, 5 an hour and 10 a day; an organization can send 20 an hour. Over a limit the response is 429 with retry_after_seconds and a Retry-After header. A channel that is already verified returns 409. If the code could not be sent the response is 502, and 503 means phone verification is not set up on the server.

Confirm: POST /api/v1/notification-channels/{id}/verify/confirm

{ "code": "123456" }

Returns 200 with the channel, now verified. Errors:

StatusMeaning
400The code is not 6 digits.
409No code is waiting, or the number changed after the code was sent. Request a new code.
410The code expired.
422Wrong code. The body has attempts_remaining.
4295 wrong guesses. The code is locked; request a new one.

Creating a channel with type: "webhook" generates a signing secret. The create response carries signing_secret once and signing_secret_set: true. Every other read, and the update response, return signing_secret_set only. The secret is never in config, and a signing_secret sent by the client on create, update or import is ignored.

POST /api/v1/notification-channels/{id}/rotate-secret replaces the secret and returns the new one once. It returns 400 for a channel that is not a webhook. Channels created before signing existed, and channels created by the importer, start unsigned with signing_secret_set: false until their first rotate. The header format and verification steps are in Webhooks.

POST /api/v1/notification-channels/{id}/test

{ "severity": "warning", "message_override": "Test from YipYap" }

Sends a no-op notification. Returns 200 with the dispatch result (rendered payload, latency, target response status). Does not write to the alert timeline.

Channels may be soft-disabled (enabled: false). Disabled channels are skipped by dispatch but remain referenced by policies; re-enable instead of re-creating.