API keys
There are two kinds of keys, both created in the dashboard under API keys, and both sent as a bearer token:
Authorization: Bearer vr_…| Relay key | Management key | |
|---|---|---|
| Starts with | vr_ |
vm_ |
| Used with | relay.velumrelay.email |
api.velumrelay.email |
| Can | Send email from your templates, as the From addresses you chose for the key | Create, change, preview and delete your templates and layouts |
| Can’t | Change templates, see message history | Send email, manage keys, see message history |
Keys are 52 characters long and include a checksum, so a mistyped key is rejected right away.
Keep them secret
Section titled “Keep them secret”- A key is shown once, when you create it. velumRelay only stores a fingerprint of it, so it can’t show it again or recover it. If you lose a key, revoke it and create a new one.
- Keep keys in your app’s secret store or environment variables, never in front-end code or a repository.
- Use one key per app and environment (
production,staging), so you can revoke one without touching the others.
From addresses
Section titled “From addresses”Each relay key lists the From addresses it may send as, chosen from the addresses and domains approved for your
account. Sending from anything else is refused with 403. You can change a relay key’s addresses at any time
without changing the key itself.
Revoking
Section titled “Revoking”Revoking a key in the dashboard takes effect within seconds. Requests with a revoked key get 401.