email-accounts
Connect an SMTP/IMAP email account
Connects a new SMTP/IMAP email account for use as a sending mailbox in sequences.
The account is always saved to the database, even if the connection test fails — inspect the smtpConnection and imapConnection fields in the response.
- status: 0 — created but connection unverified (check smtpConnection.error/imapConnection.error).
- status: 1 — connected and verified.
emailServiceProvider must be lowercase (e.g. "zoho"). Valid values: zoho, gmail, yahoo, sendgrid, mailgun, ses, outlook.
fromName is the full display name shown in the From header; it is independent of fromFirstName/fromLastName — all three must be supplied.
post/v1/email-accounts/smtp-imap/connect
Request
- Base URLhttps://developer.saleshandy.com (the document declares no server; this is the origin it was published from)
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"emailServiceProvider": "zoho",
"fromName": "Sarah Chen",
"fromFirstName": "Sarah",
"fromLastName": "Chen",
"payload": {
"smtp": {
"emailAddress": "sarah.chen@outreach.io",
"password": "AppPassword123",
"host": "smtp.zoho.com",
"port": 587,
"encryption": "TLS",
"userName": "sarah.chen@outreach.io"
},
"imap": {
"emailAddress": "sarah.chen@outreach.io",
"password": "AppPassword123",
"host": "imap.zoho.com",
"port": 993,
"encryption": "SSL"
}
}
}Response
Email account connected successfully
Changes
No recorded changes to this operation across all 4 revisions of this API.