> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up ActiveTrail in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/activetrail
Last updated: 2026-11-24

Share ActiveTrail with your team in Claude, ChatGPT and Cursor through Metorial: API token sign-in, 59 tools (28 read-only).

---

To give your team ActiveTrail in Claude, ChatGPT, Cursor and other AI clients, an admin shares the ActiveTrail integration in a Metorial portal, and each person connects with an API token. Agents can create and manage email and SMS campaigns, send WhatsApp and transactional messages, organize contacts in groups and mailing lists, inspect campaign reports, activate existing automations, maintain reusable email templates, configure webhooks, and discover sending profiles and account balances. The integration has 59 tools, 28 read-only, 22 write and 9 destructive, plus 1 trigger.

**What you will learn**

- How an admin shares ActiveTrail in a portal and how each person connects
- What ActiveTrail asks for when you connect, and where to find it
- How to keep the 28 read-only tools and reject the other 31

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An API token from ActiveTrail for each person, or one for a shared connection
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in method

| Method | Type | What a person provides |
| --- | --- | --- |
| **API Token** | API token | `token` |

### API Token

To connect, a person enters:

- `token`: ActiveTrail API access token. Found under Settings > API Apps.

## Admin: share ActiveTrail in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose ActiveTrail. For how members connect, choose **Each person connects** so everyone enters their own API token, or **Shared connection** to enter one API token for everyone.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from ActiveTrail.

4. **Choose who gets it**

   Add the access groups that should see ActiveTrail. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user ActiveTrail integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search activetrail
```

## Employee: connect ActiveTrail

### In the portal

1. **Open ActiveTrail in the catalog**

   Sign in to your portal and open ActiveTrail. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. In the setup window, enter your API token (token).

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search activetrail
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. 

### Add it to your AI client

`metorial install` adds your ActiveTrail connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list activetrail
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 28 read-only tools, such as `get_group` and `get_contact`, and lose the 22 write tools, such as `create_group` or `update_group`, and the 9 destructive tools, such as `delete_group` or `delete_contact`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list activetrail
metorial tools <integration-id>
metorial call <integration-id> list_webhooks -d '{}'
```

`metorial tools` lists the 59 tools, minus any you rejected. `list_webhooks` takes no input. It lists all webhooks configured in your account.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (28)

- `get_email_campaign`: Retrieve full details of an email campaign including design, scheduling, and segment settings. Needs `campaignId`.
- `get_sms_campaign`: Retrieve details of an SMS campaign by ID, including content, targeting, and scheduling information. Needs `campaignId`.
- `get_email_campaign_report`: Retrieve a detailed report for an email campaign including summary statistics, opens, clicks, bounces, unsubscribes, complaints, and per-domain breakdown. Needs `campaignId`.
- `list_webhooks`: List all webhooks configured in your account.
- `get_contact`: Retrieve a single contact by ID, including their profile fields, subscription status, group memberships, mailing list memberships, and activity history. Needs `contactId`.
- `list_email_campaigns`: List email campaigns with optional filtering by mailing list, category, search term, send type, and date range.
- `list_groups`: List all contact groups in your account with pagination support.
- `get_automation_report`: Retrieve a comprehensive report for an automation workflow including overview statistics, email/SMS performance, and contacts who started or completed the automation. Needs `automationId`.
- `get_mailing_list_members`: Retrieve members of a mailing list with filtering by status and date range. Needs `mailingListId`.
- `get_automation`: Retrieve detailed information about an automation workflow including its design, trigger info, and activation status. Needs `automationId`.
- `list_campaign_reports`: List summary reports for all email campaigns with optional date filtering.
- `list_contacts`: Search and list contacts with optional filtering by status, search term, and date range.
- `get_account_info`: Retrieve account information including credit balance, sending profiles (email & SMS), contact field definitions, and content categories.
- `list_sms_campaigns`: List SMS campaigns in your account with pagination.
- `list_templates`: List all reusable email templates from "My Templates".
- `list_automations`: List all marketing automation workflows in your account.
- `get_group`: Retrieve group details by ID, optionally including members and an event count. Needs `groupId`.
- `get_template`: Retrieve a template by ID, optionally including the full HTML content. Needs `templateId`.
- `get_executive_report`: Retrieve executive-level reports including overall account statistics and contact growth over time.
- `list_whatsapp_templates`: Retrieve all approved WhatsApp message templates available in your account.
- `get_sms_campaign_report`: Retrieve a detailed report for an SMS campaign including delivery, click, and failure statistics. Needs `campaignId`.
- `list_mailing_lists`: List all mailing lists in your account.
- `estimate_sms_campaign`: Estimate message usage for an SMS campaign that has not been sent.
- `list_template_categories`: Discover reusable email template categories and their IDs.
- `get_webhook`: Retrieve a configured webhook and its parameters by ID.
- `list_contact_subscriptions`: Retrieve subscribers or unsubscribers with the source of their status and date filtering.
- `get_mailing_list`: Retrieve a mailing list by ID.
- `list_whatsapp_profiles`: Retrieve the account WhatsApp sending profiles for campaign and operational message setup.

### Write tools (22)

- `add_contact_to_mailing_list`: Add a contact to a mailing list. Needs `mailingListId`.
- `toggle_automation`: Activate or deactivate an automation workflow. Needs `automationId` and `isActive`.
- `create_contact`: Create a new contact in ActiveTrail.
- `create_mailing_list`: Create a new mailing list. Needs `name`.
- `send_whatsapp_campaign`: Send a WhatsApp campaign to groups or contacts. Needs `campaignData`.
- `create_email_campaign`: Create a new email campaign. Needs `name`, `subject`, `userProfileId` and `htmlContent`.
- `create_group`: Create a new contact group. Needs `name`.
- `import_contacts`: Bulk import up to 1,000 contacts into a specified group. Needs `groupId` and `contacts`.
- `update_group`: Update an existing group's name. Needs `groupId` and `name`.
- `create_template`: Create a new reusable email template in "My Templates". Needs `name`.
- `create_sms_campaign`: Create a new SMS campaign. Needs `name` and `content`.
- `update_webhook`: Update an existing webhook's name, URL, event type, or active status. Needs `webhookId`.
- `create_campaign_from_template`: Create a new email campaign directly from an existing template. Needs `templateId`, `name`, `subject` and `userProfileId`.
- `send_whatsapp_operational_message`: Send an individual WhatsApp operational/transactional message to a single contact. Needs `messageData`.
- `send_email_operational_message`: Send a transactional/operational email message to individual recipients. Needs `name`, `subject`, `userProfileId`, `htmlContent` and `emails`.
- `update_contact`: Update an existing contact in ActiveTrail by contact ID. Needs `contactId` and `fields`.
- `update_email_campaign`: Update a draft email campaign's details, design, sending settings, or schedule. Needs `campaignId`.
- `create_webhook`: Create a new webhook to receive callbacks when contact changes occur. Needs `name` and `url`.
- `send_sms_operational_message`: Send a transactional/operational SMS message to individual phone numbers. Needs `content` and `phoneNumbers`.
- `add_contact_to_group`: Add a contact to a group by providing contact details. Needs `groupId`.
- `update_template`: Update an email template name, subject, content, or category.
- `update_sms_campaign`: Update an SMS campaign, including content, recipients, or scheduling.

### Destructive tools (9)

- `delete_automation`: Delete one or more automation workflows by ID. Needs `automationIds`.
- `delete_group`: Delete a contact group by ID. Needs `groupId`.
- `delete_email_campaign`: Delete an email campaign by ID. Needs `campaignId`.
- `delete_webhook`: Delete a webhook by ID. Needs `webhookId`.
- `delete_template`: Delete an email template by ID. Needs `templateId`.
- `delete_mailing_list`: Delete a mailing list by ID. Needs `mailingListId`.
- `remove_contact_from_group`: Remove a contact from a group. Needs `groupId` and `contactId`.
- `delete_contact`: Permanently delete a contact from ActiveTrail by contact ID. Needs `contactId`.
- `remove_contact_from_mailing_list`: Remove a contact from a mailing list.

## Triggers

ActiveTrail has 1 trigger, which fire on events in ActiveTrail:

- `contact_changed`: Triggered when a contact is created, updated, or has their status changed — either programmatically (via API, forms, landing pages) or manually through the ActiveTrail UI.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use ActiveTrail there
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [ActiveTrail on metorial.com](https://metorial.com/integrations/activetrail): the integration overview