Get a template version
const url = 'https://api.velumrelay.email/v1/templates/example/versions/example';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/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Use a lowercase letter first, then a-z, 0-9 and _ (up to 48 characters)
Responses
Section titled “Responses”The template as it was in that version.
object
Use a lowercase letter first, then a-z, 0-9 and _ (up to 48 characters)
Display name.
Templates only: the assigned layout’s ID, if any.
Increases by one on every change.
Which management key (key:<name>) or dashboard made the change.
Plain-text version, if set. Otherwise it’s generated from the HTML when sending.
Example generated
{ "id": "example", "name": "example", "layout": "example", "version": 1, "updated_at": "2026-04-15T12:00:00Z", "updated_by": "example", "subject": "example", "html": "example", "text": "example"}Headers
Section titled “Headers”Example
req_3kTMd9vXq2LwB8nYpR4sZaUnique ID of this request (req_ + 22 characters). Include it when you contact support.
Missing or invalid management key.
object
What went wrong, in plain words.
Example
{ "error": "invalid or missing management key"}No such version.
object
What went wrong, in plain words.
Example
{ "error": "version not found"}Rate limit exceeded (20 requests per second, bursts up to 40, per key). Wait for Retry-After seconds, then retry.
object
What went wrong, in plain words.
Example
{ "error": "rate limit exceeded"}Headers
Section titled “Headers”Example
1Example
req_3kTMd9vXq2LwB8nYpR4sZaUnique ID of this request (req_ + 22 characters). Include it when you contact support.