# Mailcoach

Mailcoach is an email marketing platform that allows users to manage email campaigns and subscriber lists efficiently.

- **Category:** email newsletters
- **Auth:** API_KEY
- **Composio Managed App Available?** N/A
- **Tools:** 56
- **Triggers:** 0
- **Slug:** `MAILCOACH`
- **Version:** 20260313_00

## Tools

### Add Mailcoach Campaign

**Slug:** `MAILCOACH_ADD_CAMPAIGN`

Tool to create a new Mailcoach campaign. Use when you need to send or schedule an email campaign to a specific list or segment.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `html` | string | No | Raw HTML content for the campaign; if omitted, template_uuid or mailable_class must be provided |
| `name` | string | Yes | Unique name for the campaign |
| `fields` | object | No | Dynamic template fields when using a template UUID. |
| `utm_tags` | boolean | No | Whether to automatically append UTM parameters to all links |
| `schedule_at` | string | No | Schedule date/time in 'YYYY-MM-DD HH:MM:SS' (server timezone) |
| `segment_uuid` | string | No | UUID of the subscriber segment to target |
| `template_uuid` | string | No | UUID of the template; required if using a saved template |
| `mailable_class` | string | No | Fully-qualified class name for a custom mailable |
| `disable_webview` | boolean | No | Whether to disable the webview version of the email |
| `email_list_uuid` | string | Yes | UUID of the email list to send the campaign to |
| `add_subscriber_tags` | boolean | No | Whether to add subscriber-specific tags found in the content |
| `add_subscriber_link_tags` | boolean | No | Whether to add link tags for each subscriber |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Email List

**Slug:** `MAILCOACH_ADD_EMAIL_LIST`

Tool to create a new email list. Use when you need to manage and organize subscribers before sending campaigns. Use after authentication.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Email list name |
| `campaign_mailer` | string | No | Mailer for campaigns, as defined in the Laravel config |
| `automation_mailer` | string | No | Mailer for automations, as defined in the Laravel config |
| `confirmation_mail` | string ("send_default_confirmation_mail" | "send_custom_confirmation_mail") | No | Type of confirmation mail to send |
| `default_from_name` | string | No | Default sender name |
| `report_recipients` | string | No | Comma-separated emails to receive reports |
| `default_from_email` | string | Yes | Default sender email address |
| `report_campaign_sent` | boolean | No | Send report after each campaign is sent |
| `transactional_mailer` | string | No | Mailer for transactional emails, as defined in the Laravel config |
| `default_reply_to_name` | string | No | Default reply-to name |
| `requires_confirmation` | boolean | No | Require double opt-in confirmation for new subscribers |
| `campaigns_feed_enabled` | boolean | No | Enable RSS feed for campaigns |
| `default_reply_to_email` | string | No | Default reply-to email address |
| `report_campaign_summary` | boolean | No | Include campaign summary in reports |
| `allow_form_subscriptions` | boolean | No | Allow subscriptions via form |
| `confirmation_mail_content` | string | No | HTML content for custom confirmation mail; required if confirmation_mail is send_custom_confirmation_mail |
| `confirmation_mail_subject` | string | No | Subject for custom confirmation mail; required if confirmation_mail is send_custom_confirmation_mail |
| `redirect_after_subscribed` | string | No | URL redirect after a successful subscription |
| `report_email_list_summary` | boolean | No | Include email list summary in reports |
| `redirect_after_unsubscribed` | string | No | URL redirect after unsubscribed |
| `allowed_form_subscription_tags` | array | No | Allowed tags that subscribers can choose when subscribing via form |
| `redirect_after_already_subscribed` | string | No | URL redirect when already subscribed |
| `redirect_after_subscription_pending` | string | No | URL redirect after subscription pending confirmation |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add suppression

**Slug:** `MAILCOACH_ADD_SUPPRESSION`

Tool to add a suppression entry. Use after detecting a bounce, spam complaint, or manual block.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `email` | string | Yes | The email address to suppress |
| `reason` | string ("hard_bounce" | "spam_complaint" | "manual") | No | Reason for suppression. One of 'hard_bounce', 'spam_complaint', or 'manual'. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Tag to Email List

**Slug:** `MAILCOACH_ADD_TAG`

Tool to create a new tag within a specific email list. Use after confirming the email list exists.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Name of the tag to create |
| `email_list_uuid` | string | Yes | UUID of the target email list where the tag will be created |
| `visible_in_preferences` | boolean | No | Whether this tag should be shown in subscriber preference settings. If omitted, defaults to the server's default behavior. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Tags to Subscriber

**Slug:** `MAILCOACH_ADD_TAGS_TO_SUBSCRIBER`

Add tags to a subscriber for segmentation and targeting. Tags are appended to existing tags. Use after obtaining a subscriber UUID from listing subscribers or creating a new subscription.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tags` | array | Yes | List of tag names to add to the subscriber. Tags are appended to existing tags. Must contain at least one tag. |
| `subscriber_uuid` | string | Yes | The UUID of the subscriber to add tags to. Obtain this from listing subscribers or subscribing a new user. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Add Transactional Email Template

**Slug:** `MAILCOACH_ADD_TRANSACTIONAL_EMAIL_TEMPLATE`

Creates a new email template in Mailcoach via POST /api/templates. Use this action to create reusable HTML templates that can be referenced when sending transactional emails. Returns the created template with its UUID, which can be used to reference, update, or delete the template later.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `html` | string | No | HTML content of the template. Supports Mailcoach placeholders like {{ subscriber.email }}. If neither html nor structured_html is provided, an empty string is used. |
| `name` | string | Yes | Name for the template. Used to identify the template in your Mailcoach account. Duplicate names are allowed (each template gets a unique UUID). |
| `structured_html` | string | No | Structured HTML content, typically MJML format for responsive emails. Takes precedence over html if both provided. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Append to Subscriber Import

**Slug:** `MAILCOACH_APPEND_TO_SUBSCRIBER_IMPORT`

Tool to append CSV data to an existing subscriber import. Use after retrieving a subscriber import when additional subscriber data needs to be added.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `import_uuid` | string | Yes | UUID of the subscriber import to append data to. |
| `subscribers_csv` | string | Yes | CSV formatted string of subscriber data to append. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Confirm Subscriber

**Slug:** `MAILCOACH_CONFIRM_SUBSCRIBER`

Confirm a subscriber's subscription to an email list (double opt-in confirmation). Use this action to finalize a subscriber's subscription after they have been added to an email list with confirmation required. This is typically called after the subscriber clicks a confirmation link in their email. Prerequisites: - A subscriber must exist (created via MAILCOACH_SUBSCRIBE_TO_EMAIL_LIST action) - The subscriber must be in 'unconfirmed' status (skip_confirmation was false or not set) Returns 204 No Content on success. If the subscriber is already confirmed or does not exist, appropriate error messages are returned.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `subscriber_uuid` | string | Yes | The unique identifier (UUID) of the subscriber to confirm. This UUID is returned when creating a subscriber via the subscribe endpoint. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Segment for Email List

**Slug:** `MAILCOACH_CREATE_SEGMENT`

Tool to create a new segment within an email list. Use when you need to target specific groups of subscribers based on tags.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Name of the segment to create |
| `negative_tags` | array | No | List of tag names that should be excluded from the segment |
| `positive_tags` | array | No | List of tag names that should be included in the segment |
| `email_list_uuid` | string | Yes | UUID of the email list where the segment will be created |
| `all_negative_tags_required` | boolean | No | Whether all negative tags must be present for exclusion. If true, subscribers are excluded only if they have ALL negative tags. If false, subscribers are excluded if they have ANY negative tag. |
| `all_positive_tags_required` | boolean | No | Whether all positive tags must be present on a subscriber for inclusion. If true, subscribers must have ALL specified positive tags. If false, subscribers need only ONE of the positive tags. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Create Subscriber Import

**Slug:** `MAILCOACH_CREATE_SUBSCRIBER_IMPORT`

Creates a new subscriber import in Mailcoach. Use this to bulk import subscribers from CSV data into an email list. The import is created in 'draft' status and must be started separately using the start_subscriber_import action. The CSV must include a header row with at least an 'email' column. Optional columns include 'first_name', 'last_name', 'tags', and custom attributes. Requires a valid email_list_uuid from an existing email list.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `replace_tags` | boolean | No | If true, all existing tags on the subscribers will be replaced with tags from the CSV. Defaults to false. |
| `email_list_uuid` | string | Yes | UUID of the target email list. |
| `subscribers_csv` | string | Yes | CSV string with subscribers' data, one row per subscriber. Must include header. |
| `unsubscribe_others` | boolean | No | If true, existing list members not present in the CSV will be unsubscribed. Use with caution. Defaults to false. |
| `subscribe_unsubscribed` | boolean | No | If true, previously unsubscribed emails will be resubscribed. Defaults to false. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Campaign

**Slug:** `MAILCOACH_DELETE_CAMPAIGN`

Tool to delete a campaign by UUID. Use when you need to permanently remove a campaign after confirming its identifier.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The UUID of the campaign to delete. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Email List

**Slug:** `MAILCOACH_DELETE_EMAIL_LIST`

Tool to delete an email list by UUID. Use when you need to permanently remove an email list after confirming its identifier.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The UUID of the email list to delete. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Segment from Email List

**Slug:** `MAILCOACH_DELETE_SEGMENT`

Tool to delete a segment from an email list. Use when you need to permanently remove a segment after confirming its identifiers.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `segment_uuid` | string | Yes | UUID of the segment to delete. |
| `email_list_uuid` | string | Yes | UUID of the email list containing the segment. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Subscriber

**Slug:** `MAILCOACH_DELETE_SUBSCRIBER`

Permanently delete a subscriber by UUID from Mailcoach. Use this tool when you need to completely remove a subscriber and all their data. After deletion, the email address can be re-subscribed in the future. This action is irreversible - consider using unsubscribe instead if you want to preserve subscriber history.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The unique identifier (UUID) of the subscriber to permanently delete. This can be obtained from the subscriber list or get subscriber endpoint. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Subscriber Import

**Slug:** `MAILCOACH_DELETE_SUBSCRIBER_IMPORT`

Tool to delete a subscriber import by its UUID. Use when you need to permanently remove a subscriber import after confirming its identifier.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The UUID of the subscriber import to delete. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Suppression

**Slug:** `MAILCOACH_DELETE_SUPPRESSION`

Tool to delete a suppression entry by UUID. Use when you need to permanently remove a suppression after confirming its identifier.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `suppression_uuid` | string | Yes | The unique UUID of the suppression entry to delete. Obtain this from the 'Get All Suppressions' or 'Add Suppression' actions. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Tag from Email List

**Slug:** `MAILCOACH_DELETE_TAG`

Tool to delete a tag from an email list. Use when you need to permanently remove a tag after confirming its identifiers.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | UUID of the tag to delete. |
| `email_list_uuid` | string | Yes | UUID of the email list containing the tag. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Template

**Slug:** `MAILCOACH_DELETE_TEMPLATE`

Tool to delete a template by UUID. Use when you need to permanently remove a template after confirming its UUID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The unique identifier (UUID) of the template to delete. Can be obtained from the Get All Templates or Get Specific Template actions. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Delete Transactional Mail

**Slug:** `MAILCOACH_DELETE_TRANSACTIONAL_MAIL`

Tool to delete a transactional mail send record by its UUID. This removes the logged send entry for a transactional email from the /api/sends endpoint. Use when you need to permanently remove a transactional mail log item. Note: This is idempotent - deleting a non-existent UUID returns success.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | UUID of the transactional mail send record to delete. This is the 'uuid' field from the sends list (GET /api/sends), not a template UUID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get All Campaigns

**Slug:** `MAILCOACH_GET_ALL_CAMPAIGNS`

Tool to retrieve all campaigns. Use when you need a paginated, sortable list of campaigns matching criteria.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results. |
| `sort` | string ("name" | "unique_open_count" | "unique_click_count" | "unsubscribe_rate" | "sent_to_number_of_subscribers" | "sent") | No | Sort field; prefix with '-' for descending. Allowed: name, unique_open_count, unique_click_count, unsubscribe_rate, sent_to_number_of_subscribers, sent. |
| `filter_search` | string | No | Search term to find campaigns by name (e.g., 'blackfriday'). |
| `filter_status` | string ("sent" | "scheduled" | "draft") | No | Filter campaigns by status. |
| `filter_email_list_id` | string | No | Filter by email list ID. |
| `filter_email_list_uuid` | string | No | Filter by email list UUID. |
| `filter_content_item_template_uuid` | string | No | Filter by associated template UUID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get All Sent Items

**Slug:** `MAILCOACH_GET_ALL_SENT_ITEMS`

Tool to retrieve all sent items. Use when you need to list and filter sent items after delivery.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (must be ≥1) |
| `sort` | string ("-sent_at" | "sent_at") | No | Sort by sent_at: '-sent_at' for descending (default), 'sent_at' for ascending |
| `campaign_uuid` | string | No | Filter by campaign UUID |
| `subscriber_uuid` | string | No | Filter by subscriber UUID |
| `automation_mail_uuid` | string | No | Filter by automation mail UUID |
| `transactional_mail_log_item_uuid` | string | No | Filter by transactional mail log item UUID |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get All Subscriber Imports

**Slug:** `MAILCOACH_GET_ALL_SUBSCRIBER_IMPORTS`

Tool to retrieve all subscriber imports. Use when you need a paginated list of import jobs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results (must be ≥ 1) |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get All Suppressions

**Slug:** `MAILCOACH_GET_ALL_SUPPRESSIONS`

Retrieve a paginated list of all email suppression entries from Mailcoach. Suppressions are email addresses that will never receive emails. They can be created due to hard bounces, spam complaints, or manual blocking. Use this tool to: - View all suppressed email addresses - Search for specific suppressed emails - Filter by suppression reason (hard_bounce, spam_complaint, manual) - Get suppression UUIDs for use with get_specific_suppression or delete_suppression

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results |
| `sort` | string | No | Sort by created_at; prefix with '-' for descending |
| `filter_reason` | string ("hard_bounce" | "spam_complaint" | "manual") | No | Filter suppressions by reason |
| `filter_search` | string | No | Search by full or partial email address |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get All Tags

**Slug:** `MAILCOACH_GET_ALL_TAGS`

Tool to retrieve all tags for a specific email list. Use after confirming the email list exists.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results |
| `email_list_uuid` | string | Yes | UUID of the email list to fetch tags for |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get All Templates

**Slug:** `MAILCOACH_GET_ALL_TEMPLATES`

Tool to retrieve all templates. Use when you need a paginated list of templates with optional search and sorting.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results (>= 1). |
| `sort` | string ("name" | "updated_at" | "-name" | "-updated_at") | No | Sort field; prefix with '-' for descending. Allowed: 'name', 'updated_at'. |
| `filter_search` | string | No | Search term to filter templates by name (e.g., 'welcome'). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get All Transactional Email Templates

**Slug:** `MAILCOACH_GET_ALL_TRANSACTIONAL_EMAIL_TEMPLATES`

Tool to retrieve all transactional email templates. Use when you need a paginated list of transactional templates matching your criteria.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results. |
| `sort` | string ("created_at" | "-created_at") | No | Sort by created_at; prefix with '-' for descending (e.g., '-created_at'). |
| `filter_name` | string | No | Filter templates by name (e.g., 'welcome_email'). |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Campaign Bounces

**Slug:** `MAILCOACH_GET_CAMPAIGN_BOUNCES`

Tool to retrieve bounced subscribers of a sent campaign with pagination support. Use when you need to analyze or manage email bounces for campaign delivery tracking.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (default limit: 1000 items per page) |
| `sort` | string | No | Sort results by created_at or email. Prefix with '-' for descending order (e.g., '-created_at') |
| `uuid` | string | Yes | The UUID of the campaign to retrieve bounces for |
| `filter_type` | string ("bounce" | "soft_bounce" | "complaint") | No | Enum for bounce types. |
| `filter_search` | string | No | Search by email, first_name, or last_name |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Campaign Clicks

**Slug:** `MAILCOACH_GET_CAMPAIGN_CLICKS`

Tool to retrieve clicks from a sent campaign with pagination support. Use when you need to analyze link engagement and click-through data for a specific campaign.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (default limit: 15 items per page) |
| `sort` | string ("unique_click_count" | "click_count") | No | Enum for sort fields. |
| `uuid` | string | Yes | The UUID of the campaign to retrieve clicks for |
| `filter_search` | string | No | Search by URL (e.g., 'example.com') |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Campaign Opens

**Slug:** `MAILCOACH_GET_CAMPAIGN_OPENS`

Tool to retrieve all opens for a sent campaign with pagination support. Use when you need to see who opened a campaign and how many times.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results (must be ≥1) |
| `sort` | string ("email" | "-email" | "open_count" | "-open_count" | "first_opened_at" | "-first_opened_at") | No | Sort field; prefix with '-' for descending. Allowed: email, open_count, first_opened_at. |
| `uuid` | string | Yes | UUID of the campaign to retrieve opens for |
| `filter_search` | string | No | Search by email address (e.g., 'john@doe.com') |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Campaign Unsubscribes

**Slug:** `MAILCOACH_GET_CAMPAIGN_UNSUBSCRIBES`

Tool to retrieve unsubscribes from a sent campaign with pagination support. Use when you need to see who unsubscribed from a specific campaign.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for pagination (default limit is 1000) |
| `sort` | string | No | Sort results by created_at; prefix with '-' for descending (e.g., '-created_at') |
| `uuid` | string | Yes | The UUID of the campaign to get unsubscribes for |
| `filter_search` | string | No | Search by email, first_name, or last_name |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Email Lists

**Slug:** `MAILCOACH_GET_EMAIL_LISTS`

Tool to retrieve all email lists. Use when you need to fetch a paginated list of email lists with optional filters.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results, must be >= 1 |
| `sort` | string ("name" | "-name" | "created_at" | "-created_at" | "active_subscribers_count" | "-active_subscribers_count") | No | Sort by one of 'name', 'created_at', or 'active_subscribers_count'; prefix with '-' for descending |
| `filter_name` | string | No | Exact match on list name |
| `filter_search` | string | No | Fuzzy search by list name |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Segment

**Slug:** `MAILCOACH_GET_SEGMENT`

Tool to retrieve details of a specific segment. Use when you need to fetch segment metadata after confirming the email list and segment UUIDs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `segment_uuid` | string | Yes | UUID of the specific segment to retrieve. Obtain this from the 'Get All Segments' action. |
| `email_list_uuid` | string | Yes | UUID of the email list owning the segment. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Specific Campaign

**Slug:** `MAILCOACH_GET_SPECIFIC_CAMPAIGN`

Tool to retrieve details of a specific Mailcoach campaign. Use when you need the full campaign resource by its UUID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | UUID of the campaign to retrieve |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Specific Email List

**Slug:** `MAILCOACH_GET_SPECIFIC_EMAIL_LIST`

Retrieve detailed information about a specific Mailcoach email list by its UUID. Returns comprehensive list details including: - Basic info: name, UUID, subscriber count - Email settings: default from/reply-to addresses and names - Subscription settings: form subscriptions, confirmation requirements, redirect URLs - Mailer configurations: campaign, automation, and transactional mailers - Reporting settings: report recipients and enabled report types - Timestamps: creation and last update dates Use this action when you need complete details about a specific email list. The UUID can be obtained from the Get Email Lists action.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The UUID of the email list to retrieve. Can be obtained from the Get Email Lists action. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Specific Subscriber

**Slug:** `MAILCOACH_GET_SPECIFIC_SUBSCRIBER`

Tool to retrieve a specific subscriber. Use when you need to fetch subscriber details by UUID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The UUID of the subscriber to retrieve. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Specific Suppression

**Slug:** `MAILCOACH_GET_SPECIFIC_SUPPRESSION`

Tool to retrieve a specific suppression entry. Use when you need to fetch suppression details by UUID or email.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `suppression_uuid` | string | Yes | The UUID or email identifier of the suppression entry to retrieve. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Specific Tag

**Slug:** `MAILCOACH_GET_SPECIFIC_TAG`

Tool to retrieve details of a specific tag. Use when you need to fetch tag metadata after confirming the email list and tag UUIDs.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | UUID of the specific tag to retrieve. Obtain this from the 'Get All Tags' action. |
| `email_list_uuid` | string | Yes | UUID of the email list owning the tag. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Specific Template

**Slug:** `MAILCOACH_GET_SPECIFIC_TEMPLATE`

Retrieves the full details of a specific Mailcoach email template by its UUID. Use this to fetch template content (HTML), metadata, and timestamps for a known template. The UUID can be obtained from the 'Get All Templates' action or from template creation responses. Returns template name, HTML content, structured HTML (if present), and timestamps.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The unique identifier (UUID) of the template to retrieve. Obtain this from the 'Get All Templates' action or after creating a template. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Subscriber Import

**Slug:** `MAILCOACH_GET_SUBSCRIBER_IMPORT`

Tool to retrieve details of a specific subscriber import by UUID. Use when you need to check the status or details of a particular import job.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The UUID of the subscriber import to retrieve |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get Transactional Mail

**Slug:** `MAILCOACH_GET_TRANSACTIONAL_MAIL`

Tool to retrieve details of a specific transactional email by its UUID. Use when you need to fetch the full details (subject, HTML content, recipients, settings) of a known transactional email template.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The unique identifier (UUID) of the transactional email to retrieve. Obtain this from the 'Get Transactional Mails' action or after sending a transactional email. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Get User

**Slug:** `MAILCOACH_GET_USER`

Tool to retrieve details of the currently authenticated user. Use when you need to get information about the user associated with the API token.

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Segments

**Slug:** `MAILCOACH_LIST_SEGMENTS`

Tool to retrieve all segments for a specific email list. Use when you need to fetch segments that filter subscribers by tags.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results |
| `email_list_uuid` | string | Yes | UUID of the email list to fetch segments for |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Subscribers

**Slug:** `MAILCOACH_LIST_SUBSCRIBERS`

Tool to list all subscribers from a specific email list with pagination support. Use when you need to fetch subscribers from an email list, with optional filtering by email, search terms, or subscription status.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results, must be >= 1 |
| `sort` | string ("created_at" | "-created_at" | "updated_at" | "-updated_at" | "subscribed_at" | "-subscribed_at" | "unsubscribed_at" | "-unsubscribed_at" | "email" | "-email" | "first_name" | "-first_name" | "last_name" | "-last_name") | No | Sort by field; prefix with '-' for descending order |
| `per_page` | integer | No | Number of results per page (1-100), default is 15 |
| `filter_email` | string | No | Filter by exact email address match |
| `filter_search` | string | No | Fuzzy search across email, first_name, last_name, and tags |
| `filter_status` | string ("unconfirmed" | "subscribed" | "unsubscribed") | No | Filter by subscriber status: unconfirmed, subscribed, or unsubscribed |
| `email_list_uuid` | string | Yes | UUID of the email list to retrieve subscribers from |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### List Transactional Mails

**Slug:** `MAILCOACH_LIST_TRANSACTIONAL_MAILS`

Tool to retrieve all transactional email records. Use when you need a paginated list of sent transactional mails.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `page` | integer | No | Page number for paginated results. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Remove Tags from Subscriber

**Slug:** `MAILCOACH_REMOVE_TAGS_FROM_SUBSCRIBER`

Tool to remove tags from a subscriber. Use after retrieving a subscriber's UUID to adjust their segments.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tags` | array | Yes | Non-empty list of tag names to remove from the subscriber. |
| `subscriber_uuid` | string | Yes | The UUID of the subscriber from whom tags will be removed. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Resend Subscriber Confirmation

**Slug:** `MAILCOACH_RESEND_CONFIRMATION`

Tool to resend confirmation email to a subscriber. Use when a subscriber hasn't confirmed and you need to resend the confirmation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | The UUID of the subscriber to resend the confirmation email to. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Start Subscriber Import

**Slug:** `MAILCOACH_START_SUBSCRIBER_IMPORT`

Starts processing a subscriber import that is in 'draft' status. Use this action after creating a subscriber import with 'Create Subscriber Import' and optionally appending data with 'Append to Subscriber Import'. The import must be in 'draft' status to be started. Once started, the import will process the CSV data and add/update subscribers in the associated email list. Returns 204 No Content on success.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `uuid` | string | Yes | UUID of the subscriber import to start. The import must be in 'draft' status. Use 'Get All Subscriber Imports' or 'Create Subscriber Import' to obtain a valid UUID. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Subscribe To Email List

**Slug:** `MAILCOACH_SUBSCRIBE_TO_EMAIL_LIST`

Subscribe (or update) a subscriber to an email list. By default, this upserts: if the email already exists in the list, it updates the subscriber; otherwise, it creates a new one. Use strict=true to prevent updates and fail if the email already exists. Tags are synced/replaced when provided. Use skip_confirmation=true to bypass double opt-in.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tags` | array | No | Tags to set; passing tags will sync/replace tags on the subscriber (optional) |
| `email` | string | Yes | Subscriber's email address (must use a real domain; test domains like example.com are rejected by the API) |
| `strict` | boolean | No | If true and the email already exists, the call fails instead of updating (optional) |
| `last_name` | string | No | Subscriber's last name (optional) |
| `first_name` | string | No | Subscriber's first name (optional) |
| `email_list_uuid` | string | Yes | UUID of the email list to add the subscriber to |
| `extra_attributes` | object | No | Custom fields as key-value pairs (optional, values must be strings) |
| `skip_confirmation` | boolean | No | Skip double opt-in; immediately confirm the subscription (optional) |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Unsubscribe Subscriber

**Slug:** `MAILCOACH_UNSUBSCRIBE_SUBSCRIBER`

Unsubscribe a subscriber from their email list in Mailcoach. This changes the subscriber's status to 'unsubscribed' without deleting them. Use when a user requests to stop receiving emails. The subscriber can be resubscribed later if needed. Requires the subscriber's UUID (obtained from subscribe or get subscriber actions).

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `subscriber_uuid` | string | Yes | The unique identifier (UUID) of the subscriber to unsubscribe. Obtain this from MAILCOACH_SUBSCRIBE_TO_EMAIL_LIST or MAILCOACH_GET_SPECIFIC_SUBSCRIBER. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Campaign

**Slug:** `MAILCOACH_UPDATE_CAMPAIGN`

Tool to update an existing Mailcoach campaign. Use after identifying the campaign UUID when you need to modify campaign attributes such as name, schedule, or content.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `html` | string | No | Raw HTML content of the campaign |
| `name` | string | Yes | New name for the campaign |
| `uuid` | string | Yes | UUID of the campaign to update |
| `fields` | object | No | Key-value pairs to merge into dynamic template fields |
| `content` | string | No | Markdown content if using a markdown-enabled template |
| `subject` | string | No | Override email subject line |
| `utm_tags` | boolean | No | Append UTM tags to all links |
| `from_name` | string | No | Override 'from' display name |
| `from_email` | string | No | Override 'from' email address |
| `schedule_at` | string | No | Scheduled send datetime in 'YYYY-MM-DD HH:MM:SS' (server timezone) |
| `segment_uuid` | string | No | UUID of a subscriber segment to target |
| `template_uuid` | string | No | UUID of the template to use; omit to keep current template |
| `mailable_class` | string | No | Fully-qualified class name for a custom mailable |
| `disable_webview` | boolean | No | Disable public webview generation |
| `email_list_uuid` | string | Yes | UUID of the email list to send the campaign to |
| `add_subscriber_tags` | boolean | No | Tag subscribers after send |
| `add_subscriber_link_tags` | boolean | No | Tag clicked links per subscriber |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Email List

**Slug:** `MAILCOACH_UPDATE_EMAIL_LIST`

Tool to update an existing email list. Use when you need to modify a list's configuration after verifying its UUID.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Email list name |
| `uuid` | string | Yes | The UUID of the email list to update |
| `campaign_mailer` | string | No | Mailer for campaigns, as defined in the Laravel config |
| `automation_mailer` | string | No | Mailer for automations, as defined in the Laravel config |
| `confirmation_mail` | string ("send_default_confirmation_mail" | "send_custom_confirmation_mail") | No | Type of confirmation mail to send |
| `default_from_name` | string | No | Default sender name |
| `report_recipients` | string | No | Comma-separated emails to receive reports |
| `default_from_email` | string | Yes | Default sender email address |
| `report_campaign_sent` | boolean | No | Send report after each campaign is sent |
| `transactional_mailer` | string | No | Mailer for transactional emails, as defined in the Laravel config |
| `default_reply_to_name` | string | No | Default reply-to name |
| `requires_confirmation` | boolean | No | Require double opt-in confirmation for new subscribers |
| `campaigns_feed_enabled` | boolean | No | Enable RSS feed for campaigns |
| `default_reply_to_email` | string | No | Default reply-to email address |
| `report_campaign_summary` | boolean | No | Include campaign summary in reports |
| `allow_form_subscriptions` | boolean | No | Allow subscriptions via form |
| `confirmation_mail_content` | string | No | HTML content for custom confirmation mail; required if confirmation_mail is 'send_custom_confirmation_mail' |
| `confirmation_mail_subject` | string | No | Subject for custom confirmation mail; required if confirmation_mail is 'send_custom_confirmation_mail' |
| `redirect_after_subscribed` | string | No | URL redirect after a successful subscription |
| `report_email_list_summary` | boolean | No | Include email list summary in reports |
| `redirect_after_unsubscribed` | string | No | URL redirect after unsubscribed |
| `allowed_form_subscription_tags` | array | No | Allowed tags that subscribers can choose when subscribing via form |
| `redirect_after_already_subscribed` | string | No | URL redirect when already subscribed |
| `redirect_after_subscription_pending` | string | No | URL redirect after subscription pending confirmation |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Segment

**Slug:** `MAILCOACH_UPDATE_SEGMENT`

Tool to update an existing segment within an email list. Use when you need to modify segment criteria, name, or tag rules after verifying its existence.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | Name of the segment |
| `segment_uuid` | string | Yes | UUID of the segment to update |
| `negative_tags` | array | No | List of tag names that subscribers should NOT have to be included in this segment |
| `positive_tags` | array | No | List of tag names that subscribers should have to be included in this segment |
| `email_list_uuid` | string | Yes | UUID of the email list containing the segment |
| `all_negative_tags_required` | boolean | No | Whether all negative tags must be excluded from a subscriber to be included in the segment |
| `all_positive_tags_required` | boolean | No | Whether all positive tags must be present on a subscriber to be included in the segment |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Subscriber

**Slug:** `MAILCOACH_UPDATE_SUBSCRIBER`

Tool to update a subscriber. Use when you need to modify subscriber details after creation.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tags` | array | No | Tags to set; replaces existing tags by default. |
| `email` | string | Yes | The subscriber’s email address. |
| `last_name` | string | No | Subscriber’s last name. Set to null to remove. |
| `first_name` | string | No | Subscriber’s first name. Set to null to remove. |
| `append_tags` | boolean | No | If true, provided tags are appended instead of replaced. |
| `subscriber_uuid` | string | Yes | UUID of the subscriber to update. |
| `extra_attributes` | object | No | Additional custom attributes for the subscriber. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Subscriber Import

**Slug:** `MAILCOACH_UPDATE_SUBSCRIBER_IMPORT`

Tool to update an existing subscriber import. Use when you need to modify a draft import before execution. Import must be in draft status.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `import_uuid` | string | Yes | UUID of the subscriber import to update. Must be an existing import in 'draft' status. |
| `replace_tags` | boolean | No | If true, all existing tags on subscribers will be replaced with tags from the CSV. Defaults to false. |
| `email_list_uuid` | string | Yes | UUID of the target email list where subscribers will be imported. |
| `subscribers_csv` | string | Yes | CSV string with subscribers' data. Must include a header row with at least an 'email' column. Optional columns: 'first_name', 'last_name', 'tags', and custom attributes. |
| `unsubscribe_others` | boolean | No | If true, existing list members not present in the CSV will be unsubscribed. Use with caution. Defaults to false. |
| `subscribe_unsubscribed` | boolean | No | If true, previously unsubscribed emails will be resubscribed. Defaults to false. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Tag

**Slug:** `MAILCOACH_UPDATE_TAG`

Tool to update an existing tag within an email list. Use when you need to modify the name or visibility of a tag after verifying its existence.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `name` | string | Yes | New name for the tag |
| `uuid` | string | Yes | UUID of the tag to update |
| `email_list_uuid` | string | Yes | UUID of the email list containing the tag |
| `visible_in_preferences` | boolean | No | Whether this tag should be shown in subscriber preference settings |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |

### Update Template

**Slug:** `MAILCOACH_UPDATE_TEMPLATE`

Updates an existing email template in Mailcoach. Use this to modify a template's name, HTML content, or structured HTML. The template UUID is required - get it from the Get All Templates action. Only the name is required; other fields are optional. Returns the updated template with its ID, content, and timestamps.

#### Input Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `html` | string | No | The template's new HTML content. Supports Mailcoach placeholders like {{ subscriber.first_name }}. If not provided, existing HTML content is preserved. |
| `name` | string | Yes | The template's new name (required). Use a descriptive name like 'Welcome Email' or 'Monthly Newsletter'. |
| `uuid` | string | Yes | UUID of the template to update. Get template UUIDs using the Get All Templates action. |
| `structured_html` | string | No | Structured HTML content (e.g., MJML format) for visual email builders. Set to null to clear, omit to preserve existing value. |

#### Output

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `data` | string | Yes | Data from the action execution |
| `error` | string | No | Error if any occurred during the execution of the action |
| `successful` | boolean | Yes | Whether or not the action execution was successful or not |
