# ActiveCampaign

> ActiveCampaign CRM and marketing automation - contacts, lists, tags, deals, pipelines, accounts, campaigns, and automations.

Lets an agent read and manage your ActiveCampaign CRM and marketing automation: contacts, lists, tags, custom fields, deals, pipelines, accounts, campaigns, and automation enrollments.

## What it can do

| Method | What it does |
| --- | --- |
| `activecampaign_list_contacts` | List/search contacts; filter by email, search, list, tag, status. |
| `activecampaign_get_contact` | Get one contact by id. |
| `activecampaign_create_contact` | Create a contact. |
| `activecampaign_sync_contact` | Create or update a contact by email (upsert). |
| `activecampaign_update_contact` | Update a contact. |
| `activecampaign_delete_contact` | Delete a contact. |
| `activecampaign_list_contact_lists` | List a contact's list memberships. |
| `activecampaign_update_list_status` | Subscribe or unsubscribe a contact to a list. |
| `activecampaign_list_lists` | List lists. |
| `activecampaign_get_list` | Get one list by id. |
| `activecampaign_create_list` | Create a list. |
| `activecampaign_delete_list` | Delete a list. |
| `activecampaign_list_tags` | List tags; optional name search. |
| `activecampaign_get_tag` | Get one tag by id. |
| `activecampaign_create_tag` | Create a tag. |
| `activecampaign_delete_tag` | Delete a tag. |
| `activecampaign_list_contact_tags` | List a contact's tags. |
| `activecampaign_add_contact_tag` | Add a tag to a contact. |
| `activecampaign_remove_contact_tag` | Remove a tag from a contact. |
| `activecampaign_list_fields` | List custom contact fields. |
| `activecampaign_get_field` | Get one custom field by id. |
| `activecampaign_create_field` | Create a custom contact field. |
| `activecampaign_set_field_value` | Set a custom field value on a contact. |
| `activecampaign_list_deals` | List deals; filter by stage, pipeline, status. |
| `activecampaign_get_deal` | Get one deal by id. |
| `activecampaign_create_deal` | Create a deal. |
| `activecampaign_update_deal` | Update a deal. |
| `activecampaign_delete_deal` | Delete a deal. |
| `activecampaign_create_deal_note` | Add a note to a deal. |
| `activecampaign_list_pipelines` | List pipelines (deal groups). |
| `activecampaign_get_pipeline` | Get one pipeline by id. |
| `activecampaign_create_pipeline` | Create a pipeline. |
| `activecampaign_list_deal_stages` | List deal stages; optional pipeline filter. |
| `activecampaign_create_deal_stage` | Create a deal stage. |
| `activecampaign_list_accounts` | List accounts (companies); optional search. |
| `activecampaign_get_account` | Get one account by id. |
| `activecampaign_create_account` | Create an account (company). |
| `activecampaign_update_account` | Update an account. |
| `activecampaign_delete_account` | Delete an account. |
| `activecampaign_associate_contact_account` | Link a contact to an account with a job title. |
| `activecampaign_list_campaigns` | List email campaigns. |
| `activecampaign_get_campaign` | Get one campaign by id. |
| `activecampaign_list_automations` | List automations. |
| `activecampaign_get_automation` | Get one automation by id. |
| `activecampaign_list_contact_automations` | List contact-automation enrollments. |
| `activecampaign_add_contact_to_automation` | Enroll a contact into an automation. |
| `activecampaign_remove_contact_automation` | Remove a contact from an automation. |

## How to get credentials

ActiveCampaign uses a per-account API URL and an API key, both shown on the same settings page.

1. Sign in at [activecampaign.com](https://www.activecampaign.com/) and open your account.
2. Go to **Settings > Developer**.
3. Copy your **API URL** - it looks like `https://your-account.api-us1.com`. The `your-account` part (the subdomain) is your account name.
4. Copy your **API Key** from the same page.
5. Paste the account name and key into FlyMyAI.

## Fields to fill in FlyMyAI

| FlyMyAI field | Where it comes from |
| --- | --- |
| `ACTIVECAMPAIGN_ACCOUNT` | Settings > Developer > API URL - the account name (subdomain), e.g. `your-account` |
| `ACTIVECAMPAIGN_API_KEY` | Settings > Developer > API Key |
