Create email API key

Makes a key for this project. The secret is in this response only; store it now.

POST
/email/api-keys

Makes a key for this project. The secret is in this response only; store it now.

Authorization

headerAuthorizationBearer <Relevate API key>

Relevate API key scoped to the operation's product and environment.

Request Body

application/json
  1. body

A new key's name, permissions and lifetime.

expires_at?|

When it stops working; none by default.

Formatdate-time
name*string

2 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*string

full (send and read), send, read, events or marketing.

Response Body

The new key, with its secret shown this once.

Example Request
curl -X POST 'https://api.relevate.app/email/api-keys' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string",
  "scope": "string"
}'
Example Response
Empty