Add existing contacts to list
curl --request POST \
--url https://api.voxworks.ai/api/v1/add-existing-contacts-to-list/{list_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_ids": [
"a1b2c3d4-5678-90ab-cdef-1234567890ab"
]
}
'const options = {
method: 'POST',
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/add-existing-contacts-to-list/{list_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.voxworks.ai/api/v1/add-existing-contacts-to-list/{list_id}"
payload = { "contact_ids": ["a1b2c3d4-5678-90ab-cdef-1234567890ab"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"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
Add existing contacts to list
Add existing contacts to a list by contact IDs. The singular route /add-existing-contact-to-list/{list_id} is also accepted.
POST
/
api
/
v1
/
add-existing-contacts-to-list
/
{list_id}
Add existing contacts to list
curl --request POST \
--url https://api.voxworks.ai/api/v1/add-existing-contacts-to-list/{list_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contact_ids": [
"a1b2c3d4-5678-90ab-cdef-1234567890ab"
]
}
'const options = {
method: 'POST',
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/add-existing-contacts-to-list/{list_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.voxworks.ai/api/v1/add-existing-contacts-to-list/{list_id}"
payload = { "contact_ids": ["a1b2c3d4-5678-90ab-cdef-1234567890ab"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){}{
"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"
}
