Connect Discord channel
connect_discord_webhookAdds a Discord channel to a workspace from a channel webhook URL, without the user leaving the chat. The user gets the URL in Discord: Server Settings → Integrations → Webhooks → pick or create a webhook for the channel → Copy Webhook URL. Works for every channel type, including forum channels. A workspace has one Discord connection that can hold several channels; each new webhook adds a channel, and sending one that's already connected refreshes it. The first channel is a default channel. Returns the connection and the added channel (use its id in platform_settings.channelIds). The webhook URL is a secret: it's stored encrypted and never returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional display name for the channel. Defaults to the webhook's name. | |
| webhook_url | Yes | The channel's webhook URL, https://discord.com/api/webhooks/<id>/<token>. | |
| workspace_id | Yes | Workspace to add the channel to. Get one from list_workspaces. | |
| idempotency_key | No | Optional client-generated key (e.g., a UUID) to make retries safe. Identical calls with the same key within 10 minutes return the original result instead of running the write twice. |