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.

circle-exclamation

Path Parameters

Name
Type
Description

Authentication*

string

Bearer {access_token}

Request Body

Name
Type
Description

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

{
  "ID": "ad75ae9c-f133-11eb-ab65-0a58a9feaca0",
  "Name": "PROD - Datadog",
  "Key": "ty5davhlalixzn7+2+4l9yemuxdprs8m2ue45vtxsot/zjngii1ptlrzxleceojvxos423om1zsu0apx6wmira==/1w2fsrgv7mayczileqw5svnduj3",
  "Secret": "lloIT4+/3636UvGI2dTm20DH/V9cdFpzHNcET142I32sKVmZV95xnYkVD7CZT7XhoHnQmYS7n/EE7DQmZMv7eoa+k+E/HVXXbjqmB3OFMccSJxboO17wiokvZGgr7Hsdw3LAwrWeYtdAHwzpFB/73JCg7mJ5Ln5ntzfKB1v10dY=/1w2FsQmMFMtP4h1x8lMjhoEwYv8"
}

Get all API Keys

GET https://api.smtpd.dev/api/v1/account/api_key

Path Parameters

Name
Type
Description

Authentication*

string

Bearer {access_token}

Get an API Key by ID

GET https://api.smtpd.dev/api/v1/account/api_key/:id

Headers

Name
Type
Description

Authentication*

String

Bearer {access_token}

Get API Key sessions by ID

GET https://api.smtpd.dev/api/v1/account/api_key/:id/sessions

Headers

Name
Type
Description

Authentication*

String

Bearer {access_token}

Revoke an API key

PUT https://api.smtpd.dev/api/v1/account/api_key/:id/revoke

Path Parameters

Name
Type
Description

Authentication*

string

Bearer {access_token}

id*

string

API Key ID

Last updated

Was this helpful?