APIYard
Back to APIs
CommunicationNo AuthFree tier

Discord Webhooks

Discord Webhooks let you send richly formatted messages to any Discord channel using a simple POST request — no OAuth or bot setup required.

Base URL

https://discord.com/api/webhooks
Discordwebhooksnotificationsembedsno auth

Endpoints

POST/{webhook.id}/{webhook.token}

Send a message to a Discord channel via webhook.

const response = await fetch("https://discord.com/api/webhooks/WEBHOOK_ID/WEBHOOK_TOKEN", {
  method: "POST",
  headers: {
  "Content-Type": "application/json"
  },
  body: JSON.stringify({
  "content": "Hello from APIYard!",
  "username": "APIYard Bot",
  "embeds": [
    {
      "title": "Deployment complete",
      "color": 5763719
    }
  ]
})
});

const data = await response.json();
console.log(data);

Response Preview

// HTTP 204 No Content on success
// The message is now visible in the Discord channel