Connect a Discord channel
Adds a Discord channel to the workspace by its webhook URL. In Discord, open Server Settings → Integrations → Webhooks, pick the channel, and use Copy Webhook URL.
Works for every channel type, including forum channels, which the dashboard's "Add a channel with Discord" screen can't list. In a forum channel each post becomes a new forum post titled with platform_options.discord.thread_name (or the caption's first line), and first_comment is its first reply. In text channels first_comment is a separate message right after the post.
The URL is checked against Discord and stored encrypted; it is never returned. A workspace has one Discord connection that can hold several channels: each call with a new webhook adds a channel and returns the same connection id; posting a webhook that's already connected refreshes that channel. The first channel becomes a default channel; later ones are added with is_default: false (change it with PATCH /api/v1/discord/channels/{channel_id}).
Request
- Base URL: https://api.shortsync.app/v1
- URL: https://api.shortsync.app/v1/auth/discord/webhook
- Auth: HTTP bearer
Request body
Example request
{
"webhook_url": "https://discord.com/api/webhooks/123456789012345678/abcDEF..."
}Response
The workspace's Discord connection, plus the channel that was added in channel.
Changes
No recorded changes to this operation across all 1 revision of this API.