PATCH
/
outbound
/
smarthost
curl --request PATCH \
--url https://api.jetemail.com/outbound/smarthost \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"currentUsername": "old-user",
"newUsername": "new-user"
}'
{
  "success": true,
  "message": "Smarthost updated successfully"
}

Authorizations

Authorization
string
header
required

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

Body

application/json
currentUsername
string
required

Current SMTP username to update

Example:

"existing-user"

newUsername
string

New SMTP username (will be sanitized to lowercase alphanumeric with hyphens)

Required string length: 1 - 64
Example:

"new-user-name"

password
string

New password

Required string length: 8 - 72
Example:

"newSecurePassword123"

allowAnyDomain
boolean

Whether to allow sending from any domain (requires paid subscription)

Example:

false

approvedDomains
string[]

List of approved domains for sending

Maximum length: 253
Example:
["example.com", "mydomain.com"]
quota
number

Email sending quota

Required range: x >= 0
Example:

1000

ipRestrictions
string[]

List of allowed IP addresses

Maximum length: 50
Example:
["192.168.1.1", "10.0.0.1"]

Response

SMTP user updated successfully

success
boolean
Example:

true

message
string
Example:

"Smarthost updated successfully"