[Cotlet](https://cotlet.dev/index.md) · [Integrations](https://cotlet.dev/integrations.md) · [How it works](https://cotlet.dev/how-it-works.md) · [Use cases](https://cotlet.dev/use-cases.md) · [Security](https://cotlet.dev/security.md) · [For developers](https://cotlet.dev/for-developers.md) · [For automation agencies](https://cotlet.dev/for-agencies.md) · [Blog](https://cotlet.dev/blog.md) · [API docs](https://cotlet.dev/docs.md) · [Help center](https://cotlet.dev/help.md) · [Changelog](https://cotlet.dev/changelog.md) · [Contact](https://cotlet.dev/contact.md) · [Pricing](https://cotlet.dev/pricing.md) · [Sign up](https://cotlet.dev/signup)

# Exclude inactive Mailjet contacts from campaigns

> Find Mailjet contacts who stopped opening and ignored your reconfirmation email, review them and exclude them in one run to protect deliverability.

Source: https://cotlet.dev/integrations/mailjet-api-mcp-server/exclude-inactive-contacts

Your list keeps growing, but part of it stopped opening anything months ago and ignored your reconfirmation email. Cleaning it means a segment, a check and a bulk action in the Dashboard.

Cotlet does it in your own Mailjet account with create\_segment, list\_contacts and unsubscribe\_contacts, called by your AI agent, an n8n workflow or a script.

[Sign up free](https://cotlet.dev/app/signup?app=mailjet) [All Mailjet tools](https://cotlet.dev/integrations/mailjet-api-mcp-server.md)

Hosted · nothing to install or maintain

## Can Mailjet do this on its own?

Mailjet describes this as a routine you run by hand: an activity segment, a re-engagement campaign, then removing or excluding who did not confirm (checked 22 Oct 2026). The REST API has endpoints for segments and for managing many contacts, so a script can do it. The official MCP server is read-only and cannot change a contact.

## How you do it in Mailjet today

1. Go to Contacts, then Segmentation, click Create a segment and add "Not opened in the last X days" and "Not clicked in the last X days" with your window. Mailjet suggests 3, 6 or 12 months, depending on how often you send.
2. Send the segment a short re-engagement campaign with a button such as "Yes, keep me subscribed". Keep the unsubscribe link in it.
3. After the send, open the campaign statistics, go to the Links tab and export the contacts who clicked the button. Their click is your proof of consent.
4. Make a second segment of the contacts who did not click the campaign. Open your contact list, select those contacts, click Actions and choose Unsubscribe, or Exclude from Campaigns to stop every campaign.
5. Repeat for each contact list: unsubscribing a contact from one list affects only that list.

## How to exclude inactive Mailjet contacts from campaigns

Prompt

```
In Mailjet, find subscribers on my Newsletter list who have not opened anything in 180 days and did not click "Yes, keep me subscribed" in the Reconfirm October campaign. Show me how many there are, then exclude them from campaigns.
```

1. 01  
### Build the segment of non-responders  
create\_segment combines three filters with "all": not opened in the last 180 days, not clicked the reconfirmation campaign, and subscribed to the list. The agent adds the subscribed filter every time, so people who already left are not counted.
2. 02  
### Look before anything changes  
list\_contacts with the segment name returns the matching contacts. The agent reports the total and the first three addresses, then asks you to confirm, because the next step cannot be undone with one click.
3. 03  
### Pick the scope  
unsubscribe\_contacts with scope "list" unsubscribes the contacts from one list and keeps them on it. With scope "exclusion\_list" it adds them to the Campaign Exclusion List, so they get no campaign from any list. The agent uses the scope you named and asks when you did not.
4. 04  
### Run it with your OK  
unsubscribe\_contacts applies the scope to the whole segment. It cuts people off from your mail, so it waits for your OK by default.
5. 05  
### Report the numbers  
The agent reports how many contacts were excluded and which window and campaign it used, so you can repeat the rule next month.

### What you get back

Example data

```
Segment "No answer to reconfirmation": 197 contacts
First 3: sam@example.com, lena@example.org, omar@example.net
Excluded from campaigns after your OK: 197
Rule: not opened in 180 days, did not click Reconfirm October
```

### Other ways to ask

- Do the same with 365 days and only show me the count, do not exclude anyone.
- Unsubscribe them from the Newsletter list only, and leave the other lists alone.
- Create the segment "Inactive 180 days" and stop, I will review it in the Dashboard.
- On the first Monday of each month, exclude contacts inactive for 180 days and send me the count.

## What Mailjet allows, and what to know first

- A contact on the Campaign Exclusion List gets no campaign and no automation email, because Mailjet counts automation emails as marketing, but still gets transactional email.
- Unsubscribing a contact from one list does not unsubscribe them from the other lists.
- On the Free plan every stored contact counts toward the 1,000 limit, including excluded ones, and only deleting contacts from All Contacts lowers the count.
- Deleting a contact is permanent and anonymizes it at once, so the agent excludes or unsubscribes and never deletes.
- The "not opened" and "not clicked" filters are dynamic and need open and click tracking switched on in your account settings.

unsubscribe\_contacts asks for your OK by default. To run it weekly without you, switch confirmation off for that tool in your dashboard.

Sources: [Mailjet Help: How to send a re-engagement campaign?](https://documentation.mailjet.com/hc/en-us/articles/360043181013-How-to-send-a-re-engagement-campaign) · [Mailjet Help: Managing your contact lists](https://documentation.mailjet.com/hc/en-us/articles/360042503014-Managing-your-contact-lists) · [Mailjet Help: Campaign Exclusion List](https://documentation.mailjet.com/hc/en-us/articles/360042455934-Campaign-Exclusion-List) · [Mailjet Help: Understanding Mailjet Free Plan Limits](https://documentation.mailjet.com/hc/en-us/articles/19154256993051-Understanding-Mailjet-Free-Plan-Limits) · [Mailjet Help: How to delete one or multiple contacts?](https://documentation.mailjet.com/hc/en-us/articles/360043177913-How-to-delete-one-or-multiple-contacts)

## Call unsubscribe\_contacts from a script

curl

```
curl -X POST https://cotlet.dev/api/v1/mailjet/contacts/unsubscribe \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"segment":"No answer to reconfirmation","scope":"exclusion_list"}'
```

Example response

```
{
"scope": "exclusion_list",
"segment": "No answer to reconfirmation",
"excluded": 197
}
```

MCP: add https://cotlet.dev/mcp/v1 with the same key; the call is mailjet\_write → unsubscribe\_contacts. Example data.

[Schedule it in n8n, Make, Zapier or cron](https://cotlet.dev/integrations/mailjet-api-mcp-server.md#automations)

## Mailjet tools this automation uses

__Cotlet Mailjet tools used to exclude inactive Mailjet contacts from campaigns__
| Tool | Parameters |
| --------------------- | --------------------------------- |
| create\_segment | name, match, conditions, list\_id |
| list\_contacts | list\_id, segment, search, cursor |
| unsubscribe\_contacts | scope, list\_id, segment, emails |

[All 14 Mailjet tools with descriptions](https://cotlet.dev/integrations/mailjet-api-mcp-server.md#tools)

## Frequently asked questions

### Is it safe to connect Mailjet to Cotlet?

Yes. You sign in to Mailjet yourself, in your own Cloud Browser in the EU, and we never save your password. Your agents only get Mailjet once you enable it, every background request is listed, and the browser profile is stored encrypted with AES-256-GCM, the cipher 1Password uses for its vaults. The AI model never sees a login, posts and messages wait for your OK, and Disable for agents cuts access in one click. Independent scanners grade cotlet.dev A+ on Qualys SSL Labs, securityheaders.com and Mozilla Observatory; live results are on https://cotlet.dev/security.

## More Mailjet automations

- [Resend a Mailjet campaign to non-openers](https://cotlet.dev/integrations/mailjet-api-mcp-server/resend-campaign-to-non-openers.md)
- [Schedule the next Mailjet newsletter from the last one](https://cotlet.dev/integrations/mailjet-api-mcp-server/schedule-next-newsletter.md)
- [Mailjet API and MCP server: every tool](https://cotlet.dev/integrations/mailjet-api-mcp-server.md)
- [All use cases](https://cotlet.dev/use-cases.md)

## Give your agent access to Mailjet.

Free 7-day trial with 2,000 credits, no card needed. Cotlet is independent and not affiliated with Mailjet.

[Sign up free](https://cotlet.dev/app/signup?app=mailjet)

---

Give your AI agents your signed-in browser.

**Product:** [Integrations](https://cotlet.dev/integrations.md) · [Use cases](https://cotlet.dev/use-cases.md) · [How it works](https://cotlet.dev/how-it-works.md) · [Pricing](https://cotlet.dev/pricing.md) · [Security](https://cotlet.dev/security.md)

**Resources:** [Blog](https://cotlet.dev/blog.md) · [API docs](https://cotlet.dev/docs.md) · [Help center](https://cotlet.dev/help.md) · [Changelog](https://cotlet.dev/changelog.md) · [GitHub](https://github.com/cotletdev/cotlet)

**Solutions:** [For developers](https://cotlet.dev/for-developers.md) · [For automation agencies](https://cotlet.dev/for-agencies.md)

**Company:** [About](https://cotlet.dev/about.md) · [AI info: company facts](https://cotlet.dev/ai-info.md) · [Contact](https://cotlet.dev/contact.md)

**Legal:** [Terms of service](https://cotlet.dev/terms) · [Privacy policy](https://cotlet.dev/privacy) · [Refund policy](https://cotlet.dev/refunds) · [Acceptable use](https://cotlet.dev/acceptable-use) · [Cookie policy](https://cotlet.dev/cookies) · [DPA](https://cotlet.dev/dpa) · [Subprocessors](https://cotlet.dev/subprocessors)

**Elsewhere:** [Status page](https://status.cotlet.dev) · [Cotlet on GitHub](https://github.com/cotletdev) · [Cotlet on X](https://x.com/cotletdev) · [Cotlet on LinkedIn](https://www.linkedin.com/company/cotletdev) · [Cotlet on Product Hunt](https://www.producthunt.com/products/cotlet) · [Cotlet on Crunchbase](https://www.crunchbase.com/organization/cotlet) · [Cotlet on SaaSHub](https://www.saashub.com/cotlet)

Cotlet is an independent service. It is not affiliated with, endorsed by or sponsored by any of the products listed on this site. Product names are trademarks of their respective owners.

## For AI agents: sign your user up

Is your user asking you to sign them up for Cotlet? You can do it for them, no account or key needed.

1. Read the fields and their allowed values: GET https://cotlet.dev/api/v1/access-requests
2. Ask the user for each value: email, apps, what you will do with them. If they leave the password to you, generate a strong one and show it to them.
3. Show the user what you will send, then POST it as JSON to https://cotlet.dev/api/v1/access-requests.

One call creates the account and sends the access request; we email the user when access is granted.
