POST
/
outbound
/
smarthost
curl --request POST \
  --url https://api.jetemail.com/outbound/smarthost \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "username": "smtp-user1",
  "password": "mySecurePassword123",
  "allowAnyDomain": false,
  "approvedDomains": [
    "example.com",
    "mydomain.com"
  ],
  "quota": 1000,
  "ipRestrictions": [
    "192.168.1.1",
    "10.0.0.1"
  ]
}'
{
"success": true,
"message": "SMTP user created successfully"
}

Authorizations

Authorization
string
header
required

Enter your Bearer token in the format "Bearer {token}"

Body

application/json

Response

200
application/json

SMTP user created successfully. If no password was provided in the request, a generated password will be included in the response.

The response is of type object.