Overview

This request deletes a single transactional template using the template ID provided in the request

Endpoint

Method URL Parameters
DELETE https://api.everlytic.net/transactional/email/v1/templates/[Template ID] [Template ID] – Unique string ID of the template to be deleted

Example Request

curl --location --request DELETE 'https://api.everlytic.net/transactional/email/v1/templates/b93d670f-0032-41e9-902f-f5e2840436c9'

Response

Status codes

Status code Explanation
200 Ok Template was retrieved successfully
401 Unauthorized The provided authorization credentials are incorrect
403 Forbidden This user does not have access to Transactional Emails

Properties

Properties of responses with status 200

Property Description Data type Parameter
status The success state of the delete request boolean
  • true
  • false

Properties of responses with 4XX status

Property Description Data type Expected parameters
code The HTTP response status code integer
  • 400
  • 401
  • 403
  • 412
message The reason for the failure string Valid string
error Array containing errors field JSON
  • errors
errors Array containing the failure details JSON
  • domain
  • reason
  • message
  • locationType
  • location
domain The classification of the type of error string
  • global
  • usageLimit
  • NoQuota
reason Keyword used to describe the error string
  • invalid
  • invalidParameter
  • UnverifiedDomain
  • required
  • Attachment
  • Duplicate
  • CustomHeaders
  • NoQuota
  • Suppressed
  • RequestLimit
  • ForbiddenAccess
message Text describing the reason for the failure string Valid string
locationType The location where the failure occurred string
  • headers
  • request
  • body
location The type of validation that failed string
  • authorization
  • sendValidation
  • webhookValidation
  • suppressionValidation
  • templateValidation
  • bouncesValidation
  • trackedAttachmentsGroup
  • trackedAttachmentsAsset
  • default

Example responses

Successful deletion [200 OK]

{
  "status": true
}

Nothing to delete [200 OK]

{
  "status": false
}

Invalid/Missing authorization credentials [401 Unauthorized]

{
    "code": 401,
    "message": "Login Required",
    "error": {
        "errors": [
            {
                "domain": "global",
                "reason": "required",
                "message": "Login Required",
                "locationType": "request",
                "location": "authorization"
            }
        ]
    }
}