Pipefy

Process Management, Workflow Management Software

Go to site

Integrate the Pipefy API with the Discord Webhook API

Setup the Pipefy API trigger to run a workflow which integrates with the Discord Webhook API. Pipedream's integration platform allows you to integrate Pipefy and Discord Webhook remarkably fast. Free for developers.

Connect Pipefy

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    pipefy: {
      type: "app",
      app: "pipefy",
    }
  },
  async run({steps, $}) {
    const data = {
      "query": `{ me { name } }`,
    }
    return await axios($, {
      method: "post",
      url: `https://api.pipefy.com/graphql`,
      headers: {
        Authorization: `Bearer ${this.pipefy.$auth.token}`,
      },
      data,
    })
  },
})

Connect Discord Webhook

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}`,
      },
    })
  },
})