Discord Destination
The Discord destination sends formatted embed messages to a Discord channel via webhooks.
Configuration
Section titled “Configuration”{ "destination_type": "discord", "name": "Webhook Alerts", "config": { "webhook_url": "https://discord.com/api/webhooks/xxx/yyy" }}| Field | Required | Description |
|---|---|---|
webhook_url | Yes | Discord webhook URL |
Message Format
Section titled “Message Format”Discord messages use embed formatting with:
- Provider — The webhook provider name
- Account — The account slug
- Event Type — The event type
- Event ID — The Transyt event ID
- Color — Blue (
0x2563eb)
- In Discord, go to your channel’s Settings > Integrations > Webhooks
- Create a new webhook
- Copy the webhook URL
Example
Section titled “Example”curl -X POST https://ingest.transyt.com/admin/accounts/{account_id}/destinations \ -H "X-Admin-Token: YOUR_ADMIN_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "destination_type": "discord", "name": "All Delivery Failures", "config": { "webhook_url": "https://discord.com/api/webhooks/xxx/yyy" }, "condition": "delivery_failed" }'Timeout
Section titled “Timeout”Discord webhook requests have a 10-second timeout.