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

# ActiveCampaign

Connect to ActiveCampaign to create and update contacts and manage your marketing automation account.

### Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector      | Authentication |
| -------------- | -------------- |
| ActiveCampaign | Credentials    |

#### ActiveCampaign

Connect to ActiveCampaign to create or update contacts and manage your marketing automation account.

**Set up in ActiveCampaign**

1. Prepare the ActiveCampaign account or service that the workflow will access. Grant access to the required resources and operations.
2. **Account URL:** Your ActiveCampaign account name (e.g. 'your-account') or the full account URL from Settings > Developer (e.g. '<https://your-account.api-us1.com>'). A bare account name defaults to the us1 region.
3. **API Key:** Your API key from Settings > Developer.

**Set up in StackAI**

1. Open **Settings → Connections**, add a connection, and select **ActiveCampaign**.
2. Enter the credentials and connection details in the fields below.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field | Required | What to enter                                                                                                                                                                                                                                                                                                |
| ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Account URL   | Yes      | Your ActiveCampaign account name (e.g. 'your-account') or the full account URL from Settings > Developer (e.g. '<https://your-account.api-us1.com>'). A bare account name defaults to the us1 region. [Provider instructions](https://developers.activecampaign.com/reference/getting-started-with-the-api). |
| API Key       | Yes      | Your API key from Settings > Developer. [Provider instructions](https://developers.activecampaign.com/reference/getting-started-with-the-api).                                                                                                                                                               |

#### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

### Use an action

1. Add the required **ActiveCampaign** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

### Actions

#### Create or Update Contact

Create a new contact in ActiveCampaign, or update it if the email already exists.

**Inputs**

| Field      | Type   | Required | Description                                       |
| ---------- | ------ | -------- | ------------------------------------------------- |
| Email      | string | Yes      | Email address of the contact to create or update. |
| First Name | string | No       | Contact's first name.                             |
| Last Name  | string | No       | Contact's last name.                              |
| Phone      | string | No       | Contact's phone number.                           |

**Outputs**

| Field          | Type   | Description                         |
| -------------- | ------ | ----------------------------------- |
| Contact        | object | The created or updated contact.     |
| Contact ID     | string | Unique ID of the contact.           |
| Email          | string | Email of the contact.               |
| First Name     | string | First name of the contact.          |
| Last Name      | string | Last name of the contact.           |
| Phone          | string | Phone number of the contact.        |
| Created Date   | string | When the contact was first created. |
| Updated Date   | string | When the contact was last updated.  |
| Result Message | string | Human-readable result summary.      |

#### List Contacts

List contacts in ActiveCampaign, with optional email, search, tag, or list filters.

**Inputs**

| Field   | Type    | Required | Description                                                              |
| ------- | ------- | -------- | ------------------------------------------------------------------------ |
| Limit   | integer | No       | Maximum number of contacts to return per page. Minimum: 1. Maximum: 500. |
| Offset  | integer | No       | Zero-based result offset for pagination. Minimum: 0.                     |
| Email   | string  | No       | Filter contacts by exact email address.                                  |
| Search  | string  | No       | Free-text search across name, organization, phone, and email.            |
| Tag ID  | string  | No       | Filter contacts that have this tag ID applied.                           |
| List ID | string  | No       | Filter contacts that belong to this list ID.                             |

**Outputs**

| Field          | Type          | Description                                         |
| -------------- | ------------- | --------------------------------------------------- |
| Contacts       | object\_array | The contacts on this page.                          |
| Contact IDs    | array         | IDs of the returned contacts, for downstream nodes. |
| Count          | integer       | Number of contacts returned on this page.           |
| Total          | integer       | Total number of contacts matching the filters.      |
| Offset         | integer       | Offset used for this page.                          |
| Has More       | boolean       | Whether more contacts exist after this page.        |
| Next Offset    | integer       | Offset to use for the next page, if any.            |
| Result Message | string        | Human-readable result summary.                      |

#### Get Contact

Retrieve a single contact from ActiveCampaign by ID.

**Inputs**

| Field      | Type   | Required | Description                                                                                           |
| ---------- | ------ | -------- | ----------------------------------------------------------------------------------------------------- |
| Contact ID | string | Yes      | The ID of the contact to retrieve. Use List Contacts or Create or Update Contact to find contact IDs. |

**Outputs**

| Field          | Type   | Description                     |
| -------------- | ------ | ------------------------------- |
| Contact        | object | The retrieved contact.          |
| Contact ID     | string | ID of the retrieved contact.    |
| Contact Email  | string | Email of the retrieved contact. |
| Result Message | string | Human-readable result summary.  |

#### Add Contact to List

Subscribe or unsubscribe a contact from an ActiveCampaign list.

**Inputs**

| Field      | Type             | Required | Description                                                                                               |
| ---------- | ---------------- | -------- | --------------------------------------------------------------------------------------------------------- |
| Contact ID | string           | Yes      | The ID of the contact to add to (or remove from) the list. Use List Contacts to find contact IDs.         |
| List       | select (string)  | Yes      | Select a list, or type the list ID manually. Options load from the selected connection.                   |
| Status     | select (integer) | Yes      | Subscribe or unsubscribe the contact from the list. Available values: Subscribe, Unsubscribe. Default: 1. |

**Outputs**

| Field          | Type    | Description                                                   |
| -------------- | ------- | ------------------------------------------------------------- |
| Contact List   | object  | The created or updated contactList association.               |
| List ID        | string  | Echo of the list ID.                                          |
| Contact ID     | string  | Echo of the contact ID.                                       |
| Status         | integer | Resulting subscription status (1=subscribed, 2=unsubscribed). |
| Result Message | string  | Human-readable result summary.                                |

#### Add Tag to Contact

Add a tag to a contact in ActiveCampaign.

**Inputs**

| Field      | Type            | Required | Description                                                                                   |
| ---------- | --------------- | -------- | --------------------------------------------------------------------------------------------- |
| Contact ID | string          | Yes      | The ID of the contact to tag. Use List Contacts to find contact IDs.                          |
| Tag        | select (string) | Yes      | Select a contact tag, or type the tag ID manually. Options load from the selected connection. |

**Outputs**

| Field          | Type   | Description                         |
| -------------- | ------ | ----------------------------------- |
| Contact Tag    | object | The created contactTag association. |
| Tag ID         | string | Echo of the tag ID.                 |
| Contact ID     | string | Echo of the contact ID.             |
| Result Message | string | Human-readable result summary.      |

### Important behavior

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# 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.stackai.com/integrations/catalog/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.
