curl --request POST \
--url https://api.salessequencer.com/api/v1/mailboxes/connect-smtp \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"email": "<string>",
"smtp_host": "<string>",
"smtp_password": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/mailboxes/connect-smtp"
payload = {
"email": "<string>",
"smtp_host": "<string>",
"smtp_password": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', smtp_host: '<string>', smtp_password: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/mailboxes/connect-smtp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Connect a mailbox over SMTP
Logs in to the SMTP server first (no email is sent) and only saves the mailbox if the login works. If the email already exists in the workspace it is overwritten with the new credentials and set active; otherwise a new SMTP mailbox is created with warmup pool off. Refuses: invalid email, missing host or password, failed login (flash with the reason). Also verifies an IMAP login (default: same host, 993 SSL, same credentials) and refuses to save if it fails.
Minimum role: edit (x-min-role). Destructive: false (x-destructive).
curl --request POST \
--url https://api.salessequencer.com/api/v1/mailboxes/connect-smtp \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"email": "<string>",
"smtp_host": "<string>",
"smtp_password": "<string>"
}
'import requests
url = "https://api.salessequencer.com/api/v1/mailboxes/connect-smtp"
payload = {
"email": "<string>",
"smtp_host": "<string>",
"smtp_password": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', smtp_host: '<string>', smtp_password: '<string>'})
};
fetch('https://api.salessequencer.com/api/v1/mailboxes/connect-smtp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Body
Mailbox address (lowercased).
SMTP server host.
SMTP password (stored encrypted).
Sender first name.
IMAP host for replies/bounces. Default: the SMTP host.
IMAP password. Default: the SMTP password.
IMAP port. Default 993.
ssl, starttls or none. Default ssl.
IMAP login. Default: the SMTP login.
Sender last name.
Port. Default 587.
ssl, starttls or none. Default starttls; anything else becomes starttls.
Login name. Defaults to the email.
Response
Redirect to the mailbox list; flash 'Connected over SMTP.' or 'Reconnected ...'.