Delete contact list
curl --request DELETE \
--url http://localhost:8787/api/v1/contact-lists/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8787/api/v1/contact-lists/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8787/api/v1/contact-lists/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Contact Lists
Delete contact list
Delete a contact list and its contacts
DELETE
/
contact-lists
/
{id}
Delete contact list
curl --request DELETE \
--url http://localhost:8787/api/v1/contact-lists/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8787/api/v1/contact-lists/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('http://localhost:8787/api/v1/contact-lists/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Permanently deletes a contact list and all associated contacts.
You cannot delete a contact list that is currently assigned to one or more campaigns. You must first remove or reassign the list from those campaigns.
Path parameters
string
required
The unique UUID of the contact list to delete.
curl -X DELETE https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333 \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY"
import requests
response = requests.delete(
"https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333",
headers={"Authorization": f"Bearer {API_KEY}"},
)
print(response.status_code)
const response = await fetch(
"https://api.agentic-os.com/api/v1/contact-lists/33333333-3333-3333-3333-333333333333",
{
method: "DELETE",
headers: { Authorization: `Bearer ${API_KEY}` },
},
);
console.log(response.status);
Response
204 No Content on successful deletion.⌘I

