Create Email Account
Connect a mailbox by SMTP and IMAP credentials.
https://api.foxreach.io/api/v1/email-accountsRequires an API key with the write scope.
FoxReach tests the SMTP and IMAP connection with the credentials you send before it saves anything. The password is stored encrypted and is never returned. To connect a Gmail account with Google sign-in instead, see Start Google Sign-in.
Body Parameters#
emailstringbodyrequiredThe mailbox address.
passwordstringbodyrequiredThe app password (or the regular password for a custom SMTP server).
providerstringbodyDefault: gmailgmail, outlook, yahoo, zoho or custom. Sets the default SMTP and IMAP hosts and ports. An unknown value falls back to the Gmail defaults.
displayNamestringbodyFriendly name shown on sent mail.
signaturestringbodyEmail signature.
smtpHoststringbodySMTP host. Overrides the provider default. Use it with custom: the custom provider has no default host.
smtpPortintegerbodySMTP port. Overrides the provider default (587).
imapHoststringbodyIMAP host. Overrides the provider default.
imapPortintegerbodyIMAP port. Overrides the provider default (993).
dailyLimitintegerbodyDefault: 50Campaign emails per day, 1 to 200. Gmail and Microsoft hosts are capped at 50.
timezonestringbodyIANA timezone name. Defaults to the timezone of the user who created the API key, then UTC.
Response#
dataobjectThe email account object. Passwords and OAuth tokens are never returned.
Show data
idstringemailstringdisplayNamestringnull.providerstringsmtpHoststringsmtpPortintegerimapHoststringimapPortintegertimezonestringdailyLimitintegersentTodayintegerwarmupEnabledbooleanwarmupDailyLimitintegerwarmupRampUpDaysintegerwarmupStartDatestringnull.healthScoreintegernull. For the live placement score use Get Account Health.domainAuthobjectnull until checked.domainAuthCheckedAtstringnull.bounceRatenumberreplyRatenumberisActivebooleanconnectionStatusstringconnected.lastErrorstringnull.createdAtstringupdatedAtstringErrors#
| Status | Description |
|---|---|
401 | Missing, invalid, revoked or expired API key |
403 | API key does not have the required scope: write |
400 | Email account already exists (same address in this workspace), SMTP connection failed: <reason> or IMAP connection failed: <reason> |
422 | Daily limit above the provider cap: mailboxes on Gmail and Microsoft SMTP hosts are capped at 50 campaign emails per day, or the body failed validation (invalid email, dailyLimit outside 1-200, unknown timezone) |
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.