Discord Webhook

Use this app to send messages to a channel using Discord's incoming webhooks

Go to site
Explore
/
Apps
/
Discord Webhook

Discord Webhook API Integrations

Build and run workflows using the Discord Webhook API. Use 1000s of open source triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

With Discord's Webhook API, you can create applications that send messages to Discord channels automatically. For example, you could create a bot that sends a message to a channel every time a new blog post is published, or a message to a channel when someone joins your Discord server.

Here are some ideas for what you could build using the Discord Webhook API:

  • A bot that sends a message to a channel when a new blog post is published
  • A bot that sends a message to a channel when someone joins your Discord server
  • A bot that sends a message to a channel when a new product is added to your online store
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    discord_webhook: {
      type: "app",
      app: "discord_webhook",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://discord.com/api/users/@me`,
      headers: {
        Authorization: `Bearer ${this.discord_webhook.$auth.oauth_access_token}`,
      },
    })
  },
})
Send Message (Advanced) with Discord Webhook API on New Requests from HTTP / Webhook API
HTTP / Webhook + Discord Webhook
 
Try it
Send Message (Advanced) with Discord Webhook API on Activity Deleted from Strava API
Strava + Discord Webhook
 
Try it
Send Message (Advanced) with Discord Webhook API on Box Changed Stage (Instant) from Streak API
Streak + Discord Webhook
 
Try it
Send Message (Advanced) with Discord Webhook API on Budget Snapshot Event (Instant) from Procore API
Procore + Discord Webhook
 
Try it
Send Message (Advanced) with Discord Webhook API on Card Archived (Instant) from Trello API
Trello + Discord Webhook
 
Try it
Send Message with the Discord Webhook API

Send a simple message to a Discord channel

 
Try it
Send Message (Advanced) with the Discord Webhook API

Send a simple or structured message (using embeds) to a Discord channel

 
Try it
Send Message With File with the Discord Webhook API

Post a message with an attached file

 
Try it

Authentication

Discord Webhook uses OAuth authentication. When you connect your Discord Webhook account, Pipedream will open a popup window where you can sign into Discord Webhook and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Discord Webhook API.

Pipedream requests the following authorization scopes when you connect your account:

webhook.incomingemailidentify
OAuth Request Configurations:
  1. authorization
    GEThttps://discord.com/api/oauth2/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://discord.com/api/oauth2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POSThttps://discord.com/api/oauth2/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}