Remove one or more contacts from a specific contact list using the AutoSend API.
curl --request POST \
--url https://api.autosend.com/v1/contact-lists/60d5ec49f1b2c72d9c8b4567/contacts/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"emails": [
"[email protected]",
"[email protected]"
]
}'
{
"success": true,
"data": {
"removed": 2,
"notInList": 0,
"errors": []
}
}
curl --request POST \
--url https://api.autosend.com/v1/contact-lists/60d5ec49f1b2c72d9c8b4567/contacts/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"emails": [
"[email protected]",
"[email protected]"
]
}'
{
"success": true,
"data": {
"removed": 2,
"notInList": 0,
"errors": []
}
}
<token>, where <token> is your auth token.GLOBAL_CONTACT_LIST. Use the Delete Contact API instead."60d5ec49f1b2c72d9c8b4567"emails or contactIds, not both.
["60d5ec49f1b2c72d9c8b1111", "60d5ec49f1b2c72d9c8b2222"]
truecurl --request POST \
--url https://api.autosend.com/v1/contact-lists/60d5ec49f1b2c72d9c8b4567/contacts/remove \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"emails": [
"[email protected]",
"[email protected]"
]
}'
{
"success": true,
"data": {
"removed": 2,
"notInList": 0,
"errors": []
}
}