🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.

ActiveCampaign

Email marketing, marketing automation, and CRM tools

Go to site

Integrate the ActiveCampaign API with the Discord Webhook API

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

Connect ActiveCampaign

import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    activecampaign: {
      type: "app",
      app: "activecampaign",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `${this.activecampaign.$auth.base_url}/api/3/accounts`,
      headers: {
        "Api-Token": `${this.activecampaign.$auth.api_key}`,
      },
    })
  },
})

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