Email Schedules - SMB Sales Boost API
Set up automated email delivery of leads matching your saved filters. Configure delivery frequency, filter presets, export format preferences, and multi-recipient splitting.
Endpoints
GET /api/v1/email-schedules- List all your email export schedules. Each schedule has
presetProblem: null, or an object with amessagesaying why it sends nothing: its filter preset holds filters a schedule cannot apply (most often a keyword list deleted after the schedule was created), was saved with API filters (no dashboard filter hash), has no include filter, or was deleted. Such a schedule sends nothing and charges nothing, even while active, until it uses a preset that works: save the preset again on the dashboard's Leads tab and set it with PATCH filterPresetId (GET /api/v1/filter-presetsshowsschedulable). The check runs on every read, so the field clears as soon as the preset can be applied. Each schedule also hasoptedOutRecipients, the addresses of the schedule that opted out of its emails through the unsubscribe link in them (they stay on the recipient list but get no email from this schedule), andoptOutProblem: null, or an object with amessagewhen every recipient opted out, so the schedule sends nothing even while active. Add a recipient who did not opt out with PATCH recipients, or remove an opt-out (see the last endpoint of this section) if that person asked to receive the emails again. POST /api/v1/email-schedules- Create a new email schedule. Requires name, filterPresetId, intervalValue (a whole number from 1 to 720), intervalUnit and recipients. isActive defaults to true: an active schedule sends its first email within about 15 minutes; send false to create it paused. Schedules run filter presets saved from the dashboard: a preset saved with API filters (no hash, for example businessType; POST /api/v1/filter-presets, MCP create_filter_preset) answers 400
preset_not_schedulable; use it with GET /api/v1/leads or POST /api/v1/leads/export instead. A schedule applies every filter of its preset, exactly as the dashboard's Leads tab does; a preset holding filters a schedule cannot apply (filters the Leads tab does not use, values that cannot be read, keyword lists that no longer exist or invalid dates) also answers 400preset_not_schedulable, and the message names them. A schedule whose preset uses a keyword list that is deleted later stops sending (a trigger then answers 400preset_not_schedulable) until the preset is saved again and the schedule uses the new preset. PATCH /api/v1/email-schedules/:id- Update an existing email schedule. All fields are optional; intervalValue must be a whole number from 1 to 720 and maxLeadsPerEmail a whole number from 1 to 10,000 (every schedule has a limit, so null answers 400
bad_request). A new filterPresetId must be a dashboard preset the schedule can apply in full (400 preset_not_schedulableotherwise). The response carriesoptedOutRecipientsandoptOutProblemfor the stored schedule (as does the create response), so a recipient change shows at once whether the schedule still has someone to send to. DELETE /api/v1/email-schedules/:id- Delete an email schedule by ID.
POST /api/v1/email-schedules/:id/trigger- Manually trigger an active email schedule to send immediately. A send that is not finished within about 75 seconds answers 202 Accepted with a jobId and keeps running;
GET /api/v1/jobs/{jobId}then returns this response (kept for up to 24 hours). Send anIdempotency-Keyheader: repeating the request with the same key returns the same send instead of sending again (the key is kept with the job for up to about 48 hours; a server restart forgets it, so then check lastSent first), and triggering the same schedule while a trigger of it is still running returns that job. A 409schedule_run_in_progressmeans the schedule's regular run is sending it right now, or another schedule of your account is still being sent after the trigger waited up to 10 minutes for it: nothing was sent, so check lastSent when it finishes and trigger it again only if needed. A schedule whose preset holds filters a schedule cannot apply (for example a keyword list deleted after the schedule was created) answers 400preset_not_schedulablenaming them, and nothing is sent or charged. A schedule whose every recipient opted out (optOutProblem) answers 200 and sends nothing. POST /api/v1/email-schedules/:id/opt-outs/remove- Remove one address's opt-out from one of your own schedules, so that address receives the schedule's emails again. Use it only when that person asked to receive these emails again: an opt-out is the recipient's own decision (the unsubscribe link in every scheduled email), so do not remove it for any other reason. Send
{"email": "..."}in the JSON body (the address as listed inoptedOutRecipients, any letter case), never in the URL. The call is idempotent: the answer is{"data": {"removed": true, "scheduleId": 1, "message": "..."}}, withremovedfalse when the address was not opted out (nothing changes). It sends no email by itself; the address is included again from the schedule's next email. A schedule that does not exist or belongs to another account answers 404; a missing, too long (more than 254 characters) or invalid address answers 400bad_request.
Schedule Object Fields
Each schedule includes: id, name, filterPresetId, exportFormatId, intervalValue, intervalUnit, isActive, pauseReason (null, "user", or "insufficient_credits"), recipients (array of objects with email and optional splitParts), distributionMode, fullCopyRecipients, maxLeadsPerEmail, lastSent, totalSentCount, createdAt, optedOutRecipients and optOutProblem (see above), and on the list read presetProblem (see above).
Max Leads Per Email
maxLeadsPerEmail (optional, a whole number from 1 to 10,000, default 100) limits how many leads one email carries. Every schedule has a limit: null, 0 or more than 10,000 answer 400 bad_request. Each email sends the newest leads that match the filter preset and that your account has not received before through any channel (dashboard, API, MCP, email schedules, pushes or enrichments), on credit plans 1 credit per new lead. Leads that do not fit, including new leads your credits could not cover, wait for a later email. Schedules pause only when no credits are left to spend.
Combined File Feature
When file splitting is enabled, you can configure a combined file that includes an assignee column and file name column, sent to dedicated combined recipients.
API Documentation Sections
Introduction | Programmatic Purchase | Authentication | Rate Limits | Long-Running Requests | User Profile | Enrichments | Leads | Filter Presets | Keyword Lists | Email Schedules | Export Formats | Export History | Lead Export History | Account Settings | AI Features | Export Blacklist | Error Handling | Credits & Subscription | MCP Server | MCP Tools and Permissions | Integrations API
Setting up a CRM, an automation tool or a webhook? See Tools & Integrations: providers, events, webhook payloads and signatures, Exported leads (batched) and the Zoho Flow scripts.
Ready to Find Your Next Customers? Get access to growing local business leads updated every 5 minutes. See plans starting at $49/mo →