Skip to main content
POST
/
settings
/
email
/
smtp
Update SMTP config
curl --request POST \
  --url https://api.wacht.dev/settings/email/smtp \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "host": "<string>",
  "port": 123,
  "username": "<string>",
  "password": "<string>",
  "from_email": "jsmith@example.com",
  "use_tls": true
}
'
{
  "host": "<string>",
  "port": 123,
  "username": "<string>",
  "from_email": "<string>",
  "use_tls": true,
  "verified": true
}

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 config updated

host
string
port
integer
username
string
from_email
string
use_tls
boolean
verified
boolean