Delete a template
DELETE
/v1/templates/{id}
const url = 'https://api.velumrelay.email/v1/templates/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.velumrelay.email/v1/templates/example \ --header 'Authorization: Bearer <token>'Its version history is kept.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Use a lowercase letter first, then a-z, 0-9 and _ (up to 48 characters)
Header Parameters
Section titled “Header Parameters”If-Match
string
Only update if the current version is this one (e.g. "3", from the ETag). Otherwise you get 412.
Responses
Section titled “Responses”Deleted.
Headers
Section titled “Headers”X-Request-Id
string
Example
req_3kTMd9vXq2LwB8nYpR4sZaUnique ID of this request (req_ + 22 characters). Include it when you contact support.
Missing or invalid management key.
Media typeapplication/json
object
error
required
What went wrong, in plain words.
string
Example
{ "error": "invalid or missing management key"}No template with that ID in your account.
Media typeapplication/json
object
error
required
What went wrong, in plain words.
string
Example
{ "error": "template not found"}If-Match didn’t match the current version.
Media typeapplication/json
object
error
required
What went wrong, in plain words.
string
current_version
integer
Example
{ "error": "version mismatch"}Rate limit exceeded (20 requests per second, bursts up to 40, per key). Wait for Retry-After seconds, then retry.
Media typeapplication/json
object
error
required
What went wrong, in plain words.
string
Example
{ "error": "rate limit exceeded"}Headers
Section titled “Headers”Retry-After
integer
Example
1X-Request-Id
string
Example
req_3kTMd9vXq2LwB8nYpR4sZaUnique ID of this request (req_ + 22 characters). Include it when you contact support.