ActiveCampaign CLI Setup ActiveCampaign can be configured headlessly with `kosmokrator integrations:configure activecampaign`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure activecampaign --set api_key=" $ACTIVECAMPAIGN_API_KEY " --set account_name=" $ACTIVECAMPAIGN_ACCOUNT_NAME " --enable --read allow --write ask --json
kosmokrator integrations:doctor activecampaign --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call ActiveCampaign Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call activecampaign.activecampaign_list_contacts '{
"limit": 1,
"offset": 1,
"search": "example_search",
"filters": "example_filters"
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:activecampaign activecampaign_list_contacts '{
"limit": 1,
"offset": 1,
"search": "example_search",
"filters": "example_filters"
}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs activecampaign --json
kosmo integrations:docs activecampaign.activecampaign_list_contacts --json
kosmo integrations:schema activecampaign.activecampaign_list_contacts --json
kosmo integrations:search "ActiveCampaign" --json
kosmo integrations:list --json All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to ActiveCampaign.
activecampaign.activecampaign_list_contacts Read read List contacts from ActiveCampaign. Supports pagination, search by email or name, and filtering by list, status, and other criteria.
limit, offset, search, filters kosmo integrations:call activecampaign.activecampaign_list_contacts '{"limit":1,"offset":1,"search":"example_search","filters":"example_filters"}' --json copy kosmo integrations:activecampaign activecampaign_list_contacts '{"limit":1,"offset":1,"search":"example_search","filters":"example_filters"}' --json copy
activecampaign.activecampaign_get_contact Read read Get details of a specific ActiveCampaign contact by ID, including email, name, phone, and custom fields.
contact_id kosmo integrations:call activecampaign.activecampaign_get_contact '{"contact_id":1}' --json copy kosmo integrations:activecampaign activecampaign_get_contact '{"contact_id":1}' --json copy
activecampaign.activecampaign_create_contact Write write Create a new contact in ActiveCampaign. Requires an email address; firstName, lastName, and phone are optional.
email, firstName, lastName, phone kosmo integrations:call activecampaign.activecampaign_create_contact '{"email":"example_email","firstName":"example_firstName","lastName":"example_lastName","phone":"example_phone"}' --json copy kosmo integrations:activecampaign activecampaign_create_contact '{"email":"example_email","firstName":"example_firstName","lastName":"example_lastName","phone":"example_phone"}' --json copy
activecampaign.activecampaign_update_contact Write write Update an existing contact in ActiveCampaign. Provide the contact ID and any fields to update (email, firstName, lastName, phone, or custom fields).
contact_id, email, firstName, lastName, phone, fields kosmo integrations:call activecampaign.activecampaign_update_contact '{"contact_id":1,"email":"example_email","firstName":"example_firstName","lastName":"example_lastName","phone":"example_phone","fields":"example_fields"}' --json copy kosmo integrations:activecampaign activecampaign_update_contact '{"contact_id":1,"email":"example_email","firstName":"example_firstName","lastName":"example_lastName","phone":"example_phone","fields":"example_fields"}' --json copy
activecampaign.activecampaign_delete_contact Write write Delete a contact from ActiveCampaign. This action is permanent and cannot be undone.
contact_id kosmo integrations:call activecampaign.activecampaign_delete_contact '{"contact_id":1}' --json copy kosmo integrations:activecampaign activecampaign_delete_contact '{"contact_id":1}' --json copy
activecampaign.activecampaign_list_lists Read read List all contact lists in ActiveCampaign. Returns list IDs, names, and subscriber counts.
limit, offset kosmo integrations:call activecampaign.activecampaign_list_lists '{"limit":1,"offset":1}' --json copy kosmo integrations:activecampaign activecampaign_list_lists '{"limit":1,"offset":1}' --json copy
activecampaign.activecampaign_get_list Read read Get details of a specific ActiveCampaign list by ID, including name, subscriber count, and settings.
list_id kosmo integrations:call activecampaign.activecampaign_get_list '{"list_id":1}' --json copy kosmo integrations:activecampaign activecampaign_get_list '{"list_id":1}' --json copy
activecampaign.activecampaign_add_contact_to_list Write write Subscribe a contact to a list in ActiveCampaign. The contact will be added to the specified list.
contact_id, list_id kosmo integrations:call activecampaign.activecampaign_add_contact_to_list '{"contact_id":1,"list_id":1}' --json copy kosmo integrations:activecampaign activecampaign_add_contact_to_list '{"contact_id":1,"list_id":1}' --json copy
activecampaign.activecampaign_remove_contact_from_list Write write Unsubscribe a contact from a list in ActiveCampaign. The contact will be removed from the specified list.
contact_id, list_id kosmo integrations:call activecampaign.activecampaign_remove_contact_from_list '{"contact_id":1,"list_id":1}' --json copy kosmo integrations:activecampaign activecampaign_remove_contact_from_list '{"contact_id":1,"list_id":1}' --json copy
activecampaign.activecampaign_list_deals Read read List deals from ActiveCampaign. Supports pagination, search, and filtering by pipeline, stage, status, or owner.
limit, offset, search, filters kosmo integrations:call activecampaign.activecampaign_list_deals '{"limit":1,"offset":1,"search":"example_search","filters":"example_filters"}' --json copy kosmo integrations:activecampaign activecampaign_list_deals '{"limit":1,"offset":1,"search":"example_search","filters":"example_filters"}' --json copy
activecampaign.activecampaign_get_deal Read read Get details of a specific ActiveCampaign deal by ID, including title, value, stage, pipeline, and associated contact.
deal_id kosmo integrations:call activecampaign.activecampaign_get_deal '{"deal_id":1}' --json copy kosmo integrations:activecampaign activecampaign_get_deal '{"deal_id":1}' --json copy
activecampaign.activecampaign_create_deal Write write Create a new deal in ActiveCampaign. Requires a title, value, contact ID, and stage. Optionally specify a pipeline.
title, value, contact_id, stage, pipeline kosmo integrations:call activecampaign.activecampaign_create_deal '{"title":"example_title","value":1,"contact_id":1,"stage":1,"pipeline":1}' --json copy kosmo integrations:activecampaign activecampaign_create_deal '{"title":"example_title","value":1,"contact_id":1,"stage":1,"pipeline":1}' --json copy
activecampaign.activecampaign_update_deal Write write Update an existing deal in ActiveCampaign. Provide the deal ID and any fields to update (title, value, stage, pipeline, status, etc.).
deal_id, title, value, stage, pipeline, status, owner, percent, fields kosmo integrations:call activecampaign.activecampaign_update_deal '{"deal_id":1,"title":"example_title","value":1,"stage":1,"pipeline":1,"status":1,"owner":"example_owner","percent":1}' --json copy kosmo integrations:activecampaign activecampaign_update_deal '{"deal_id":1,"title":"example_title","value":1,"stage":1,"pipeline":1,"status":1,"owner":"example_owner","percent":1}' --json copy
activecampaign.activecampaign_list_automations Read read List all automations in ActiveCampaign. Returns automation IDs, names, status, and trigger counts.
limit, offset kosmo integrations:call activecampaign.activecampaign_list_automations '{"limit":1,"offset":1}' --json copy kosmo integrations:activecampaign activecampaign_list_automations '{"limit":1,"offset":1}' --json copy
activecampaign.activecampaign_create_note Write write Create a note attached to a contact in ActiveCampaign. Provide the contact ID and note text.
contact_id, note kosmo integrations:call activecampaign.activecampaign_create_note '{"contact_id":1,"note":"example_note"}' --json copy kosmo integrations:activecampaign activecampaign_create_note '{"contact_id":1,"note":"example_note"}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Read read
Schema command kosmo integrations:schema activecampaign.activecampaign_list_contacts --json
Operation Read read
Schema command kosmo integrations:schema activecampaign.activecampaign_get_contact --json
Operation Write write
Schema command kosmo integrations:schema activecampaign.activecampaign_create_contact --json
Operation Write write
Schema command kosmo integrations:schema activecampaign.activecampaign_update_contact --json
Operation Write write
Schema command kosmo integrations:schema activecampaign.activecampaign_delete_contact --json
Operation Read read
Schema command kosmo integrations:schema activecampaign.activecampaign_list_lists --json
Operation Read read
Schema command kosmo integrations:schema activecampaign.activecampaign_get_list --json
Operation Write write
Schema command kosmo integrations:schema activecampaign.activecampaign_add_contact_to_list --json
Operation Write write
Schema command kosmo integrations:schema activecampaign.activecampaign_remove_contact_from_list --json
Operation Read read
Schema command kosmo integrations:schema activecampaign.activecampaign_list_deals --json
Operation Read read
Schema command kosmo integrations:schema activecampaign.activecampaign_get_deal --json
Operation Write write
Schema command kosmo integrations:schema activecampaign.activecampaign_create_deal --json
Operation Write write
Schema command kosmo integrations:schema activecampaign.activecampaign_update_deal --json
Operation Read read
Schema command kosmo integrations:schema activecampaign.activecampaign_list_automations --json
Operation Write write
Schema command kosmo integrations:schema activecampaign.activecampaign_create_note --json Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.