Reconnect Email Account
Save a new password for an email account after testing it.
POST
https://api.foxreach.io/api/v1/email-accounts/{account_id}/reconnectRequires an API key with the write scope.
Tests SMTP and IMAP against the account's stored hosts with the new password and saves it only if both pass. This is also how you recover an account whose Google sign-in was revoked: on success the account switches back to password authentication, its OAuth tokens are dropped, connectionStatus returns to connected, lastError is cleared and the account is set active.
Path Parameters#
account_idstringpathrequiredThe unique identifier of the email account.
Body Parameters#
passwordstringbodyrequiredThe new app password to test and save.
Response#
dataobjectThe email account object. Passwords and OAuth tokens are never returned.
Show data
idstringEmail account identifier.
emailstringMailbox address.
displayNamestringFriendly name shown on sent mail, or
null.providerstringProvider the account was connected as.
smtpHoststringSMTP host.
smtpPortintegerSMTP port.
imapHoststringIMAP host.
imapPortintegerIMAP port.
timezonestringIANA timezone used for the account's daily limit window.
dailyLimitintegerMaximum campaign emails per day.
sentTodayintegerCampaign emails sent today in the account's timezone. Warmup sends are not counted.
warmupEnabledbooleanWhether warmup is on.
warmupDailyLimitintegerWarmup mail per day once the ramp is complete.
warmupRampUpDaysintegerDays the warmup ramp takes.
warmupStartDatestringISO 8601 timestamp the ramp started, or
null.healthScoreintegerStored health score, or
null. For the live placement score use Get Account Health.domainAuthobjectSPF, DKIM and DMARC check result, or
null until checked.domainAuthCheckedAtstringISO 8601 timestamp of the last domain check, or
null.bounceRatenumberBounce rate.
replyRatenumberReply rate.
isActivebooleanWhether the account is used for sending.
connectionStatusstringConnection state, for example
connected.lastErrorstringLast connection error, or
null.createdAtstringISO 8601 timestamp.
updatedAtstringISO 8601 timestamp.
Errors#
| Status | Description |
|---|---|
401 | Missing, invalid, revoked or expired API key |
403 | API key does not have the required scope: write |
404 | Email account not found, or it belongs to another workspace |
400 | Connection failed: SMTP: <reason>; IMAP: <reason>. Only the side that failed is listed |
422 | password is missing |
Rate Limit#
- 100 requests per minute, per API key. Fixed 60-second window.
- Every response includes
X-RateLimit-Limit,X-RateLimit-Remaining, andX-RateLimit-Reset(unix epoch seconds). - A
429response includes aRetry-Afterheader (seconds until the bucket resets).
For client-side patterns (Retry-After, exponential backoff, monitoring X-RateLimit-Remaining), see Rate Limiting.
Was this page helpful?
View as MarkdownLast updated November 2, 2026