Unsubscribe recipients

Add email addresses to your team's unsubscribe list so no campaign emails them again.

POST https://cotlet.dev/api/v1/mailshake/recipients/unsubscribe

write Confirm

Adds a list of addresses to the unsubscribe list of your team. It applies to every campaign, and add_recipients skips these addresses from then on. This tool cannot remove an address from the list again. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: unsubscribe_recipients
NameTypeDescription
email_addresses string[] required string[] Addresses to unsubscribe.

Request

cURL
curl -X POST https://cotlet.dev/api/v1/mailshake/recipients/unsubscribe \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email_addresses":["jane@example.com"]}'
Python
result = client.call("mailshake", "unsubscribe_recipients", {"email_addresses":["jane@example.com"]})
Node.js
const result = await cotlet.call('mailshake', 'unsubscribe_recipients', {"email_addresses":["jane@example.com"]});
CLI
cotlet call mailshake unsubscribe_recipients --data '{"email_addresses":["jane@example.com"]}'

Example response

JSON

{
  "unsubscribed": [
    "li@oldclient.example"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.