Skip to content

Discord Destination

The Discord destination sends formatted embed messages to a Discord channel via webhooks.

{
"destination_type": "discord",
"name": "Webhook Alerts",
"config": {
"webhook_url": "https://discord.com/api/webhooks/xxx/yyy"
}
}
FieldRequiredDescription
webhook_urlYesDiscord webhook URL

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)
  1. In Discord, go to your channel’s Settings > Integrations > Webhooks
  2. Create a new webhook
  3. Copy the webhook URL
Terminal window
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"
}'

Discord webhook requests have a 10-second timeout.