Create alert destination
create_destinationCreate a notification destination (channel) for alerts from webhooks, Slack, Discord, email and other kinds. Returns the channel id needed to route monitor alerts to it.
Instructions
Requires the write scope or higher. Creates a notification destination (channel) that monitors can route alerts to, from the fields of the chosen kind; unrelated fields are ignored. Non-email kinds are usable immediately; an email destination starts unverified, sends a confirmation link, and can join a route once the link is clicked. A project holds at most 25 destinations (DESTINATION_CAP_REACHED beyond that). Returns the new channel id, which set_route takes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | webhook: the POST target URL. | |
| kind | Yes | One of: webhook, telegram, discord, slack, ntfy, pushover, msteams, googlechat, email. Every destination URL has to be https, and a branded kind has to point at its vendor's host: discord at discord.com or discordapp.com, slack at hooks.slack.com, msteams at webhook.office.com or outlook.office.com or logic.azure.com or logic.azure.us or environment.api.powerplatform.com, googlechat at chat.googleapis.com. Any other endpoint fits kind "webhook", which accepts any https host; ntfy is unpinned too, so a self-hosted ntfy server works. A pin narrows the destination to the vendor's platform; it does not prove who owns the endpoint, since every pinned domain is multi-tenant. | |
| name | Yes | Human-readable destination name, e.g. 'On-call Slack'. | |
| token | No | pushover: the application API token. | |
| secret | No | webhook: shared secret used to sign the HMAC-SHA256 payload. | |
| address | No | email: the destination email address (a confirmation link is sent). | |
| chat_id | No | telegram: the target chat id. | |
| user_key | No | pushover: the user or group key. | |
| bot_token | No | telegram: the bot token from @BotFather. | |
| topic_url | No | ntfy: the full topic URL, e.g. 'https://ntfy.sh/my-topic'. | |
| webhook_url | No | slack / discord / msteams / googlechat: the incoming-webhook URL. |