API Keys
Generate new API Key
POST
https://api.smtpd.dev/api/v1/account/api_key
IMPORTANT: The generated secret will be visible only once. After the key has been created, you will only be able to see the name of the key.
API Keys are automatically revoked after 90 days of inactivity.
Path Parameters
Authentication*
string
Bearer {access_token}
Request Body
role*
string
The permission role for the API key. Supports the following roles;
iac
, standard
, read_only
, send_only
name*
string
Name for API key
Get all API Keys
GET
https://api.smtpd.dev/api/v1/account/api_key
Path Parameters
Authentication*
string
Bearer {access_token}
Get an API Key by ID
GET
https://api.smtpd.dev/api/v1/account/api_key/:id
Headers
Authentication*
String
Bearer {access_token}
Get API Key sessions by ID
GET
https://api.smtpd.dev/api/v1/account/api_key/:id/sessions
Headers
Authentication*
String
Bearer {access_token}
Revoke an API key
PUT
https://api.smtpd.dev/api/v1/account/api_key/:id/revoke
Path Parameters
Authentication*
string
Bearer {access_token}
id*
string
API Key ID
Last updated
Was this helpful?