Skip to main content
Version: 1.0.1

Save SMTP Settings


Define SMTP server settings for your partner account. These settings let emails sent from your partner account go out through your own mail server; sending the request again updates the existing settings.

Endpoint​

PropertyValue
URLPOST /white-label-partner/smtp-setting
MethodPOST
AuthR-Auth: <partner-jwt>
Content-Typeapplication/json
Base URLStage Environment https://api-stage.docnova.ai/
Production Environment https://api.docnova.ai/

Example Request​

curl --location '{{baseUrl}}/white-label-partner/smtp-setting' \
--header 'Content-Type: application/json' \
--header 'R-Auth: {{partnerJwt}}' \
--data-raw '{
"fromEmail": "noreply@example.com",
"host": "smtp.example.com",
"password": "{{password}}",
"port": 587,
"securityProtocol": "TLS",
"username": "{{username}}"
}'

Request body​

{
"fromEmail": "noreply@example.com",
"host": "smtp.example.com",
"password": "{{password}}",
"port": 587,
"securityProtocol": "TLS",
"username": "{{username}}"
}

Request fields​

FieldTypeRequiredDescription
fromEmailstringYesSender address shown on outgoing emails
hoststringYesSMTP server host (e.g. smtp.example.com)
portnumberYesSMTP server port (e.g. 25, 465, 587)
usernamestringYesUsername for SMTP server authentication
passwordstringYesPassword for SMTP server authentication
securityProtocolstring (enum)YesConnection security protocol. See the reference table below.
note

securityProtocol must match the port: typically 465 for SSL and 587 for TLS.

Response​

"f5e6d7c8-1234-5678-9abc-def012345678"

Response fields​

FieldTypeDescription
(body)string (UUID)Unique identifier (UUID) of the saved SMTP setting. The response is a plain UUID value, not a JSON object.

Security protocol values​

ValueDescription
NONEUnencrypted connection
SSLSSL/TLS encrypted connection (typically port 465)
TLSConnection upgraded to TLS via STARTTLS (typically port 587)

Response Codes​

CodeDescription
200OK — SMTP settings saved. Example value: f5e6d7c8-1234-5678-9abc-def012345678
201Created
401Unauthorized — R-Auth header missing or invalid
403Forbidden — Partner is not authorized for this operation
404Not Found