Skip to main content
POST
/
sub-account
/
{handle}
/
api-key
Create Sub-account API Key
curl --request POST \
  --url https://api.mailchannels.net/tx/v1/sub-account/{handle}/api-key \
  --header 'X-Api-Key: <x-api-key>'
{
  "id": 123,
  "key": "<string>"
}

Headers

X-Api-Key
string
required

Path Parameters

handle
string
required

Handle of the sub-account to create API key for.

Response

A new API key was successfully created for the specified sub-account.

id
integer

The API key ID for the sub-account.

key
string

API key for the sub-account.