Loading...
Loading...
Learn how to use Discord webhooks to send messages, embeds, and notifications to your server channels. Perfect for bots, alerts, and integrations.
Discord webhooks are special URLs that allow external applications to send messages to a specific channel in your Discord server. They're a simple way to get automatic notifications and updates from various services without building a complex bot.
Common use cases include: deployment notifications from CI/CD pipelines, alerts from monitoring systems, updates from GitHub repositories, and custom notifications from your own applications.
Right-click on your Discord server name and select Server Settings, or click the dropdown arrow next to the server name.
In the left sidebar, click on Integrations, then click View Webhooks or Webhooks.
Click New Webhook. Give it a name (this will be the default username for messages), optionally upload an avatar, and select the channel where messages will be posted.
Click Copy Webhook URL. This URL contains a unique token - keep it secret! Anyone with this URL can post messages to your channel.
Send a POST request to your webhook URL with a JSON body. Here's a simple example:
curl -X POST "https://discord.com/api/webhooks/ID/TOKEN" \
-H "Content-Type: application/json" \
-d '{"content": "Hello from Webhook.it!"}'Discord embeds allow you to send beautifully formatted messages with colors, images, and structured fields:
{
"embeds": [{
"title": "Deployment Successful",
"description": "Your app has been deployed to production.",
"color": 5763719,
"fields": [
{
"name": "Environment",
"value": "Production",
"inline": true
},
{
"name": "Version",
"value": "v1.2.3",
"inline": true
}
],
"timestamp": "2025-01-15T10:30:00.000Z",
"footer": {
"text": "Deployed by CI/CD Pipeline"
}
}]
}title - Main heading of the embeddescription - Body text (supports markdown)color - Decimal color code for the left borderfields - Array of name/value pairsthumbnail - Small image on the rightimage - Large image at the bottomfooter - Text at the bottomtimestamp - ISO 8601 timestampDiscord has built-in support for GitHub webhooks. Simply append /github to your webhook URL:
https://discord.com/api/webhooks/ID/TOKEN/github
Use this URL in your GitHub repository's webhook settings. Discord will automatically format push events, pull requests, issues, and more into readable messages.
Use Webhook.it to debug webhooks sent to Discord from other services:
In Discord, go to Server Settings > Integrations > Webhooks > New Webhook. Give it a name, select the channel, and click 'Copy Webhook URL'. This URL can receive POST requests to send messages to that channel.
Use Webhook.it to capture and inspect incoming webhooks from other services. To test sending to Discord, use curl or Postman to POST a JSON payload with a 'content' field to your Discord webhook URL.
Yes! Include an 'embeds' array in your JSON payload. Each embed can have title, description, color, fields, images, and more. You can send up to 10 embeds per message.
Discord webhooks are rate-limited to prevent abuse. The global rate limit is 50 requests per second. Per-webhook limits are lower. If exceeded, Discord returns a 429 status with a 'retry_after' value.
Discord has a special /github endpoint for GitHub webhooks. Append '/github' to your webhook URL and use it in GitHub's webhook settings. Discord will automatically format GitHub events into readable messages.