consumerkey

Create Consumer Key

Create new Consumer Key

Note: Consumer Key creation is not allwed when authenticated via Consumer Key.

post/user/consumerKeys

Request

  • Base URL
    https://pro.api.serversmtp.com/api/v2
  • Auth
    API key in header Authorization

Request body

labelstring

Consumer Key label.

permissionsstring[] required

Permissions granted to this consumer key. At least one value is required.

ipsstring[]

IP addresses allowed to use this consumer key. Empty array or omitted means no restriction.

Example request

{
  "label": "QAkey.",
  "permissions": [
    "SEND_SMTP",
    "SEND_API",
    "APIS"
  ],
  "ips": [
    "192.168.1.1"
  ]
}

Response

Sucess

Consumer Key Created Sucessfully.

consumerKeystring

Consumer Key

consumerSecretstring

Consumer Secret

Example response

{
  "consumerKey": "b914ad238d0e8e8851b81e86ce46ae1d",
  "consumerSecret": "JOSenWTYopGjhZ1CDvsEbcK9PNUA06Xy"
}

Changes

No recorded changes to this operation across all 1 revision of this API.