Skip to main content
POST
Connect an SMTP/IMAP mailbox

Authorizations

Authorization
string
header
required

Your API token (af_…) as the Basic-auth username, with an empty password.

Body

application/json
emailAddress
string<email>
required

The mailbox's address. Stored trimmed and lower-cased; it becomes the account's id.

Maximum string length: 320
smtpHost
string
required

Outgoing (SMTP) server host name, for example smtp.zoho.com.

imapHost
string
required

Incoming (IMAP) server host name, for example imap.zoho.com.

password
string
required

The mailbox password, or an app password where the provider requires one (2-step verification on). Verified with a live login, stored encrypted, never returned or logged.

Required string length: 1 - 1024
name
string

Sender name for a new mailbox, up to 200 characters. Reconnecting an existing mailbox keeps its current name.

Maximum string length: 200
smtpPort
number
default:465

Outgoing server port: 465 for implicit TLS (default), 587 for STARTTLS.

smtpSecure
boolean
default:true

true (default) for implicit TLS (port 465), false for STARTTLS (port 587).

imapPort
number
default:993

Incoming server port: 993 (default) for implicit TLS.

imapSecure
boolean
default:true

true (default) for implicit TLS.

authUser
string

Login user name when it differs from emailAddress; omitted or empty logs in as emailAddress.

Maximum string length: 320

Response

Success

channel
enum<string>
required
Available options:
email
account
EmailAccount · object
required