🎉 Pipedream raises $20M Series A 🎉
Read the blog post and TC Techcrunch article.
← ActiveCampaign + HTTP / Webhook integrations

Send GET Request with HTTP / Webhook APIon New Automation Webhook from ActiveCampaign API

Pipedream makes it easy to connect APIs for HTTP / Webhook, ActiveCampaign and 700+ other apps remarkably fast.

Trigger workflow on
New Automation Webhook from the ActiveCampaign API
Next, do this
Send GET Request with the HTTP / Webhook API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a ActiveCampaign trigger and HTTP / Webhook action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Automation Webhook trigger
    1. Connect your ActiveCampaign account
    2. Configure timer
    3. Optional- Select one or more Automations
  3. Configure the Send GET Request action
    1. Connect your HTTP / Webhook account
    2. Configure HTTP Request Configuration
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new event each time an automation sends out webhook data.
Version:0.0.4
Key:activecampaign-new-automation-webhook

Trigger Code

import activecampaign from "../../activecampaign.app.mjs";
import common from "../common/base.mjs";

export default {
  ...common,
  name: "New Automation Webhook",
  key: "activecampaign-new-automation-webhook",
  description: "Emit new event each time an automation sends out webhook data.",
  version: "0.0.4",
  type: "source",
  dedupe: "unique",
  props: {
    ...common.props,
    timer: {
      type: "$.interface.timer",
      default: {
        intervalSeconds: 60 * 15,
      },
    },
    automations: {
      propDefinition: [
        activecampaign,
        "automations",
      ],
    },
  },
  methods: {
    isWatchedAutomation(automation) {
      return (
        this.automations?.length === 0 ||
        this.automations?.includes(automation.id)
      );
    },
    isAutomationRelevant(automation) {
      if (!this.isWatchedAutomation(automation)) {
        return false;
      }

      const entered = this.db.get(automation.id) || 0; // number of times automation has run

      if (parseInt(automation.entered) <= entered) {
        return false;
      }

      this.db.set(automation.id, parseInt(automation.entered));

      return true;
    },
    getMeta(automation) {
      return {
        id: `${automation.id}${automation.entered}`,
        summary: automation.name,
        ts: Date.now(),
      };
    },
  },
  async run() {
    let resources = [];
    let offset = 0;
    let total = 1;

    do {
      const response =
        await this.activecampaign.paginateResources({
          requestFn: this.activecampaign.listAutomations,
          requestArgs: {
            params: {
              offset,
            },
          },
          resourceName: "automations",
          mapper: (resource) => resource,
        });

      const { options: nextResources } = response;
      ({
        offset, total,
      } = response.context);

      resources = resources.concat(nextResources);

      resources.forEach((resource) => {
        if (this.isAutomationRelevant(resource)) {
          this.$emit(resource, this.getMeta(resource));
        }
      });

    } while (resources.length < total);
  },
};

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
ActiveCampaignactivecampaignappThis component uses the ActiveCampaign app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
timer$.interface.timer
Automationsautomationsstring[]Select a value from the drop down menu.

Trigger Authentication

ActiveCampaign uses API keys for authentication. When you connect your ActiveCampaign account, Pipedream securely stores the keys so you can easily authenticate to ActiveCampaign APIs in both code and no-code steps.

You can find your Base URL and API Key in your Developer Settings in your account. See the ActiveCampaign API docs for more info.

About ActiveCampaign

Email marketing, marketing automation, and CRM tools

Action

Description:Send an HTTP GET request to any URL. Optionally configure query string parameters, headers and basic auth.
Version:1.0.1
Key:http-get-request

Action Code

import customRequest from "../custom-request/custom-request.mjs";

export default {
  ...customRequest,
  key: "http-get-request",
  name: "Send GET Request",
  description: "Send an HTTP GET request to any URL. Optionally configure query string parameters, headers and basic auth.",
  type: "action",
  version: "1.0.1",
  props: {
    ...customRequest.props,
    /* eslint-disable-next-line pipedream/props-label,pipedream/props-description */
    httpRequest: {
      ...customRequest.props.httpRequest,
      default: {
        method: "GET",
      },
    },
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
HTTP / WebhookhttpappThis component uses the HTTP / Webhook app.
HTTP Request ConfigurationhttpRequesthttp_request

Action Authentication

The HTTP / Webhook API does not require authentication.

About HTTP / Webhook

Get a unique URL where you can send HTTP or webhook requests

More Ways to Connect HTTP / Webhook + ActiveCampaign