Delete template by ID
Permanently deletes a message template. This action is irreversible and will prevent the template from being triggered by any future events.
Endpoint
DELETE/v2/messages/templates/{id}
Link
Request
Path Parameters
id
string
Template ID to delete.
Yes
"tpl_12345"
Headers
Authorization
Bearer <JWT>
Yes
Accept
application/json
Yes
Response (200 OK)
Returns a success status indicating whether the template was deleted.
Response Fields
success
boolean
true if deleted successfully, false otherwise.
true
Example Response:
json
Examples
Request
bash
Error Response
If the template doesn't exist or is already deleted:
json
Error Responses
Template Not Found:
json
Unauthorized:
json
Template in Use:
json
Notes
Irreversible Action: Deleted templates cannot be recovered.
Dependencies: Ensure the template is not actively being used before deletion.
Soft Delete: Some systems may implement soft deletion (marking as deleted but retaining data).
Response Codes:
200: Success (even ifsuccess=falsefor soft failures)404: Template not found403: Authorization failure
Recommended Workflow:
First retrieve the template to confirm it's the correct one
Deactivate the template if active (
isActive: false)Then proceed with deletion
Real request:
Real response:
Last updated

