← ActiveCampaign

Activecampaign - Get contact by email with ActiveCampaign API

Pipedream makes it easy to connect APIs for ActiveCampaign and 800+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Activecampaign - Get contact by email with the ActiveCampaign 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

Create a workflow to Activecampaign - Get contact by email with the ActiveCampaign API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Activecampaign - Get contact by email action
    1. Connect your ActiveCampaign account
    2. Configure email
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is 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.

Activecampaign - Get contact by email on ActiveCampaign
Description:Retrieves contact data from the ActiveCampaign CRM by email address
Version:0.2.2
Key:activecampaign-get-contact-by-email

Code

// legacy_hash_id: a_m8ijkX
import axiosModule from "axios";

export default {
  key: "activecampaign-get-contact-by-email",
  name: "Activecampaign - Get contact by email",
  description: "Retrieves contact data from the ActiveCampaign CRM by email address",
  version: "0.2.2",
  type: "action",
  props: {
    activecampaign: {
      type: "app",
      app: "activecampaign",
    },
    email: {
      type: "string",
    },
  },
  async run() {

    //
    // Contributed to the pipedream community by https://taskforce.services
    //
    // Activecampaign - Provide incredible customer experiences by utilizing email marketing, marketing automation and other CRM tools
    // http://tfs.link/activecampaign
    //

    let axios = axiosModule.default;

    const config = {
      method: "get",
      url: `${this.activecampaign.$auth.base_url}/api/3/contacts?search=${this.email}`, // todo: api path
      headers: {
        "Api-Token": `${this.activecampaign.$auth.api_key}`,
      },
    };

    return await axios(config).then((res) => {
      return res.data.contacts || [];
    });
  },
};

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.
emailstring

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