Skip to main content
POST
/
user
/
email-accounts
/
{emailAccountId}
/
test
Test Email Account
curl --request POST \
  --url https://api.lemlist.com/api/user/email-accounts/{emailAccountId}/test \
  --header 'Authorization: Basic <encoded-value>'
{
  "smtp": {
    "success": true
  },
  "imap": {
    "success": true
  }
}
Runs a connectivity check on both the SMTP and IMAP servers for the specified email account. Each protocol is tested independently — one can succeed while the other fails. Use this endpoint to verify that an email account is properly configured before using it in campaigns.

Example response

{
  "smtp": { "success": true },
  "imap": { "success": true }
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Path Parameters

emailAccountId
string
required

The ID of the email account to test.

Response

Test results for SMTP and IMAP connections

smtp
object
imap
object