Remove contacts from list
curl --request DELETE \
--url https://api.voxworks.ai/api/v1/lists/{list_id}/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_ids": [
"a1b2c3d4-5678-90ab-cdef-1234567890ab"
]
}
'const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({contact_ids: ['a1b2c3d4-5678-90ab-cdef-1234567890ab']})
};
fetch('https://api.voxworks.ai/api/v1/lists/{list_id}/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.voxworks.ai/api/v1/lists/{list_id}/contacts"
payload = { "contact_ids": ["a1b2c3d4-5678-90ab-cdef-1234567890ab"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"success": true,
"deletedContactsCount": 123,
"deleted_list_contacts": [
{}
]
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "Invalid API key"
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "Rate limit exceeded"
}{
"success": false,
"message": "Internal server error"
}Lists
Remove contacts from list
Remove contacts from a list, by contact ID (contact_ids / contact_id) or by list-contact row ID (list_contact_ids / list_contact_id), up to 500 per request. The contacts themselves are not deleted. With neither in the body the request returns 400.
DELETE
/
api
/
v1
/
lists
/
{list_id}
/
contacts
Remove contacts from list
curl --request DELETE \
--url https://api.voxworks.ai/api/v1/lists/{list_id}/contacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_ids": [
"a1b2c3d4-5678-90ab-cdef-1234567890ab"
]
}
'const options = {
method: 'DELETE',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({contact_ids: ['a1b2c3d4-5678-90ab-cdef-1234567890ab']})
};
fetch('https://api.voxworks.ai/api/v1/lists/{list_id}/contacts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.voxworks.ai/api/v1/lists/{list_id}/contacts"
payload = { "contact_ids": ["a1b2c3d4-5678-90ab-cdef-1234567890ab"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.delete(url, json=payload, headers=headers)
print(response.text){
"success": true,
"deletedContactsCount": 123,
"deleted_list_contacts": [
{}
]
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "Invalid API key"
}{
"success": false,
"message": "<string>"
}{
"success": false,
"message": "Rate limit exceeded"
}{
"success": false,
"message": "Internal server error"
}Authorizations
API key from Voxworks, sent as Authorization: Bearer YOUR_API_KEY.
Path Parameters
Unique list ID.
Body
application/json

