Getting started
1. Create an account
Section titled “1. Create an account”Sign up at app.velumrelay.email. Before you can create a relay key, your
account needs at least one approved From address (like noreply@acme.example) or sending domain
(@acme.example). The dashboard’s Overview tells you when none are approved yet; your approved addresses are listed
on the Account page.
2. Create a template
Section titled “2. Create a template”In the dashboard, open Templates → New template. Give it a name (Welcome email) and an ID (welcome): the ID
is what you send with, and it can’t be changed later. Write the subject and HTML with Mustache variables:
Subject: Welcome, {{name}}!
<h1>Hello {{name}}</h1><p><a href="{{verify_url}}">Verify your email address</a></p>The Preview tab renders it with sample data as you type. You can also create templates from code with the Management API.
3. Create a relay key
Section titled “3. Create a relay key”Open API keys → New relay key, name it (production) and pick which From addresses it may send as. The key
(vr_…) is shown once: copy it into your app’s secrets right away.
4. Send an email
Section titled “4. Send an email”curl https://relay.velumrelay.email/v1/send \ -H "Authorization: Bearer $VELUM_RELAY_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: signup-7f3a9c" \ -d '{ "template": "welcome", "from": "Acme <noreply@acme.example>", "to": ["ada@example.com"], "data": { "name": "Ada", "verify_url": "https://acme.example/verify?t=abc" } }'A 202 Accepted means the email is safely queued:
{ "message_id": "105db76d635bb3776fa8ba0c37ae4052", "email_message_id": "<105db76d635bb3776fa8ba0c37ae4052@velumrelay.email>", "status": "queued", "request_id": "req_3kTMd9vXq2LwB8nYpR4sZa"}The Idempotency-Key header is optional but recommended: if your request times out and you retry with the same
key, the email is sent only once. See Errors and limits.
5. Follow the delivery
Section titled “5. Follow the delivery”Open Activity in the dashboard and find the message by its message_id. Its timeline shows each step, from
accepted to delivered, including retries when a receiving server asks to try again later.