Delete campaign
curl --request DELETE \
--url http://localhost:8787/api/v1/campaigns/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8787/api/v1/campaigns/{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/campaigns/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Voice Campaigns
Delete campaign
Delete a campaign and its associated call attempt records
DELETE
/
campaigns
/
{id}
Delete campaign
curl --request DELETE \
--url http://localhost:8787/api/v1/campaigns/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "http://localhost:8787/api/v1/campaigns/{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/campaigns/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Permanently deletes a campaign.
You cannot delete a campaign that is currently
RUNNING, PAUSED, or SCHEDULED. You must first call POST /campaigns/{id}/abort before deleting.Path parameters
string
required
The unique UUID of the campaign to delete.
curl -X DELETE https://api.agentic-os.com/api/v1/campaigns/770e8400-e29b-41d4-a716-446655440000 \
-H "Authorization: Bearer $AGENTIC_OS_API_KEY"
import requests
response = requests.delete(
"https://api.agentic-os.com/api/v1/campaigns/770e8400-e29b-41d4-a716-446655440000",
headers={"Authorization": f"Bearer {API_KEY}"},
)
print(response.status_code)
const response = await fetch(
"https://api.agentic-os.com/api/v1/campaigns/770e8400-e29b-41d4-a716-446655440000",
{
method: "DELETE",
headers: { Authorization: `Bearer ${API_KEY}` },
},
);
console.log(response.status);
Response
204 No Content on successful deletion.⌘I

