Skip to content

Delete a layout

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

A layout that templates use can’t be deleted; reassign or delete those templates first.

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 layout with that ID in your account.

Media typeapplication/json
object
error
required

What went wrong, in plain words.

string

Example

{
"error": "layout not found"
}

The layout is in use.

Media typeapplication/json
object
error
required

What went wrong, in plain words.

string
used_by

IDs of the templates that use it.

Array<string>

Example

{
"error": "layout is in use"
}

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.