ActiveCampaign connector
Create and update contacts, accounts, tags, and list subscriptions in ActiveCampaign from AgentRuntime workflows.
En esta página
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
- 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. - 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.
- 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) andactivecampaign_api_token(the key). Set Status to Active — can be used in workflows and click Save. Then click Use this profile for workflows. - Test it
In Workflow Studio, add the
activecampaign_get_users_metool 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.
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_contactadds the person, andactivecampaign_subscribe_or_unsubscribe_contact_from_listputs them on your nurture list. - Tag by intent. An LLM step scores a chat transcript, then
activecampaign_add_tag_to_contacttags hot leads so your automations in ActiveCampaign can take over. - Keep accounts in sync. When a deal closes elsewhere,
activecampaign_create_accountandactivecampaign_add_contact_to_accountmirror it in ActiveCampaign. - Credential check. A scheduled run of
activecampaign_get_users_metells 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.
| Tool | Access | What it does | Required arguments |
|---|---|---|---|
activecampaign_add_contact_to_account | Write | Link an ActiveCampaign contact to an account. | contact_id, account_id, job_title |
activecampaign_add_tag_to_contact | Write | Add a tag to an ActiveCampaign contact. | contact_id, tag_id |
activecampaign_create_account | Write | Create an ActiveCampaign account. | name, account_url, fields_json |
activecampaign_create_contact | Write | Create an ActiveCampaign contact. | email, first_name, last_name, phone, field_values_json |
activecampaign_get_users_me | Read | Validate the configured ActiveCampaign credentials by calling GET /users/me. | — |
activecampaign_list_contacts | Read | List ActiveCampaign contacts. | limit |
activecampaign_subscribe_or_unsubscribe_contact_from_list | Write | Subscribe or unsubscribe a contact from an ActiveCampaign list. | list_id, contact_id, status |
activecampaign_update_account | Write | Update an ActiveCampaign account by account ID. | account_id, name, account_url, fields_json |
activecampaign_update_contact | Write | Update 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
| Key | Required | Description |
|---|---|---|
activecampaign_api_url | Yes | Your ActiveCampaign API URL, without a trailing slash. |
activecampaign_api_token | Yes | The API key from Settings → Developer. |
activecampaign_http_timeout_second | No | HTTP timeout in seconds. Default 45. |
Troubleshooting
| Problem | What 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 place | activecampaign_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 rejected | Pass 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 nothing | status must be the string "1" to subscribe or "2" to unsubscribe. |
Related
- MCP instances
- Connections
- Integrations quickstart
- Shopify connector for syncing customers after a purchase
- Connector catalog
- Troubleshooting