curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/accounts/email/smtp \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"emailAddress": "jsmith@example.com",
"smtpHost": "<string>",
"imapHost": "<string>",
"password": "<string>"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/accounts/email/smtp"
payload = {
"emailAddress": "jsmith@example.com",
"smtpHost": "<string>",
"imapHost": "<string>",
"password": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
emailAddress: 'jsmith@example.com',
smtpHost: '<string>',
imapHost: '<string>',
password: '<string>'
})
};
fetch('https://api.tryfuse.ai/api/v1/business/accounts/email/smtp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"channel": "email",
"account": {
"id": "outreach@brightpay.com",
"emailAddress": "outreach@brightpay.com",
"name": "BrightPay Outreach",
"provider": "smtp",
"isActive": true,
"isConnected": true,
"dailyCapacity": 15,
"availableCapacity": 15,
"needsReauthAt": null,
"needsReauthReason": null,
"warmup": {
"status": "new",
"startedAt": null,
"daysActive": null,
"last7Days": null,
"dnsGrade": null
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}Connect an SMTP/IMAP mailbox
Connects a mailbox by its SMTP and IMAP servers and password, as the app’s SMTP option does: Fuse logs in to the SMTP server (and to the IMAP server while inbox syncing for SMTP mailboxes is on) before saving anything, stores the password encrypted and never returns or logs it, then syncs the inbox. Connecting an SMTP mailbox you already connected updates its servers and password and keeps its settings, which is how to reconnect one whose login stopped working. A new mailbox takes a place in your plan’s mailbox pool. Answers 201 with the mailbox as its row in GET /business/accounts?channel=email. Rate limit: 20 requests per minute, 600 per day, shared by every route under /business/accounts/ except the SMTP import and its status.
Errors:
409EMAIL_ACCOUNT_ALREADY_CONNECTED— The address is already connected to your workspace through another provider (Gmail, Outlook or SMTP).403EMAIL_ACCOUNT_LIMIT_REACHED— Every mailbox your plan’s seats allow is connected, and this address is not one of them already.422SMTP_HOST_NOT_ALLOWED—smtpHostorimapHostresolves to a private or internal address.422SMTP_HOST_NOT_FOUND—smtpHostorimapHostdoes not resolve.422GOOGLE_HOSTED_DOMAIN— A host does not resolve and the domain’s mail is hosted by Google: use Gmail’s servers with an app password.422MICROSOFT_OAUTH_REQUIRED— A host does not resolve and the domain’s mail is hosted by Microsoft, which refuses password logins.422FORWARDING_ONLY_DOMAIN— A host does not resolve and the domain only forwards mail, so there is no mailbox to connect.422SMTP_LOGIN_REJECTED— The mail server refused the login (authUser/password).422SMTP_LOGIN_THROTTLED— The mail server is limiting login attempts; the same settings work later.422SMTP_BASIC_AUTH_DISABLED— The mail server accepts no password logins (Microsoft 365 IMAP).422SMTP_CONNECTION_FAILED— No connection with these hosts, ports and TLS settings.422VALIDATION_FAILED— A required field is missing, a host is not a host name, a port is not a port, or an unknown field was sent.429RATE_LIMITED— The quota for the /business/accounts/ routes (20 per minute, 600 per day) is spent, or the LinkedIn service’s own per-user limit refused the call. Retry after the Retry-After / RateLimit-Reset seconds when present, else after a minute.
Requires one of the following token scopes: accounts.
curl --request POST \
--url https://api.tryfuse.ai/api/v1/business/accounts/email/smtp \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"emailAddress": "jsmith@example.com",
"smtpHost": "<string>",
"imapHost": "<string>",
"password": "<string>"
}
'import requests
url = "https://api.tryfuse.ai/api/v1/business/accounts/email/smtp"
payload = {
"emailAddress": "jsmith@example.com",
"smtpHost": "<string>",
"imapHost": "<string>",
"password": "<string>"
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
emailAddress: 'jsmith@example.com',
smtpHost: '<string>',
imapHost: '<string>',
password: '<string>'
})
};
fetch('https://api.tryfuse.ai/api/v1/business/accounts/email/smtp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"channel": "email",
"account": {
"id": "outreach@brightpay.com",
"emailAddress": "outreach@brightpay.com",
"name": "BrightPay Outreach",
"provider": "smtp",
"isActive": true,
"isConnected": true,
"dailyCapacity": 15,
"availableCapacity": 15,
"needsReauthAt": null,
"needsReauthReason": null,
"warmup": {
"status": "new",
"startedAt": null,
"daysActive": null,
"last7Days": null,
"dnsGrade": null
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"param": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}
}