Skip to main content
POST
/
api
/
templates.delete
Delete a template
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
}

Authorizations

Authorization
string
header
required

API token for authentication

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

Template deleted successfully

success
boolean
Example:

true