Skip to main content
DELETE
https://api2.ecomailapp.cz
/
lists
/
{list_id}
/
unsubscribe
curl -X DELETE https://api2.ecomailapp.cz/lists/1/unsubscribe \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email": "foo@bar.cz"}'
{
  "id": 4,
  "list_id": 1,
  "email": "foo@bar.cz",
  "status": 2,
  "subscribed_at": "2024-11-27T11:18:00.000000Z",
  "unsubscribed_at": "2024-11-27T11:39:16.000000Z",
  "custom_fields": { "mergetag": "content" },
  "source": "api"
}
list_id
integer
required
ID of the list.
email
string
required
Email address of the subscriber to unsubscribe.
curl -X DELETE https://api2.ecomailapp.cz/lists/1/unsubscribe \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email": "foo@bar.cz"}'
{
  "id": 4,
  "list_id": 1,
  "email": "foo@bar.cz",
  "status": 2,
  "subscribed_at": "2024-11-27T11:18:00.000000Z",
  "unsubscribed_at": "2024-11-27T11:39:16.000000Z",
  "custom_fields": { "mergetag": "content" },
  "source": "api"
}