Skip to main content
POST
Create API key

Authorizations

Authorization
string
header
required

Moonemail API key; x-required-scope applies.

Body

application/json
name
string
required
Required string length: 1 - 50
permission
enum<string>
Available options:
full_access,
sending_access,
scoped_access
scopes
enum<string>[]
Required array length: 1 - 15 elements
Available options:
inboxes:read,
inboxes:write,
receiving:read,
emails:send,
emails:read,
emails:update,
domains:read,
domains:write,
domains:delete,
webhooks:read,
webhooks:write,
webhooks:delete,
suppressions:read,
suppressions:write,
suppressions:delete
domain_id
string<uuid>
expires_at
string

Response

Success

object
string
required
Allowed value: "api_key"
id
string
required
token
string
required

Returned once. Save securely.

hint
string
required
permission
enum<string>
required
Available options:
full_access,
sending_access,
scoped_access
scopes
enum<string>[]
required
Available options:
inboxes:read,
inboxes:write,
receiving:read,
emails:send,
emails:read,
emails:update,
domains:read,
domains:write,
domains:delete,
webhooks:read,
webhooks:write,
webhooks:delete,
suppressions:read,
suppressions:write,
suppressions:delete
expires_at
string | null
required