API keys
Make, rotate and revoke keys, from the dashboard or from code.
In the dashboard
Owners make keys in Workspace settings → API keys. Pick a name and a scope:
| Scope | Can |
|---|---|
| Service and activity | Send service email and read activity |
| Send service email | Send, without reading activity |
| Send marketing email | Send service and marketing email |
| View activity | Read, without sending |
| Record events | Send your app's events, for automations |
| Manage API keys | Make and revoke this project's Email keys from code |
The secret is shown once. Keys made in test mode
start with rlvt_test_.
From code
A key with Manage API keys can rotate keys in a deploy pipeline:
GET /email/api-keys | The project's Email keys, never their secrets |
POST /email/api-keys | Make a key: name, scope, optional expires_at and replaces_key_id |
DELETE /email/api-keys/{id} | Revoke a key at once |
It can't make another key-managing key, and CRM and Schedule keys stay in the dashboard, so a leaked key can't copy its own reach.
Rotating a key
- Make the new key, with
replaces_key_idset to the old one. - Deploy it.
- Revoke the old key.