Skip to content

Delete a template

DELETE
/v1/templates/{id}
curl --request DELETE \
--url https://api.velumrelay.email/v1/templates/example \
--header 'Authorization: Bearer <token>'

Its version history is kept.

id
required
string
/^[a-z][a-z0-9_]{0,47}$/

Use a lowercase letter first, then a-z, 0-9 and _ (up to 48 characters)

If-Match
string

Only update if the current version is this one (e.g. "3", from the ETag). Otherwise you get 412.

Deleted.

X-Request-Id
string
Example
req_3kTMd9vXq2LwB8nYpR4sZa

Unique 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"
}
Retry-After
integer
Example
1
X-Request-Id
string
Example
req_3kTMd9vXq2LwB8nYpR4sZa

Unique ID of this request (req_ + 22 characters). Include it when you contact support.