> For the complete documentation index, see [llms.txt](https://docs.anedot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.anedot.com/integrations/email-marketing-communication/activecampaign.md).

# Active Campaign

Connect Anedot to ActiveCampaign to add donors and supporters from your Action Pages as contacts on a list, manage the connection, and review what gets sent.

**ActiveCampaign** is an email marketing and automation platform. The integration adds or updates the donor or supporter from each Action Page submission as an ActiveCampaign contact and adds them to one list. You set it up in **Settings > Integrations**, where you can connect Anedot to ActiveCampaign, manage your connection, and review how data relays work, where to find your data, field mapping and payload data.

## Before You Begin

* You need **Integrations: Edit permissions** to add, edit, push or delete a connection. Integrations: Edit permissions also require **Action Pages: View permissions** and **Integrations: View permissions**. The built-in **Super Admin** and **Admin** permission sets include these permissions by default, and the **Standard** permission set doesn't. See [Permission Sets](https://docs.anedot.com/settings/access/permission-sets.md).
* You need three values from ActiveCampaign: your API URL, your API key, and the ID of the list contacts should be added to. All three fields are required in Anedot.
* The ActiveCampaign user whose API key you use needs permission to add contacts and edit contacts.

## Connect Anedot to ActiveCampaign

### Step 1: Find Your ActiveCampaign Details

To find your ActiveCampaign details:

1. In ActiveCampaign, click **Settings** (gear icon).
2. Click **Developer**.
3. Copy the **API URL** and **Key**.
4. Click **Contacts** on the left menu.
5. Click **Lists** on the secondary menu.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>If the secondary menu is collapsed, hover over the ActiveCampaign logo at the top left and click the arrows that appear to expand it.</p></div>
6. Click the list you want contacts added to.
7. Copy the list ID from the URL of the list.

{% hint style="info" %}
Each user in your ActiveCampaign account has their own API URL and Key. Use the full API URL shown on the Developer tab, not only your account name.
{% endhint %}

{% hint style="warning" %}
If the user whose API key you use is deleted from ActiveCampaign, the integration breaks. If you click **Reset API Key** on the Developer Settings page, delete the connection in Anedot and connect again with the new key.
{% endhint %}

### Step 2: Create the Connection in Anedot

To create the connection in Anedot:

1. Go to **Settings > Integrations**.
2. Click **New integration**.
3. Choose **Active Campaign**, or enter "Active Campaign" in the search box.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Active Campaign appears under the <strong>Email Marketing</strong> category with the description "Send Action Page submissions to ActiveCampaign lists."</p></div>
4. Choose the Action Page scope:
   * Keep **All Action Pages** checked to include every Action Page, including pages you add later. (Optional) In **Exclude Pages**, enter a comma-separated list of Action Page IDs with no spaces.
   * Uncheck **All Action Pages** and choose **Selected pages** to pick specific pages.
5. (Optional) In **Team**, choose a Team to limit the connection to that Team's Action Pages. Leave it set to **All teams** to include every Team. See [Teams](https://docs.anedot.com/settings/access/teams.md).
6. Enter your ActiveCampaign API key in **Active Campaign API key**.
7. Enter the list's ID in **List ID**.
8. Enter your ActiveCampaign API URL in **Active Campaign URL**. Enter the full URL exactly as ActiveCampaign shows it, starting with https\://.
9. Click **Create integration**.

The connection is listed in **Settings > Integrations**.

{% hint style="success" %}
After you connect, submit a test on a covered Action Page with an email address and check **Settings > Integration Requests** for a **Success** row.
{% endhint %}

## Manage Your Connection

### Edit Your Connection

You can change the Action Page scope, **Team**, **Name** and **Enabled** on an existing connection. Use **Team** to limit the connection to one Team's Action Pages, or choose **All teams**.

To edit your connection:

1. Go to **Settings > Integrations**.
2. Click **Edit** on the Active Campaign connection.
3. Update the Action Page scope, **Team**, **Name** or **Enabled**.
4. Click **Save integration**.

New settings apply to records sent from then on. Editing doesn't resend records already sent.

* Unchecking **Enabled** stops sending.
* The API key, List ID and URL aren't shown or changed in the Edit form. To use a different API key, List ID or URL, delete the connection and connect again with the new values.

{% hint style="info" %}
The Edit form also shows a **Credentials/details JSON** box. Leave it as it is.
{% endhint %}

### Push Unsent Records

**Push unsent** resends failed or never-sent submissions for a date range.

* The range can be up to 31 days.
* The start date must be within the last 12 months.
* Wait about five minutes between pushes.
* Only failed or unsent submissions are sent. Successful ones aren't sent again.

For the full steps, see [Push Unsent in Webhooks (API)](https://docs.anedot.com/integrations/integration-automation-tools/webhooks.md#push-unsent).

### Reconnect Or Delete Your Connection

To delete your connection:

1. Go to **Settings > Integrations**.
2. Click **Delete** on the Active Campaign connection.
3. Confirm the prompt "Delete this integration?"

Anedot stops sending to ActiveCampaign. Contacts already in ActiveCampaign aren't changed.

To reconnect, follow the steps in [Connect Anedot to ActiveCampaign](https://docs.anedot.com/integrations/email-marketing-communication/activecampaign.md#connect-anedot-to-activecampaign) with your new values.

{% hint style="info" %}
Submissions already sent successfully with the same API key aren't sent again after you reconnect.
{% endhint %}

## Data Relays

### What Anedot Sends

Anedot sends one record per Action Page submission in the connection's scope.

* Donation Pages, Event Pages and Lead Pages are all sent. There is no option to send Donation Pages only.
* Lead Page submissions are sent when they're submitted. Donation Page and Event Page submissions with a payment are sent once the payment is completed.
* For each submission, Anedot sends two requests. First it adds the person as an ActiveCampaign contact, or updates the existing contact with the same email address. Then it adds that contact to the list in **List ID** as an active (subscribed) member.
* Only four values are sent: email, first name, last name and phone. No address, donation amount, Fund, custom field answers or tags are sent.
* When a contact with the same email already exists in ActiveCampaign, ActiveCampaign updates that contact with the first name, last name and phone from the newest submission.
* Each connection adds contacts to one list.
* Recurring donation payments, commitment changes (such as a cancellation), refunds, and donation status changes aren't sent. See [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md).

When a contact is subscribed to a list, ActiveCampaign starts any automations set to start when a contact subscribes to that list and sends the list's subscribe autoresponders.

### Records Anedot Skips

These records aren't sent and don't create a row in **Settings > Integration Requests**:

* A submission with no email address.
* A submission that was already sent successfully to an ActiveCampaign connection with the same API key, including a connection you deleted and connected again.
* A Donation Page or Event Page submission whose payment isn't completed yet. It's sent when the payment completes.
* Any submission while **Enabled** is unchecked.
* Recurring donation payments.

### Delivery And Retries

Each submission sent shows a row in **Settings > Integration Requests** with its status (**Success**, **Failure** or **Error**), the request and the response. See [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md).

* The row shows **Success** only when ActiveCampaign accepts both the contact and the list request. If the contact request fails, the request in the row shows only the contact data.
* The response in the row is ActiveCampaign's answer to the last request Anedot made. That's the list request when it ran, otherwise the contact request.
* If ActiveCampaign rejects a request, the row shows **Failure** and Anedot doesn't try that submission again. Fix the cause, then use [Push unsent](https://docs.anedot.com/integrations/email-marketing-communication/activecampaign.md#push-unsent-records).
* If Anedot can't reach ActiveCampaign, it tries again automatically. These attempts show as **Error** rows.
* Users with the **Integration sync failed** notification turned on get an email when a row shows **Failure**. See [Notifications](https://docs.anedot.com/get-started/security/notifications.md).
* Repeated authorization errors, where ActiveCampaign rejects the API key or the user's permissions, turn the connection off. A successful send resets this. If the connection stops sending, delete it and connect again with a working API key and URL.

What ActiveCampaign does with a contact after it accepts it is set by ActiveCampaign.

## Find Your Data in ActiveCampaign

To find your contacts in ActiveCampaign:

1. In ActiveCampaign, click **Contacts** on the left menu.
2. Click **Lists** on the secondary menu.
3. Click the list whose ID you entered in Anedot.

The list's contacts appear, including the donors and supporters Anedot added.

## Field Mapping

### Contact Fields

| Anedot Value | ActiveCampaign Field |
| ------------ | -------------------- |
| Email        | email                |
| First name   | firstName            |
| Last name    | lastName             |
| Phone        | phone                |

A blank first name, last name or phone is sent as null.

### List Fields

| Anedot Value                                          | ActiveCampaign Field |
| ----------------------------------------------------- | -------------------- |
| The List ID from your connection                      | list                 |
| The contact ID ActiveCampaign returns for the contact | contact              |
| 1 (active subscriber)                                 | status               |

## Payload Data

These are the request and response bodies shown in **Settings > Integration Requests**.

### Request Body

```json
{
  "contact_payload": {
    "contact": {
      "email": "annie@anedot.com",
      "firstName": "Annie",
      "lastName": "Dot",
      "phone": "2015550123"
    }
  },
  "list_payload": {
    "contactList": {
      "list": "1",
      "contact": "25",
      "status": 1
    }
  }
}
```

### Success Response (Status 200)

ActiveCampaign answers with status 200 or 201 when it accepts the list request.

```json
{
  "contactList": {
    "id": "25",
    "form": null,
    "list": "1",
    "sync": "0",
    "links": {
      "form": "https://anedot.activehosted.com/api/3/contactLists/25/form",
      "list": "https://anedot.activehosted.com/api/3/contactLists/25/list",
      "contact": "https://anedot.activehosted.com/api/3/contactLists/25/contact",
      "message": "https://anedot.activehosted.com/api/3/contactLists/25/message",
      "campaign": "https://anedot.activehosted.com/api/3/contactLists/25/campaign",
      "automation": "https://anedot.activehosted.com/api/3/contactLists/25/automation",
      "autosyncLog": "https://anedot.activehosted.com/api/3/contactLists/25/autosyncLog",
      "unsubscribeAutomation": "https://anedot.activehosted.com/api/3/contactLists/25/unsubscribeAutomation"
    },
    "sdate": "2019-07-01T13:24:24-05:00",
    "udate": null,
    "ip4Sub": "0",
    "status": 1,
    "contact": "25",
    "message": null,
    "campaign": null,
    "ip4Unsub": "0",
    "ip4_last": "0",
    "seriesid": "0",
    "sourceid": "3",
    "last_name": "Dot",
    "responder": "1",
    "automation": null,
    "created_by": "0",
    "first_name": "Annie",
    "updated_by": "0",
    "autosyncLog": null,
    "unsubreason": "",
    "created_timestamp": "2019-08-31 11:58:14",
    "updated_timestamp": "2019-08-31 11:58:14",
    "unsubscribeAutomation": null
  }
}
```

### Failure Response (Status 403)

A 403 response means the ActiveCampaign user whose API key you use doesn't have the permission ActiveCampaign needs.

```json
{
  "errors": [
    {
      "status": "403",
      "detail": "No permission to subscribe"
    }
  ]
}
```

## Troubleshooting

### No Row in Integration Requests

Check these items:

* The Action Page is in the connection's scope, and in its Team if one is set.
* **Enabled** is checked.
* The submission has an email address.
* The donation payment is completed.
* The submission wasn't already sent to an ActiveCampaign connection with the same API key.

See [Records Anedot Skips](https://docs.anedot.com/integrations/email-marketing-communication/activecampaign.md#records-anedot-skips).

### Rows Show Failure

Open the row in **Settings > Integration Requests** and read ActiveCampaign's response. Check the API URL, API key and List ID against ActiveCampaign, and confirm the ActiveCampaign user can add and edit contacts.

Fix the cause, then use [Push unsent](https://docs.anedot.com/integrations/email-marketing-communication/activecampaign.md#push-unsent-records). If the API key, List ID or URL was wrong, [delete the connection](https://docs.anedot.com/integrations/email-marketing-communication/activecampaign.md#reconnect-or-delete-your-connection) and connect again with the right values first.

### The Connection Stopped Sending

Check that **Enabled** is checked. If the ActiveCampaign API key was reset or its user was deleted, delete the connection and connect again with a current API URL and key.

### A Contact Appears in ActiveCampaign Without the List

The list request didn't succeed. Check the List ID and the row's response in **Settings > Integration Requests**.

If the issue continues, contact our Support team at <help@anedot.com>.

## Related Articles

* [Integrations](https://docs.anedot.com/integrations.md)
* [Integration Requests](https://docs.anedot.com/integrations/relay-data-troubleshooting/integration-requests.md)
* [Teams](https://docs.anedot.com/settings/access/teams.md)
* [Notifications](https://docs.anedot.com/get-started/security/notifications.md)
* [Commitments](https://docs.anedot.com/finance/management-and-reporting/commitments.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.anedot.com/integrations/email-marketing-communication/activecampaign.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
