TL;DR
- Verify with
POST /v1/lists(up to 100,000 addresses), poll untildone, read the results, and keep the verdicts. - Add the leads you keep with Smartlead's
POST /campaigns/{campaign_id}/leads: 400 per request, 60 requests a minute on the Standard tier. - Route catch-alls (
risky/low_deliverability) to a separate campaign; unknowns are refunded and can be retried. - Smartlead's API needs the Pro plan or above. Create a Mail Exchange key in your account.
If leads reach Smartlead from a script (a CRM sync, a Clay table, a scraper), the verification step should be in the script too. This walkthrough verifies a batch with the Mail Exchange API, splits it by result, and adds only the leads you want to a Smartlead campaign. Smartlead details are from its API reference and rate limit guide, checked 2026-11-22.
What you need
| Mail Exchange | Smartlead | |
|---|---|---|
| Base URL | https://mailexchange.com/api/v1 | https://server.smartlead.ai/api/v1 |
| Auth | Authorization: Bearer key | ?api_key= query parameter |
| Access | Create a key in your account (API keys) | API and webhooks from the Pro plan ($94 a month) |
| Batch size | Up to 100,000 addresses per list | Up to 400 leads per request |
| Rate limits | Per key; 429 when exceeded | 60/min and 1,000/hour (Standard), 120/min and 3,000/hour (Pro) |
Sources: Mail Exchange API reference; Smartlead add leads, Smartlead rate limits, Smartlead pricing (checked 2026-11-22).
The workflow
- Get both API keys. Create a Mail Exchange API key in your account after signing up (Account, API keys). Smartlead's API and webhooks are included from the Pro plan; Smartlead passes the key as an api_key query parameter.
- Submit the leads to Mail Exchange. POST the email addresses to /v1/lists as a JSON array, up to 100,000 per list, with an optional name. Credits are taken on submit, one per unique address; duplicates are removed and not charged.
- Wait for the list to finish. Poll GET /v1/lists/{id} every 5 to 10 seconds until the status is done, or pass a callback_url when you submit and Mail Exchange will POST a signed list.done event.
- Fetch the results. Page through GET /v1/lists/{id}/results with offset and limit, up to 10,000 rows per request. Each row has the email, a state, a reason and flags such as accept_all, role and disposable.
- Split leads by verdict. Keep deliverable leads for the main campaign, put risky leads with reason low_deliverability (catch-all) in a separate list, retry unknown results later, and drop undeliverable ones.
- Add the leads to Smartlead in batches of 400. POST each batch to Smartlead's /campaigns/{campaign_id}/leads endpoint as lead_list, keeping the global block list, unsubscribe list and community bounce list checks on.
- Handle rate limits and skipped leads. Stay under Smartlead's limit of 60 requests a minute on the Standard tier, wait for the Retry-After header on a 429, and log added_count and skipped_count from each response.
- Send bounces back to Mail Exchange. Subscribe to Smartlead's EMAIL_BOUNCED webhook and forward bounced addresses to Mail Exchange's /v1/feedback endpoint, so later checks of the same addresses improve.
Example script (Python)
This uses the requests library and reads both keys from environment variables. Replace the campaign IDs with your own.
import os, time, requests
MX = "https://mailexchange.com/api/v1"
MX_HEADERS = {"Authorization": f"Bearer {os.environ['MAILEXCHANGE_API_KEY']}"}
SL = "https://server.smartlead.ai/api/v1"
SL_KEY = os.environ["SMARTLEAD_API_KEY"]
MAIN_CAMPAIGN = 111111 # your main Smartlead campaign id
CATCHALL_CAMPAIGN = 222222 # optional: a smaller campaign for catch-alls
def verify(leads, name):
"""Verify leads with Mail Exchange. Returns {email: result}."""
r = requests.post(f"{MX}/lists", headers=MX_HEADERS,
json={"emails": [l["email"] for l in leads], "name": name})
r.raise_for_status() # 402 = not enough credits
list_id = r.json()["id"]
while True: # poll every 10 seconds
s = requests.get(f"{MX}/lists/{list_id}", headers=MX_HEADERS).json()
if s["status"] in ("done", "failed"):
break
time.sleep(10)
results, offset = {}, 0
while True: # page through results
page = requests.get(f"{MX}/lists/{list_id}/results", headers=MX_HEADERS,
params={"offset": offset, "limit": 1000}).json()["results"]
if not page:
break
for row in page:
results[row["email"]] = row
offset += len(page)
return results
def split(leads, results):
main, catchall, retry = [], [], []
for lead in leads:
res = results.get(lead["email"].strip().lower())
if not res:
continue
if res["state"] == "deliverable":
main.append(lead)
elif res["state"] == "risky" and res["reason"] == "low_deliverability":
catchall.append(lead) # catch-all domain
elif res["state"] == "unknown":
retry.append(lead) # credit refunded; try again later
# undeliverable and other risky results are dropped
return main, catchall, retry
def add_to_smartlead(campaign_id, leads):
for i in range(0, len(leads), 400): # Smartlead takes up to 400 per request
body = {"lead_list": leads[i:i + 400],
"settings": {"ignore_global_block_list": False,
"ignore_unsubscribe_list": False,
"ignore_community_bounce_list": False}}
while True:
r = requests.post(f"{SL}/campaigns/{campaign_id}/leads",
params={"api_key": SL_KEY}, json=body)
if r.status_code == 429: # rate limited: honour Retry-After
time.sleep(int(r.headers.get("Retry-After", 10)))
continue
r.raise_for_status()
break
d = r.json()
print(campaign_id, "added", d.get("added_count"), "skipped", d.get("skipped_count"))
time.sleep(1.2) # stays under 60 requests a minute
leads = [{"email": "[email protected]", "first_name": "Jane", "company_name": "Acme"}]
results = verify(leads, "smartlead-import-2026-11")
main, catchall, retry = split(leads, results)
add_to_smartlead(MAIN_CAMPAIGN, main)
add_to_smartlead(CATCHALL_CAMPAIGN, catchall)
Notes on the script:
- Mail Exchange lower-cases and trims addresses and removes duplicates before charging, which is why the lookup uses
lead["email"].strip().lower(). - Catch-alls come back as
state: "risky"withreason: "low_deliverability"andaccept_all: true. Role addresses areriskywithlow_quality; the script drops them. - Unknowns (
unavailable_smtp,no_connect,dns_error) are refunded when the list finishes. Retry them later rather than sending. - Smartlead's settings flags all default to
false, which keeps its block list, unsubscribe list and community bounce list checks on. The script sets them explicitly so nobody flips one by accident.
Smartlead's add-leads endpoint in detail
From the API reference: each item in lead_list needs email, and can carry first_name, last_name, phone_number, company_name, website, location, linkedin_profile, company_url and up to 200 custom_fields. The response has success, message, added_count, skipped_count and skipped_leads.
From the lead management guide: duplicate emails within the same campaign are always skipped, blocked leads are skipped account-wide, and larger lists must be split into batches of 400.
The app's CSV upload behaves differently on one point: its Community Bounce List toggle is on by default and imports leads that bounced for other Smartlead users (help center). Through the API the community bounce check runs unless you set ignore_community_bounce_list to true.
Rate limits and retries
Smartlead's rate limit guide recommends honouring Retry-After on a 429, exponential backoff with jitter otherwise, and a client-side cap of about 80% of your limit, for example 50 requests a minute on Standard. At 400 leads a request, that's 20,000 leads a minute, far more than most imports need, so a simple pause between requests is enough.
For Mail Exchange, one list call covers up to 100,000 addresses, so rate limits rarely matter. Poll every 5 to 10 seconds, or use a callback_url and skip polling (webhooks and callbacks).
Closing the loop with bounce webhooks
Smartlead's webhooks include an EMAIL_BOUNCED event. Create one with POST /webhook/create, passing name, webhook_url, email_campaign_id, association_type (1 user, 2 client, 3 campaign) and an event_type_map. Payloads are signed with HMAC-SHA256, and failed deliveries are retried at 1 minute, 5 minutes, 15 minutes, 1 hour and 6 hours before the webhook is disabled.
Forward each bounced address to Mail Exchange with POST /v1/feedback and {"events": [{"email": "...", "event": "bounced"}]}. It's optional, and it improves results on addresses you check again. Check the bounce payload's exact fields in Smartlead's webhook events reference before you parse it.
Why put verification in the pipeline
In Mail Exchange's checks of 779,784 unique business addresses across 200,799 domains (17 Oct to 22 Nov 2026), mostly B2B PR, media and marketing contact lists rather than a random sample of all email, 7.6% were undeliverable and 18.1% were catch-all. A pipeline that pushes leads straight into Smartlead sends both groups. Smartlead's own verifier only runs on CSV uploads in the app and keeps catch-alls in the campaign (help center), so a script is the natural place to decide.
Cost: Mail Exchange charges one verification per unique address and refunds unknowns. On the Agency plan ($249 a month for 100,000) that is $0.00249 per address at full use.
FAQ
Does Smartlead have an API for adding leads?
Yes. Smartlead's API reference documents POST /campaigns/{campaign_id}/leads on server.smartlead.ai/api/v1, authenticated with an api_key query parameter. It accepts up to 400 leads per request in a lead_list array and returns added_count, skipped_count and skipped_leads. API access is included from Smartlead's Pro plan.
What are Smartlead's API rate limits?
Smartlead's rate limit guide lists 60 requests a minute and 1,000 an hour, with bursts of 10 a second, on the Standard tier, and 120 a minute and 3,000 an hour on Pro. A 429 response includes a Retry-After header for plan-wide limits.
Can I verify leads that are already in a Smartlead campaign through the API?
Smartlead's own verifier cannot verify leads once a campaign is live. You can fetch a campaign's leads through Smartlead's API, verify the addresses with Mail Exchange, and then block or remove the ones that come back undeliverable.
Is there a native Mail Exchange integration for Smartlead?
Not yet. Today the integration is a CSV workflow or a script that calls both APIs, like the one on this page. A direct connector is on the roadmap; contact Mail Exchange for early access.
Get a key
Sign up, then create an API key in your account under API keys. The full endpoint list is on the API page, and verify a list with the API walks through the list endpoints in more detail.
Mail Exchange's free trial checks 25 addresses (a saved card is required, nothing is charged). After that, plans start at $49 a month for 10,000 verifications and daily checks on 10 sending domains; verifications reset every month (unused ones don't carry over), and unknown results and duplicates are refunded. See pricing.
