Create email API key
Makes a key for this project. The secret is in this response only; store it now.
POST
Makes a key for this project. The secret is in this response only; store it now.
header
AuthorizationBearer <Relevate API key>Relevate API key scoped to the operation's product and environment.
application/json- body
A new key's name, permissions and lifetime.
expires_at?|When it stops working; none by default.
Format
date-timename*string2 to 80 characters, like "Production server".
replaces_key_id?|The key this one replaces, recorded for the dashboard. Revoke it separately once the new key is in use.
scope*stringfull (send and read), send, read, events or marketing.
The new key, with its secret shown this once.
curl -X POST 'https://api.relevate.app/email/api-keys' \
-H 'Content-Type: application/json' \
-d '{
"name": "string",
"scope": "string"
}'Example Response
Empty