Skip to main content
POST
/
api-keys
cURL
curl -X POST 'https://api.nuntly.com/api-keys' \
  -H 'Authorization: Bearer apk_xxx' \
  -H 'Content-Type: application/json' \
  -d '{"name":"Production","permission":"fullAccess"}'
{
  "data": {
    "id": "<string>",
    "apiKey": "<string>",
    "shortToken": "<string>",
    "name": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Use an API key from https://nuntly.com/dashboard/api-keys. Required on every endpoint.

Body

application/json
permission
enum<string>
required

The permission type for the api key

Available options:
fullAccess,
sendingAccess
name
string

The name of the api key

Example:

"Production"

status
enum<string>

The status for the api key

Available options:
enabled,
disabled,
revoked
domainIds
string[]

The domain ids to restrict the api key to (only for sendingAccess)

Response

Created.

data
object
required