Create and Verify SMTP Config
POST/v1/smtpbasic/verify
This endpoint creates a new SMTP config and verifies the SMTP config
Request
- application/json
Body
required
SMTP Payload
config
object
required
host stringrequired
password stringrequired
port integerrequired
secure stringrequired
Possible values: [Auto, TlsWhenAvailable, Tls, SSL, None]
username stringrequired
config_type stringrequired
Possible values: [smtp]
connection_type stringrequired
Possible values: [basic, oauth]
email stringrequired
name stringrequired
Responses
- 200
- 400
- 409
SMTP Config verified and created
- application/json
- Schema
- Example (from schema)
Schema
mailer_id string
success boolean
{
"mailer_id": "01JC3BBW8S9YGX2VNKG5MD7BTA",
"success": true
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error string
success boolean
{
"error": "string",
"success": false
}
Conflict: invalid config
- application/json
- Schema
- Example (from schema)
Schema
error string
success boolean
{
"error": "string",
"success": false
}
Loading...