Unsubscribe an address from a list
PATCH
/api/v1/lists/{list_uid}/subscribers/email/{email}/unsubscribe
Parameters
list_uid
string
required
path
The list's uid.
email
string (email)
required
path
Responses
200
Every contact of the list with this address is unsubscribed.
400
The address is not valid.
401
The token is missing or wrong (
Unauthenticated.), or its user may not act on
this object (Unauthorized). Without the Accept: application/json header, a
missing or wrong token answers with a redirect to the sign-in page instead.
403
No list has this uid, or the token's user may not change it.
404
The list has no contact with this address.
Unsubscribe an address from a list
1
2
3
curl -X PATCH 'https://your-domain/api/v1/lists/6adaabbf98847/subscribers/email/anna@example.com/unsubscribe' \
-H "Accept: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Response
{
"status": 1,
"message": "anna@example.com was unsubscribed"
}