POST
https://demo.notifuse.com/api/templates.delete Soft-deletes a template: it disappears from templates.list and can no longer be updated, but every version is kept, because messages already sent (message history, broadcast reports) are rendered from them. templates.get still returns it, with deleted_at set. Its id stays reserved: creating a template with the same id is refused.
Authorizations
Authorization string header required
Bearer authentication header of the form Bearer <token>, where <token> is your API key.
Body application/json
workspace_id string required
The ID of the workspace
- Example: ws_1234567890
id string required
ID of the template to delete
- Example: welcome_email
Response
200 Template deleted successfully object
success boolean
- Example: true
400 Bad request - validation failed object
error string required
Error message
401 Unauthorized - invalid or missing authentication token object
error string required
Error message
404 Template not found object
error string required
Error message
500 Internal server error object
error string required
Error message