---
title: "How to Get a Discord Webhook URL | WebhookRelay"
meta:
  "og:description": "Create a Discord webhook URL step by step: Server Settings, Integrations, pick a channel, copy the URL. Includes the format, a curl example and embeds."
  "og:title": "How to Get a Discord Webhook URL"
  description: "Create a Discord webhook URL step by step: Server Settings, Integrations, pick a channel, copy the URL. Includes the format, a curl example and embeds."
---

![Stripes](https://webhookrelay.com/blog/how-to-get-discord-webhook-url/images/stripes.svg)

# **How to Get a Discord Webhook URL**

Create a Discord webhook URL step by step: Server Settings, Integrations, pick a channel, copy the URL. Includes the format, a curl example and embeds.

A **Discord webhook URL** is the fastest way to post messages into a Discord channel from any app or script — no bot, no gateway connection, just an HTTP request. Here's how to create one and use it. (New to webhooks? See [what is a webhook](https://webhookrelay.com/blog/how-to-get-discord-webhook-url/blog/what-is-webhook/).)

## [What a Discord webhook URL looks like](#what-a-discord-webhook-url-looks-like)

```
https://discord.com/api/webhooks/123456789012345678/aBcDeF_secret-token
```

It's a numeric **webhook ID** plus a secret **token**. Anyone with the full URL can post to the channel, so keep it private.

## [Create a Discord webhook](#create-a-discord-webhook)

You'll need the **Manage Webhooks** permission on the server (server owners and admins have it):

1. **Open Server Settings.** Click your server name (top-left) → **Server Settings**.
2. **Go to Integrations.** In the sidebar, choose **Integrations**, then **Webhooks** → **New Webhook** (or **Create Webhook**).
3. **Configure it.** Give the webhook a **name**, optionally an avatar, and pick the **channel** it should post to from the dropdown.
4. **Copy the URL.** Click **Copy Webhook URL**. That's the URL you'll POST to.

You can also create a webhook straight from a channel: **Edit Channel → Integrations → Webhooks**.

![Creating a webhook in Discord under Integrations → Webhooks — the New Webhook button, the webhook&#39;s name and channel, and the Copy Webhook URL button](https://webhookrelay.com/blog/how-to-get-discord-webhook-url/images/guides/discord-create-webhook.png)

## [Send a test message](#send-a-test-message)

POST JSON with a `content` field:

```
curl -H "Content-Type: application/json" \
  -d '{"content":"Hello from a Discord webhook 👋"}' \
  "https://discord.com/api/webhooks/123456789012345678/aBcDeF_secret-token"
```

For a richer message, send an **embed** — a titled, colored card:

```
curl -H "Content-Type: application/json" -d '{
  "embeds": [{
    "title": "Deploy finished",
    "description": "Build #142 shipped to production",
    "color": 3066993
  }]
}' "https://discord.com/api/webhooks/123456789012345678/aBcDeF_secret-token"
```

You can override the display name and avatar per message with `username` and `avatar_url`.

## [Sending _any_ event to Discord](#sending-any-event-to-discord)

The webhook URL is the easy half — you still need to POST to it in Discord's format. Webhook Relay bridges that gap: point a provider (a payment, a CI build, a [TradingView alert](https://webhookrelay.com/blog/how-to-get-discord-webhook-url/blog/trading-view/)) at Webhook Relay, [transform the payload](https://webhookrelay.com/blog/how-to-get-discord-webhook-url/features/transform-webhooks/) into a Discord message or embed, and forward it — optionally [fanning out](https://webhookrelay.com/blog/how-to-get-discord-webhook-url/features/webhook-multiple-destinations/) to Slack or Teams at the same time.

- [Send a webhook to Discord](https://webhookrelay.com/blog/how-to-get-discord-webhook-url/blog/webhook-to-discord/) — the full forward-and-transform walkthrough.
- [TradingView webhooks to Discord](https://webhookrelay.com/blog/how-to-get-discord-webhook-url/blog/trading-view/) — a real automation example.

## [Security notes](#security-notes)

- The URL is a **secret** — Discord even warns that leaked webhook URLs are a common way servers get spammed.
- To **revoke** one, open the webhook in **Integrations → Webhooks** and click **Delete Webhook**; create a new one if needed.
- A webhook can only **post** to its channel — it can't read messages or act as a member.

Ready to route real events into Discord? [Test a webhook now](https://webhookrelay.com/blog/how-to-get-discord-webhook-url/webhook-bin/) or [start forwarding for free](https://my.webhookrelay.com/register).