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"
}
Unsubscribe a subscriber from a specific list.
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"
}
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"
}