Create or add contacts to list
curl --request POST \
--url https://api.voxworks.ai/api/v1/add-contacts-to-list/{list_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"phone_number": "0429069971",
"first_name": "John",
"last_name": "Smith"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contacts: [{phone_number: '0429069971', first_name: 'John', last_name: 'Smith'}]
})
};
fetch('https://api.voxworks.ai/api/v1/add-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-contacts-to-list/{list_id}"
payload = { "contacts": [
{
"phone_number": "0429069971",
"first_name": "John",
"last_name": "Smith"
}
] }
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
Create or add contacts to list
Create or reuse contacts by phone number and add them to a list. The singular route /add-contact-to-list/{list_id} is also accepted.
POST
/
api
/
v1
/
add-contacts-to-list
/
{list_id}
Create or add contacts to list
curl --request POST \
--url https://api.voxworks.ai/api/v1/add-contacts-to-list/{list_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contacts": [
{
"phone_number": "0429069971",
"first_name": "John",
"last_name": "Smith"
}
]
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
contacts: [{phone_number: '0429069971', first_name: 'John', last_name: 'Smith'}]
})
};
fetch('https://api.voxworks.ai/api/v1/add-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-contacts-to-list/{list_id}"
payload = { "contacts": [
{
"phone_number": "0429069971",
"first_name": "John",
"last_name": "Smith"
}
] }
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"
}Authorizations
API key from Voxworks, sent as Authorization: Bearer YOUR_API_KEY.
Path Parameters
Unique list ID.
Response
Contacts added.
The response is of type object.

