Skip to main content
POST
/
settings
/
email
/
smtp
/
verify
Verify SMTP connection
curl --request POST \
  --url https://api.wacht.dev/settings/email/smtp/verify \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "host": "<string>",
  "port": 123,
  "username": "<string>",
  "password": "<string>",
  "from_email": "[email protected]",
  "use_tls": true
}
'
{
  "success": true,
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Body

application/json
host
string
required
port
integer
required
username
string
required
password
string
required
from_email
string<email>
required
use_tls
boolean
default:true

Response

200 - application/json

SMTP connection verified

success
boolean
message
string