create_destination
Create a notification destination so monitors can route alerts to it. Choose a kind (webhook, chat, email, etc.) and receive a channel ID to use in routes.
Instructions
Requires an API key with the write scope or higher. Create a notification destination (channel) that monitors can route alerts to. Provide the fields for the chosen kind; unrelated fields are ignored. Non-email kinds are usable immediately; email kinds are created unverified and send a confirmation link that must be clicked before they can be attached to a route. A project holds at most 25 destinations — if creation is refused with DESTINATION_CAP_REACHED, delete one with delete_destination rather than retrying. Returns the new channel id — pass it to set_route.
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 must be https. A BRANDED kind must 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. For any other endpoint use kind "webhook", which accepts any https host; ntfy is unpinned too, so a self-hosted ntfy server is fine. A pin narrows the destination to the vendor's own platform; it does NOT prove the endpoint belongs to the person or project that created it, because every pinned domain is multi-tenant and open to anyone who signs up. Do not report a pinned destination as verified or as owned by anyone on the strength of its host. | |
| 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. |