curl -X POST "https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts/push-to-list" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"filter_id": 12345, "lead_list_id": 678, "limit": 1000}'
{
"success": true,
"data": {
"pushed": 812,
"added": 812,
"already": 0,
"total": 1000,
"leftOut": { "noEmail": 120, "catchAll": 55, "invalid": 13, "unverified": 0 },
"historyId": 4321,
"filterTotal": 1400,
"nextOffset": 1000
}
}
{
"success": false,
"message": "Filter not found or access denied"
}
Smart Prospect
Push Fetched Contacts to a Lead List API
Add the contacts of a fetched search to one of your lead lists, without downloading and re-uploading them - POST /fetch-contacts/push-to-list
POST
/
api
/
v1
/
search-email-leads
/
fetch-contacts
/
push-to-list
curl -X POST "https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts/push-to-list" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"filter_id": 12345, "lead_list_id": 678, "limit": 1000}'
{
"success": true,
"data": {
"pushed": 812,
"added": 812,
"already": 0,
"total": 1000,
"leftOut": { "noEmail": 120, "catchAll": 55, "invalid": 13, "unverified": 0 },
"historyId": 4321,
"filterTotal": 1400,
"nextOffset": 1000
}
}
{
"success": false,
"message": "Filter not found or access denied"
}
Credit cost: Free. This call only pushes contacts the search already fetched. It never fetches or charges.
This endpoint requires your API key: pass it as the
api_key query parameter, or in an X-API-Key or Authorization: Bearer header (see Authentication).nextOffset back as offset until it is null, and send historyId back as history_id so the lead list shows the whole push as one import.
The same rules as pushing from the Smart Prospect app apply:
- Contacts with a valid email are pushed.
- Catch-all emails are pushed only when
include_catch_allistrue. - Invalid and unverified emails, and contacts without an email, are never pushed. They are counted in
leftOut. - A phone number found for a contact goes with it.
- A contact already in the lead list is not added twice (
already).
leftOut.noEmail). Check Fetch Progress first.
Putting the contacts in a campaign
There is no campaign target on this endpoint. Push the contacts into a lead list first (every page, untilnextOffset is null), then copy that list into the campaign with Push Leads to Campaign. That call copies the whole list, so push into a new, empty lead list when only these contacts should go to the campaign:
cURL
curl -X POST "https://server.smartlead.ai/api/v1/leads/push-to-campaign?api_key=YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"campaignId": 12345, "action": "copy", "leadList": {"listId": 678}}'
Request Body
curl -X POST "https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts/push-to-list" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"filter_id": 12345, "lead_list_id": 678, "limit": 1000}'
Response Fields
All fields are underdata.
Response Codes
{
"success": true,
"data": {
"pushed": 812,
"added": 812,
"already": 0,
"total": 1000,
"leftOut": { "noEmail": 120, "catchAll": 55, "invalid": 13, "unverified": 0 },
"historyId": 4321,
"filterTotal": 1400,
"nextOffset": 1000
}
}
{
"success": false,
"message": "Filter not found or access denied"
}
