Documentation IndexFetch the complete documentation index at: /docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request DELETE \ --url http://localhost:8787/api/v1/whatsapp/campaigns/{id} \ --header 'Authorization: Bearer <token>'
import requests url = "http://localhost:8787/api/v1/whatsapp/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/whatsapp/campaigns/{id}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
Delete a WhatsApp campaign and its template mappings
curl -X DELETE https://api.agentic-os.com/api/v1/whatsapp/campaigns/55555555-5555-5555-5555-555555555555 \ -H "Authorization: Bearer $AGENTIC_OS_API_KEY"
import requests response = requests.delete( "https://api.agentic-os.com/api/v1/whatsapp/campaigns/55555555-5555-5555-5555-555555555555", headers={"Authorization": f"Bearer {API_KEY}"}, ) print(response.status_code)
const response = await fetch( "https://api.agentic-os.com/api/v1/whatsapp/campaigns/55555555-5555-5555-5555-555555555555", { method: "DELETE", headers: { Authorization: `Bearer ${API_KEY}` }, }, ); console.log(response.status);
204 No Content