Skip to main content
DELETE
/
templates
/
{templateId}
curl --request DELETE \
  --url https://api.autosend.com/v1/templates/A-abc123def456ghi789jk \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Template successfully deleted."
}
curl --request DELETE \
  --url https://api.autosend.com/v1/templates/A-abc123def456ghi789jk \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Template successfully deleted."
}

Authorizations

Authorizations
string | header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

templateId
string
required
The unique identifier of the template to delete.Example: "A-abc123def456ghi789jk"

Response

Template deleted successfully
success
boolean
Indicates if the request was successfulExample: true
message
string
Confirmation messageExample: "Template successfully deleted."

Error Responses

400 - Template deletion failed
object
Returned when the template could not be found or the deletion failed.
{
  "success": false,
  "error": {
    "message": "Template delete failed",
    "code": "DELETE_TEMPLATE_FAILED",
    "status": 400
  }
}