cURL
curl --request POST \ --url https://{notifuseDomain}/api/templates.delete \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "workspace_id": "ws_1234567890", "id": "welcome_email" } '
{ "success": true }
Soft-deletes a template. The template will be marked as deleted but not removed from the database.
API token for authentication
The ID of the workspace
"ws_1234567890"
ID of the template to delete
"welcome_email"
Template deleted successfully
true