Integration

Discord Integration

API alerts for your Discord server

Discord Integration

Send API monitoring alerts directly to your Discord server. Perfect for development teams, gaming companies, and communities that coordinate through Discord.

Why Discord?

Discord has become the communication hub for many development teams and tech communities. APIAssert's Discord integration delivers instant alerts to any channel via webhooks.

What You'll Get

  • Webhook-based delivery — no bot permissions required
  • Rich embeds with color-coded status indicators
  • Customizable alerts — choose what information to include
  • Multiple channels — route different monitors to different servers

Setup Guide

Step 1: Create a Discord Webhook

  1. Open your Discord server
  2. Go to Server SettingsIntegrationsWebhooks
  3. Click New Webhook
  4. Name it "APIAssert Alerts" (or anything you prefer)
  5. Select the channel for notifications
  6. Click Copy Webhook URL

Step 2: Add Discord in APIAssert

  1. Go to AlertsChannels in your APIAssert dashboard
  2. Click Add ChannelDiscord
  3. Paste your webhook URL
  4. Give the channel a name (e.g., "Discord - API Alerts")
  5. Click Save

Step 3: Test the Connection

Click Send Test to verify the webhook works. You should see a test message appear in your Discord channel.

Step 4: Assign to Monitors

Edit your monitors and add the Discord channel under Alert Channels.

Alert Format

APIAssert sends rich Discord embeds with color-coded status:

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔴 Monitor Failed: Production API
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Status Code: 500
Response Time: 2,340ms
Region: US East

Assertion Failed:
$.status expected "success", got "error"

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  • 🔴 Red — Monitor failed
  • 🟢 Green — Monitor recovered
  • 🟡 Yellow — Warning (slow response)

Configuration Options

Option Description
Webhook URL Your Discord webhook URL
Include Response Time Show request duration in alerts
Include Region Show which region detected the issue
Include Error Details Show assertion failure messages

Best Practices

Use Dedicated Channels

Create separate channels for different alert types:

  • #api-alerts — General API monitoring
  • #critical-alerts — Production failures only
  • #bot-status — For Discord bot APIs

Set Up Roles and Mentions

Configure Discord roles and use @mentions in your webhook settings to notify specific team members.

Organize with Categories

Create a "Monitoring" category in your server:

📊 MONITORING
├── #api-alerts
├── #uptime-status
└── #incident-log

Multiple Servers

You can send alerts to multiple Discord servers:

  1. Create webhooks in each server
  2. Add each as a separate channel in APIAssert
  3. Assign monitors to multiple channels as needed

Troubleshooting

Not receiving alerts?

  • Verify the webhook URL is correct
  • Check that the webhook hasn't been deleted in Discord
  • Ensure the target channel still exists

Webhook rate limited?

  • Discord limits webhooks to 30 requests per minute
  • Reduce check frequency or consolidate monitors

Embeds not showing?

  • Ensure "Embeds and Links" permission is enabled for the webhook

Next Steps