ActiveCampaign
Create contacts, manage lists, and track deals in ActiveCampaign.
On this page
Connect
Auth type: API key (secret_text). Paste the API key (or token) from the provider's settings into the connect dialog. It is encrypted at rest and only decrypted on the server when an action runs.
- In the editor: Backend panel, Integrations tab, then Connect. This connects it for the project.
- For every project in a workspace: Workspace settings, Integrations.
- Owners and admins choose which integrations members may connect in the admin panel (Integrations tab), and can attach their own OAuth app there.
Call it from a workflow
Pass the action name and its input. The call resolves with { success, output, error? }; a missing connection resolves with success false and the reason. See ctx.integrations.invoke and ctx.integrations.call.
// .workflow.js (native ctx)
export async function run(ctx) {
const res = await ctx.integrations.invoke("activecampaign", "activecampaign_create_contact", {
"email": "<email>",
"contactCustomFields": {}
});
if (!res.success) throw new Error(res.error);
ctx.log.info("ActiveCampaign answered", { output: res.output });
}// defineWorkflow module (@app/sdk ctx)
import { defineWorkflow } from "@app/sdk";
export default defineWorkflow({
id: "activecampaign-activecampaign-create-contact",
name: "ActiveCampaign: Create Contact",
description: "Calls ActiveCampaign when a row is created.",
trigger: { type: "entity_event", entity: "tickets", event: "created" },
async run(ctx, event) {
const res = await ctx.integrations.call("activecampaign", {
"action": "activecampaign_create_contact",
"email": "<email>",
"contactCustomFields": {}
}) as { success: boolean; error?: string };
if (!res.success) throw new Error(res.error);
},
});curl -X POST "$APP_ORIGIN/__appbricx/connector-proxy/activecampaign/activecampaign_create_contact" \
-H "Authorization: Bearer $APP_KEY" \
-H "content-type: application/json" \
-d '{"props":{"email":"<email>","contactCustomFields":{}}}'Actions
activecampaign_create_contactin catalog
Create Contact. Creates a new contact.
Also accepted as create_contact.
| Input | Type | Description |
|---|---|---|
emailrequired | text | |
firstNameoptional | text | First Name |
lastNameoptional | text | Last Name |
phoneoptional | text | Phone |
contactCustomFieldsrequired | object (depends on other props) | Contact Custom Fields |
activecampaign_add_contact_to_account
Add Contact to Account. Adds a contact to an ActiveCampaign account.
| Input | Type | Description |
|---|---|---|
contactIdrequired | id (picked from your account) | Contact ID |
accountIdrequired | id (picked from your account) | Account ID |
jobTitleoptional | text | Job Title |
activecampaign_add_tag_to_contact
Add Tag to Contact. Adds a tag to contact.
| Input | Type | Description |
|---|---|---|
contactIdrequired | id (picked from your account) | Contact ID |
tagIdrequired | id (picked from your account) | Tag ID |
activecampaign_create_account
Create Account. Creates a new account.
| Input | Type | Description |
|---|---|---|
namerequired | text | Account Name |
accountUrloptional | text | Account URL |
accountCustomFieldsrequired | object (depends on other props) | Account Custom Fields |
activecampaign_subscribe_or_unsubscribe_contact_from_list
Subscribe or Unsubscribe Contact From List. Subscribes a Contact to a List it is not currently associated with, or Unsubscribes a Contact from a list is currently associated with.
| Input | Type | Description |
|---|---|---|
listIdrequired | id (picked from your account) | List |
statusrequired | one of "1" | "2" | Action |
contactIdrequired | text | Contact ID |
activecampaign_update_account
Update Account. Updates an account.
| Input | Type | Description |
|---|---|---|
accountIdrequired | id (picked from your account) | Account ID |
nameoptional | text | Account Name |
accountUrloptional | text | Account URL |
accountCustomFieldsrequired | object (depends on other props) | Account Custom Fields |
activecampaign_update_contact
Update Contact. Updates an existing contact.
| Input | Type | Description |
|---|---|---|
contactIdrequired | id (picked from your account) | Contact ID |
emailoptional | text | |
firstNameoptional | text | First Name |
lastNameoptional | text | Last Name |
phoneoptional | text | Phone |
contactCustomFieldsrequired | object (depends on other props) | Contact Custom Fields |
Details
- Id
activecampaign- Category
- Marketing
- Tags
- email, automation, crm, marketing
- Package
@activepieces/piece-activecampaign@0.1.3- Tier
- Built in