v24

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-014382230.2 KB

Delete a template

Soft-deletes a template. The template will be marked as deleted but not removed from the database.

post/api/templates.delete

Request body

workspace_idstring required

The ID of the workspace

idstring required

ID of the template to delete

Example request

{
  "workspace_id": "ws_1234567890",
  "id": "welcome_email"
}

Response

Template deleted successfully

successboolean

Example response

{
  "success": true
}