cURL
curl --request DELETE \ --url https://app.kapso.ai/api/v1/whatsapp_templates/{template_id} \ --header 'X-API-Key: <api-key>'
200
deleted_template
{ "data": { "id": "template-123abc", "name": "old_promotion", "language_code": "en_US", "category": "MARKETING", "status": "removed", "business_account_id": "123456789012345", "created_at": "2024-01-10T10:00:00Z", "updated_at": "2024-01-15T14:30:00Z" } }
Deletes a WhatsApp template from both the local database and WhatsApp’s servers.
Behavior:
Note: This operation marks the template as removed rather than completely deleting it from the database.
API key required for all endpoints
Template deleted successfully (returns updated template with removed status)
Show child attributes