List a template's versions
GET
/v1/templates/{id}/versions
const url = 'https://api.velumrelay.email/v1/templates/example/versions';const options = {method: 'GET', 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 GET \ --url https://api.velumrelay.email/v1/templates/example/versions \ --header 'Authorization: Bearer <token>'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)
Responses
Section titled “Responses”Every saved version, newest first.
Media typeapplication/json
object
versions
Array<object>
object
version
integer
updated_at
string format: date-time
updated_by
string
layout
string
Example generated
{ "versions": [ { "version": 1, "updated_at": "2026-04-15T12:00:00Z", "updated_by": "example", "layout": "example" } ]}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"}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.