Test Email Connection
Check a mailbox's SMTP and IMAP login without saving anything.
https://api.foxreach.io/ api/ v1/ email-accounts/ testRequires an API key with the write scope.
FoxReach connects to the mail servers you name and tries the login, then reports each result. Nothing is saved. The password is sent to the mail provider only; it is never stored, logged or returned. The write scope is needed because the call makes FoxReach connect out with your credentials.
The SMTP login is tested on ports 465 and 587. On any other port only the connection and greeting are checked. IMAP is tested with a login and opening the inbox read-only.
The hosts must resolve to public mail servers. A host that is, or resolves to, a private, loopback or link-local address is refused without connecting, and both results come back as failed with a message saying so.
Body Parameters#
emailstringbodyrequiredpasswordstringbodyrequiredsmtpHoststringbodyrequiredsmtp.gmail.com.smtpPortintegerbody587.imapHoststringbodyrequiredimap.gmail.com.imapPortintegerbody993.Response#
dataobjectShow data
smtpSuccessbooleansmtpErrorstringnull.imapSuccessbooleanimapErrorstringnull.Errors#
| Status | Description |
|---|---|
401 | Missing, invalid, revoked or expired API key |
403 | API key does not have the required scope: write |
422 | email is not an address, or a required field is missing |
Rate Limit#
- 100 requests per minute, shared by every
expensivecall in your workspace. Fixed 60-second window. - Every response includes
X-RateLimit-Limit,X-RateLimit-Remaining,X-RateLimit-Reset(unix epoch seconds) andX-RateLimit-Bucket(expensive). - A
429response includes aRetry-Afterheader (seconds until the bucket resets).
For client-side patterns, see Rate Limiting.