How to Create, Configure & Send Discord Webhooks (Step-by-Step)
Master Discord webhooks to deliver automated notifications, GitHub alerts, server broadcasts, and custom bot messages without running a continuous bot process.
Test Webhooks in Real Time
Send live embeds, custom avatars, and formatted messages with our interactive Webhook Sender tool.
What is a Discord Webhook?
A Discord webhook is an automated HTTP endpoint that allows external services, scripts, and servers to post messages and rich embeds directly into a designated Discord channel. Unlike a full bot, a webhook does not require a bot token, WebSocket connection, or hosting infrastructure.
How to Create a Webhook in Discord
To create a webhook: 1. Open your Discord server settings or right-click any text channel and choose 'Edit Channel'. 2. Click 'Integrations' in the left menu. 3. Select 'Webhooks' and click 'New Webhook'. 4. Assign a default name and avatar, then click 'Copy Webhook URL'.
Never commit your Webhook URL to public repositories or share it with untrusted users. Anyone with the URL can post messages to that channel. If exposed, delete the webhook immediately in Discord to revoke access.
Sending Messages & Rich Embeds via Code
Webhooks accept standard HTTP POST requests with a JSON body. You can override the webhook's default username and avatar on every request, as well as pass up to 10 embeds or Components V2 blocks.
const webhookUrl = 'https://discord.com/api/webhooks/123456789/token';
await fetch(webhookUrl, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
username: 'Alert Bot',
avatar_url: 'https://i.imgur.com/4M34hi2.png',
content: '🚨 New server alert!',
embeds: [{
title: 'Server Update',
description: 'Maintenance completed successfully.',
color: 0x57F287
}]
})
});import requests
webhook_url = "https://discord.com/api/webhooks/123456789/token"
payload = {
"username": "Server Notifier",
"content": "Hello Discord from Python!",
"embeds": [{
"title": "Automated Report",
"description": "Backup completed without errors.",
"color": 5763719
}]
}
response = requests.post(webhook_url, json=payload)
print(response.status_code)Testing & Debugging Webhooks with BuildCompose
Before deploying code, you can use BuildCompose's Webhook Sender & Tester. Paste your webhook URL, visually design your message or embed, and send it with one click while inspecting the exact JSON payload.
Frequently Asked Questions
What is the rate limit for Discord webhooks?
Can webhooks mention @everyone or specific roles?
Can a webhook receive messages or user reactions?
Related Guides
What are Discord Components V2? Complete Architecture & Migration Guide
Discover Discord Components V2: understand container types, text displays, media galleries, separators, and how to migrate from legacy embeds.
How to Make a Discord Embed: Complete Field Anatomy & Design Guide
Learn how to design stunning Discord embeds. Understand author fields, titles, descriptions, inline fields, sidebar colors, and markdown tricks.
Discord Character & Embed Limits Cheatsheet (Updated 2026)
Full reference cheatsheet for Discord API limits: message characters, embed bounds, field counts, Components V2, modals, and rate limits.