ActiveCampaign connector

Create and update contacts, accounts, tags, and list subscriptions in ActiveCampaign from AgentRuntime workflows.

On this page

The activecampaign connector lets your workflows work with the ActiveCampaign API. Use it to push new leads into ActiveCampaign, tag and segment contacts, add them to lists, and link them to company accounts, without copying data by hand.

Prerequisites

  • An ActiveCampaign account with API access.
  • Your ActiveCampaign API URL and API key (called a token in AgentRuntime).
  • The project_contributor role or higher in your workspace, which lets you manage connections and MCP instances. See Roles and permissions.

Connect in AgentRuntime

  1. Get your API URL and key from ActiveCampaign

    In ActiveCampaign, open Settings, then Developer, and find the API access details. Copy the URL (it looks like https://youraccountname.api-us1.com, with no trailing slash) and the Key.

  2. Add the connector to your workspace

    Click MCP in the sidebar, then Add connectors. Find ActiveCampaign in the App catalog, select it, and click Add to workspace. The instance now appears on the MCP connectors page. See MCP instances.

  3. Add your credentials to a profile

    Open the new instance to reach Instance config. Under Profiles for this connector, click New profile, enter a Display name, and on the Type secrets on this screen tab fill in activecampaign_api_url (the URL) and activecampaign_api_token (the key). Set Status to Active — can be used in workflows and click Save. Then click Use this profile for workflows.

  4. Test it

    In Workflow Studio, add the activecampaign_get_users_me tool from your ActiveCampaign instance (use Browse platform MCP if it is not listed), fill in its arguments, and run the workflow. A successful step means the connection works. This tool has no arguments and only checks your credentials.

Note

To reuse the same credentials in more than one profile, save them first under Connections → New custom connection, using the exact key names from Configuration, then choose Use a saved connection on the profile instead.

What you can build

  • Lead capture. A form or webhook starts the workflow, activecampaign_create_contact adds the person, and activecampaign_subscribe_or_unsubscribe_contact_from_list puts them on your nurture list.
  • Tag by intent. An LLM step scores a chat transcript, then activecampaign_add_tag_to_contact tags hot leads so your automations in ActiveCampaign can take over.
  • Keep accounts in sync. When a deal closes elsewhere, activecampaign_create_account and activecampaign_add_contact_to_account mirror it in ActiveCampaign.
  • Credential check. A scheduled run of activecampaign_get_users_me tells you if the key has stopped working.

Tools

The Required arguments column lists the fields the tool's input schema marks as required. Some of them are optional in practice; if you have nothing to set, pass an empty value such as "", [], {}, or false.

ToolAccessWhat it doesRequired arguments
activecampaign_add_contact_to_accountWriteLink an ActiveCampaign contact to an account.contact_id, account_id, job_title
activecampaign_add_tag_to_contactWriteAdd a tag to an ActiveCampaign contact.contact_id, tag_id
activecampaign_create_accountWriteCreate an ActiveCampaign account.name, account_url, fields_json
activecampaign_create_contactWriteCreate an ActiveCampaign contact.email, first_name, last_name, phone, field_values_json
activecampaign_get_users_meReadValidate the configured ActiveCampaign credentials by calling GET /users/me.—
activecampaign_list_contactsReadList ActiveCampaign contacts.limit
activecampaign_subscribe_or_unsubscribe_contact_from_listWriteSubscribe or unsubscribe a contact from an ActiveCampaign list.list_id, contact_id, status
activecampaign_update_accountWriteUpdate an ActiveCampaign account by account ID.account_id, name, account_url, fields_json
activecampaign_update_contactWriteUpdate an existing ActiveCampaign contact by contact ID.contact_id, email, first_name, last_name, phone, field_values_json

Example

Add a new lead from a form submission. Every required argument is included; use an empty string for the ones you have no value for.

{
  "id": "create-lead",
  "type": "mcp",
  "name": "Create ActiveCampaign contact",
  "tool_name": "activecampaign_create_contact",
  "tool_args": {
    "email": "{{input.email}}",
    "first_name": "{{input.first_name}}",
    "last_name": "{{input.last_name}}",
    "phone": "",
    "field_values_json": "[]"
  },
  "timeout_s": 30
}

Custom fields

Contact custom fields go in field_values_json, a JSON string holding an array:

[
  {"field": "1", "value": "Enterprise"},
  {"field": "2", "value": "2026-06-01"}
]

Account custom fields use fields_json:

[
  {"customFieldId": 1, "fieldValue": "West region"}
]

Configuration

KeyRequiredDescription
activecampaign_api_urlYesYour ActiveCampaign API URL, without a trailing slash.
activecampaign_api_tokenYesThe API key from Settings → Developer.
activecampaign_http_timeout_secondNoHTTP timeout in seconds. Default 45.

Troubleshooting

ProblemWhat to do
401 or "unauthorized"The key is wrong or was regenerated. Copy it again from Settings → Developer and update the profile.
Requests go to the wrong placeactivecampaign_api_url must be the exact URL shown in your account (for example api-us1 or another region), with no trailing slash.
Custom field values are ignored or rejectedPass field_values_json as a JSON string array of {"field":"<field id>","value":...}. Check the field IDs in your account. Accounts use fields_json with customFieldId and fieldValue.
Subscribe does nothingstatus must be the string "1" to subscribe or "2" to unsubscribe.
Edit this pageagentruntime-io/agentruntime-docs