Batch delete contacts
curl --request POST \
--url http://localhost:8787/api/v1/contact-lists/{listId}/contacts/delete-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contactIds": [
"<string>"
]
}
'import requests
url = "http://localhost:8787/api/v1/contact-lists/{listId}/contacts/delete-batch"
payload = { "contactIds": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({contactIds: ['<string>']})
};
fetch('http://localhost:8787/api/v1/contact-lists/{listId}/contacts/delete-batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Contact Lists
Batch delete contacts
Delete multiple contacts from a contact list in a single atomic request
POST
/
contact-lists
/
{listId}
/
contacts
/
delete-batch
Batch delete contacts
curl --request POST \
--url http://localhost:8787/api/v1/contact-lists/{listId}/contacts/delete-batch \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"contactIds": [
"<string>"
]
}
'import requests
url = "http://localhost:8787/api/v1/contact-lists/{listId}/contacts/delete-batch"
payload = { "contactIds": ["<string>"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({contactIds: ['<string>']})
};
fetch('http://localhost:8787/api/v1/contact-lists/{listId}/contacts/delete-batch', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Deletes an array of contacts by their IDs from a contact list.
Path parameters
string
required
The unique UUID of the contact list.
Body parameters
string[]
required
Array of contact UUID strings to delete (minimum 1, maximum 1,000).
curl -X POST https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/delete-batch \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contactIds": [
"99999999-8888-7777-6666-555555555555",
"88888888-7777-6666-5555-444444444444"
]
}'
import requests
response = requests.post(
"https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/delete-batch",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json={
"contactIds": [
"99999999-8888-7777-6666-555555555555",
"88888888-7777-6666-5555-444444444444",
]
},
)
print(response.json())
const response = await fetch(
"https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333/contacts/delete-batch",
{
method: "POST",
headers: {
Authorization: `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
contactIds: [
"99999999-8888-7777-6666-555555555555",
"88888888-7777-6666-5555-444444444444",
],
}),
},
);
const data = await response.json();
console.log(data);
Response
{
"deleted": 2
}
⌘I

