SMB Sales Boost REST API Documentation

Base URL: https://smbsalesboost.com/api/v1

Response Format: JSON (application/json)

Authentication: Bearer token (API key)

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.

Table of Contents

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

Introduction

The SMB Sales Boost API provides RESTful access to our lead database, enrichments, export tools, filter management, AI features, credits and billing, and CRM and webhook integrations. The same API key also works with our MCP server. All API endpoints return JSON (file downloads aside) and, apart from the purchase endpoints, require authentication via Bearer token.

To connect a CRM, an automation tool such as Zapier, Make, n8n or Zoho Flow, or your own webhook, see Tools & Integrations: the providers, events, webhook payloads and signatures, and exports in batches.

Quick Start

Base URL
https://smbsalesboost.com/api/v1
Response Format
JSON (application/json)
Authentication
Bearer token (API key)
Protocol
HTTPS only

Plan Requirement

API access is available for users on any paid plan (Starter, Growth, Scale, Platinum, or Enterprise). View plans to get started.


Programmatic Purchase

Purchase a subscription entirely via API - no web signup or onboarding required. This is ideal for AI agents and automated workflows that need programmatic access to SMB Sales Boost.

How It Works

(1) Call POST /api/v1/purchase with your email and desired plan, (2) complete checkout at the returned Stripe Checkout URL, (3) receive your API key by email at that address. The API never returns the key itself.

If that email already has an SMB Sales Boost account, the purchase must first be confirmed from the email sent to that address; the API key is emailed after that.

14-Day Free Trial

Starter, Growth and Scale start with a 14-day free trial by default. A payment method is required, nothing is charged until the trial ends, and the trial includes free credits (200 on Starter, 300 on Growth, 500 on Scale); the plan price is then charged automatically unless the subscription is cancelled first (cancelling during the trial ends it immediately, together with its access and credits). Send "trial": false to skip the trial and pay at checkout. Platinum and Enterprise never trial. One trial per person.

Step 1: Initiate Purchase

POST /api/v1/purchase
Create a new subscription purchase session. Returns { data: { checkoutUrl, expiresAt, plan, trial, message } }. The API key is not returned: it is emailed to the purchase address once checkout is complete. No authentication required. Rate limited to 5 requests per hour per IP.

Parameters: email (required, string), plan (required, string - "starter", "growth", "scale", "platinum", or "enterprise"), trial (optional, boolean, default true - only false skips the free trial and charges the plan price at checkout).

The trial object in the response reports eligible, days, credits, endsAt, note and, when there is no trial, a reason: not_requested, plan_not_eligible, trial_already_used, previously_subscribed (you have held a subscription before, so the plan is charged at checkout, no free trial) or currently_subscribed.

Errors: 400 invalid_email or invalid_plan, 403 forbidden or disposable_email, 409 already_subscribed (also while that email is on a free trial; use change-plan instead), 410 plan_retired, 503 when payment processing is unavailable.

Step 2: Complete Checkout

Open the checkoutUrl in a browser to complete checkout on Stripe's hosted page. The session expires after 24 hours. After checkout, the system automatically provisions your account and generates an API key.

Step 3: Receive Your API Key by Email

Your API key (prefixed smbk_) is emailed to the purchase address once checkout is complete. Store it securely. If that address already has an SMB Sales Boost account, confirm the purchase from the email sent to that address first; the key follows.

POST /api/v1/claim-key is kept for backward compatibility only. It needs a claim token, which current purchases no longer issue, so wait for the emailed API key instead.

Account Setup (Highly Recommended)

Programmatic purchases skip the onboarding wizard. To get the most out of SMB Sales Boost, configure your account via the API before searching or exporting leads:

  1. PATCH /api/v1/me - Set your company name and website
  2. POST /api/v1/ai/suggest-categories - Get AI-powered category suggestions
  3. POST /api/v1/ai/generate-keywords - Generate targeting keywords: send up to 3 of the suggested categories in categories, plus the companyDescription and productService you sent in step 2

Authentication

All API requests require a valid API key sent as a Bearer token in the Authorization header. Generate your API key from the Dashboard → API tab (available on all paid plans).

Example Request

curl -H "Authorization: Bearer smbk_your_api_key_here" \
  https://smbsalesboost.com/api/v1/me

API Key Format

All API keys are prefixed with smbk_ for easy identification.

Security Best Practice

Never expose your API key in client-side code, public repositories, or browser requests. Store it securely as an environment variable.


Rate Limits

API requests are rate-limited to ensure fair usage. Rate limit information is included in response headers.

Rate Limit Tiers

General Endpoints
600 requests per minute per API key
Export Endpoints
5 requests per minute per API key
AI Endpoints
5 requests per minute per API key

Integration endpoints (/api/v1/integrations) also share one budget per account of 60 requests per minute, counted together with the dashboard's Integrations tab and every API key of the account (REST and MCP). Starting a CRM connection is also limited to 30 per minute per account.

Starting an AI keyword generation (POST /api/v1/ai/generate-keywords) is also limited to 20 per hour per account, counted together for every API key of the account (REST and MCP).

Matching a new businessType to categories with AI is limited per account to 30 new business types an hour and 200 a day, counted separately for previews and category lookups and for searches and exports, and to 2 new business types at a time (business types matched before do not count). Over a limit, or while AI matching is busy, the categories are matched by name.

MCP requests (POST /mcp) are limited to 120 per minute per API key. Requests without a valid API key are limited to 60 per minute per client IP address, and one client IP address can send at most 1,200 MCP requests per minute in total, whatever keys it uses. Each MCP tool call also counts against the limits of the REST endpoints it calls.

A refused MCP request gets HTTP 429 with a Retry-After header and a JSON-RPC error with code -32029, whose data names the limit that was hit: scope (for example api_key or ip), limit, windowSeconds and retryAfter. Allowed MCP requests carry the X-RateLimit-* headers of their limit.

Rate Limit Headers

HeaderDescription
X-RateLimit-LimitMaximum requests allowed in the window
X-RateLimit-RemainingRemaining requests in the current window
X-RateLimit-ResetWhen the window resets, as an ISO 8601 date-time
Retry-AfterSeconds to wait before retrying (only on 429)

The X-RateLimit-* headers describe the most specific limit that applies to the request: the 5 per minute limit on export and AI endpoints, the per-account keyword generation limit (20 per hour) when POST /api/v1/ai/generate-keywords starts a generation, the per-account integration budget on integration endpoints (60 per minute, or 30 on CRM connect), and the 600 per minute limit on every other request made with an API key. On a rate-limit 429 (error Rate limit exceeded) they describe the limit that was hit. The 600 per minute limit still counts every request made with an API key. The purchase endpoints, which take no API key, have their own per-IP limits instead (see Programmatic Purchase).

429 Responses

A rate-limited request gets {"error": "Rate limit exceeded", "message": "...", "retryAfter": 42}, where retryAfter matches the Retry-After header. The lead search endpoints (GET /api/v1/leads, GET /api/v1/leads/preview, POST /api/v1/leads/export and the email schedule trigger) can also return 429 lead_query_capacity_busy with Retry-After: 10 when search capacity is busy. Both 429s carry the X-RateLimit-* headers, so tell them apart by the body's error field (Rate limit exceeded or lead_query_capacity_busy). Both are refused before anything is charged, so retry after the delay.


Long-Running Requests

Every request reaches the API through an edge network that gives our server about 100 seconds to start answering. Work that can take longer therefore runs as a background job, and your request never has to stay open while it runs. This applies to POST /api/v1/leads/export, POST /api/v1/email-schedules/:id/trigger, POST /api/v1/ai/suggest-categories and the three Lead Export History POST endpoints (refresh, refresh-and-export and re-export). Input errors (4xx) still answer at once.

  1. Send the request as usual. If the work finishes within about 75 seconds you get the normal answer, exactly as before. The answer always starts within about 90 seconds of the request's arrival.
  2. Otherwise the answer is 202 Accepted with a jobId, a Location header and a statusUrl. The work keeps running.
  3. Poll GET /api/v1/jobs/{jobId} with the same API key (any key of the same account works) until it no longer answers 202. It then returns exactly what the original request would have returned: the same status code, headers and body, including an error answer.
HTTP/1.1 202 Accepted
Location: /api/v1/jobs/3f2a9c1e5b7d4a608e1f2c3b4d5e6f70
Retry-After: 5

{
  "jobId": "3f2a9c1e5b7d4a608e1f2c3b4d5e6f70",
  "status": "running",
  "kind": "api_leads_export",
  "phase": "searching",
  "progress": { "done": 2000, "total": 7000, "label": "Loading leads" },
  "elapsedMs": 75012,
  "statusUrl": "/api/v1/jobs/3f2a9c1e5b7d4a608e1f2c3b4d5e6f70",
  "retryAfterSeconds": 5,
  "message": "Still working in the background. GET statusUrl with the same API key until it no longer answers 202; it then returns exactly what this request would have returned (kept up to 60 minutes after the job finishes, 24 hours for a schedule send). Poll statusUrl instead of repeating this request: a repeat with the same Idempotency-Key header returns this same job, a repeat without one may run the work again."
}
curl -H "Authorization: Bearer smbk_your_api_key_here" \
  -H "Prefer: wait=30" \
  https://smbsalesboost.com/api/v1/jobs/3f2a9c1e5b7d4a608e1f2c3b4d5e6f70

Headers

HeaderDescription
Prefer (request)wait=N (0-75 seconds, counted from when the request arrived) answers within N seconds: the finished result, or 202. respond-async answers 202 at once. Default: up to 75 seconds. Use a shorter wait when your HTTP client times out sooner. On GET /api/v1/jobs/{jobId}, wait=N (0-60) waits for the job before answering 202 again (default: answer at once).
Idempotency-Key (request)8-64 letters, numbers, underscores or dashes, accepted by every endpoint above. Send one with every export and schedule trigger. Repeating the request with the same key never runs it again: it returns the running job, its stored answer, or 410 job_result_expired once that answer is no longer kept. The key stays with the job for up to about 25 hours after it finished (about 48 hours for a schedule trigger); a server restart forgets it. An answer of 409, 429 or 503, and a 402 insufficient_credits from an export, does not use up the key, so a retry with it runs the request. Every other answer comes back again for the same key: after an error answer, or when you change any argument, use a new key. The same key with a different request answers 409 idempotency_key_reused. Without a key, an identical request returns the job that is still running.
Location, Retry-AfterOn a 202: where to poll, and how many seconds to wait before the next poll
X-SMBSB-Job-Id, X-SMBSB-Job-StatusThe job id is on every answer from a job. The status is sent on 202 answers (running) and on GET /api/v1/jobs/{jobId} answers (completed, failed or, on a 410, expired); a request that finished within the wait carries X-SMBSB-Job-Id only.
Preference-AppliedEchoes the Prefer value that was honored

How Long Results Are Kept

Results are normally kept 60 minutes after a job finishes (24 hours for a schedule trigger). They can be dropped sooner under heavy load, and each account keeps at most 500 finished jobs (the oldest go first). After that GET /api/v1/jobs/{jobId} answers 410 job_result_expired for about a day, with a message that says where to look, and then 404 job_not_found. Never repeat an export or a schedule trigger just because its answer is gone: check what it already did first. Export files stay in Export History for 90 days and the leads are in Lead Export History; a re-run with maxCredits 0 returns leads you already paid for at no charge, while a normal re-run picks new leads first and charges for them. For a schedule send, check lastSent in GET /api/v1/email-schedules. A server restart interrupts running jobs and forgets kept answers and keys: what they already saved stays saved, and leads you already received are never charged twice.

Limits

Each account can run up to 3 exports, 5 schedule triggers, 3 category suggestions and 2 of each Lead Export History request at once; more answer 429 job_capacity_busy with Retry-After: 30. The request itself still counts toward its endpoint's rate limit (a retry that returns a running job too), while polls count only toward the normal limit of 600 requests per minute per key (see Rate Limits).

MCP

Over MCP, the same work returns {status: "running", jobId} and the get_job tool fetches the result (see MCP Server). The full contract is in the OpenAPI spec (tag Background Jobs).


User Profile

Manage your user profile including subscription details and account settings.

Endpoints

GET /api/v1/me
Retrieve your user profile including subscription details and account settings.
PATCH /api/v1/me
Update your profile. Only the fields provided will be updated. Allowed fields: firstName, lastName, companyName, companyWebsite.

Response Fields

The user profile response includes: id, email, firstName, lastName, companyName, companyWebsite, smbType (always "other", the Main database), subscriptionPlan, subscriptionStatus, isSubscribed, trial, freeLeadsUsed, onboardingCompleted, targetCategories, targetLocations, monthlyCredits, monthlyCreditsUsed, monthlyCreditsRemaining, permanentCredits, totalCreditsRemaining, and creditOverageRate, plus the read-only trialExtension (the one 14-day free-trial extension) and billingPause (the one-month billing pause: phase, the skipped renewal, when billing resumes) blocks. Both are offered in the dashboard only.


Enrichments

Enrich a list of website URLs you already have. Each URL is checked against our database first; anything we do not already have is fetched live. We never add the URLs you submit, or the results we find for them, to our lead database, which we keep curated so it stays clean and focused on high-quality leads.

What each URL costs

1 credit
A URL in our database that you have not bought before, including its buying signals and category enrichments.
0.1 credit
A URL we do not have and fetch live for you.
0 credits
A URL you have already exported, one we got no data for, or one without the contact details you asked for.

A URL found in our database is never fetched live, so lowering databaseMatchPercent cannot be used to buy database records at the live price.

Starting a run

POST /api/v1/enrichments with { "urls": [...] }, up to 100,000 URLs after deduplication by host. Send the full URL including any path - a deep link often carries better contact data than the root.

maxCredits
Most credits this run may spend. Omit to allow your whole available balance, which is the default.
databaseMatchPercent
0-100, default 100. Caps what share of maxCredits may go to NEW database matches. Unused database budget flows to live fetching, never the reverse. Records you have already paid for are always returned free and are not affected by this.
contactTypes
phone, email or either: the minimum contact details a result must carry to be delivered and charged. phone returns every result with a phone number, including those that also have an email; email returns every result with an email, including those that also have a phone number. Default either, meaning a phone number OR an email - the widest setting, not the most restrictive.
emailResults
Email you a download link when the file is ready. Defaults to your account setting. The file is always downloadable, so there is no flag to disable the download.

Runs are asynchronous

Submitting returns a run id immediately and a large list can take hours. Poll GET /api/v1/enrichments/:id until status is completed or partial, then call GET /api/v1/enrichments/:id/download for a short-lived presigned URL.

Credits are charged in two stages - database matches when they are matched, live results when the file is published - so credits.final tells you whether the total is settled.

Every URL is accounted for

The file has one row per URL you submitted, each with a status column. Only the first two cost anything.

matched_paid
In our database, new to you. 1 credit.
scraped
Fetched live. 0.1 credit.
matched_free
In our database, you already bought it. Free.
scrape_failed
No data came back for it - unreachable, or nothing usable found. Free.
skipped_db_budget
A database match outside your credit limit. Free.
skipped_scrape_budget
A live result outside your credit limit. Free.
matched_no_contact
Matched, but without the contact type you asked for. Free.
scraped_no_contact
Fetched, but without the contact type you asked for. Free.
skipped_invalid
Not a usable URL. Free.

Leads

Search, filter, and export leads from our database. Supports keyword filtering, location filtering, industry filtering, and pagination.

Lead Database

Every lead comes from the Main database (API value other), which covers small and medium businesses of all types. Contact info includes both phone numbers and email addresses. The database parameter is optional. Every value is accepted and resolves to the Main database, so existing integrations keep working unchanged.

How Search Works: Two-Phase Query Model

Phase 1 - Include (OR Logic)

All positive keywords and include terms are combined with OR logic. A lead matches if any positive keyword matches in any of the OR group search columns.

Default OR group columns
Registered URL, Crawled URL, Company Name, Categories (AI Enrichment)

Phase 2 - Exclude (AND Logic)

Negative keywords are checked against the same columns as positive keywords. A lead is excluded if any negative keyword matches in any of those columns.

URL Space-to-Wildcard

For URL columns, spaces in search terms are automatically replaced with % wildcards. For example, "dental clinic" becomes %dental%clinic% to match URLs like example.com/dental-clinic.

AI Category Estimation

Leads in the Main database are progressively enriched by AI with estimated business type categories. Each lead may include an aiCategoryEstimation field containing an array of 1-3 category names, or null if not yet classified.

Endpoints

GET /api/v1/leads
Search and filter leads. Requires a search term on company name, category, registered URL or crawled URL (businessType, categories, or a name or website include term or positive keyword of 3+ characters on one of those columns; shorter ones still filter, and a description term alone is not enough). businessType alone is enough for a kind of business; adding keywords or include terms replaces the name and website matches that follow the category matches. While another export, search or push of your account is still recording its charge, the search waits up to 30 seconds, then answers 429 charge_in_progress (Retry-After: 30) with nothing charged. limit (max 1000, a larger value is lowered to 1000), maxResults and maxCredits must be whole numbers when sent (limit and maxResults 1 or more, maxCredits 0 or more): a value that is present but is not one (an empty value, a negative number, a decimal, text) is refused with 400 bad_request and never means no cap.
GET /api/v1/leads/preview
Preview leads with masked contact info (masked, not hashed: for example (512) ***-**42 and hel*@domain.com). Accepts the same filters as GET /api/v1/leads, including the contact term filters (emailPrimaryInclude, phonePrimaryInclude and the rest) and the company-column include, exclude and empty filters. Does not consume credits. Leads you already purchased come back unmasked (contactExported: true); pass excludePurchased=true to return only not-yet-purchased leads.
POST /api/v1/leads/export
Export filtered leads to CSV, JSON, or XLSX. Subject to export rate limits. Supports credit-optimized ordering via maxCredits and maxResults parameters. Pass excludePurchased=true to export only not-yet-purchased leads. By default each file in the response is a download link: a per-file exportId plus downloadUrl (/api/v1/export-history/{id}/download), kept in Export History for 90 days. Pass inline=true (body field or ?inline=true) to also get each file's data (plain UTF-8 text for csv and json files, base64 for xlsx files) while all files of the export together are at most 10 MB; past that the answer has links and inlineSkippedReason too_large. XLSX files can hold up to Excel's own limit of 1,048,576 rows per sheet (counting the header and any blank lead-in rows), more than any export of at most 100,000 leads; past it the export returns 400 export_too_large before anything is charged or recorded. Splitting is optional. In CSV files a cell that a spreadsheet would run as a formula (it starts with =, +, -, @, a tab or a carriage return, or a part of it after a semicolon or a tab starts with =, +, - or @) is written with a single quote in front of that part, for example '=SUM(A1); plain numbers and phone numbers are not changed, and XLSX and JSON files carry the text unchanged. An export that is not finished within about 75 seconds answers 202 Accepted with a jobId and keeps running: the charge, your lead export history and the Export History files are written whether or not you collect the response. Poll GET /api/v1/jobs/{jobId} for the full response, kept for up to 60 minutes after the export finishes (then 410 job_result_expired for about a day, then 404 job_not_found; the files stay in Export History for 90 days). Send an Idempotency-Key header with each export: repeating it with the same key returns the same job instead of exporting again. To get the result of a running export poll the job, never send the export again: a new export after this one finished (or with other arguments) picks new leads first and charges for them; an identical request while it runs returns the same job. If the answer is lost, check Export History first; a re-run with maxCredits 0 returns leads you already paid for at no charge. A 402 insufficient_credits does not use up the key: buy credits, then retry. A 429 charge_in_progress (Retry-After: 30) means another export, lead search or push of your account was still recording its charge; nothing was charged. See Long-Running Requests.
GET /api/v1/categories
Lists AI business categories with the number of businesses in each (nationwide, refreshed daily). With query (plain words, 2 to 80 characters) it returns picked, the 1 to 4 categories that businessType would use for the same words, and categories, further matching names. Without query it lists the largest categories. limit 1 to 50 (default 20), offset from 0. Uses no credits.
GET /api/v1/leads/other/schema-types
Returns a sorted list of all distinct website schema types found in the Main database. Use these values with the websiteSchemaFilter parameter on GET /api/v1/leads. The list is kept up to date in the background, so this normally answers at once; right after a server restart it waits up to 55 seconds (Prefer: wait=N, counted from the request's arrival, sets a shorter wait) and can then answer 503 schema_types_warming with Retry-After: 60 while the list is rebuilt.

Category-First Search

businessType: plain words for the kind of business to find, for example dental practices (2 to 80 characters; not a website schema type; no place names). The API matches it to 1 to 4 AI categories and returns those businesses first. On searches and previews, businesses whose company name or crawled website matches follow them. An export adds those name and website matches only when its category matches are fewer than maxResults or maxLeads, never past its row limit; an export without either delivers category matches only. An export whose AI category matching has not finished answers 503 service_unavailable (retryable, with Retry-After) before anything is searched or charged: repeat it. To keep exactly the same categories on later pages and in the export, keep businessType and add the categorySearch.categoriesUsed names as categories.

categories: 1 to 4 exact AI category names from GET /api/v1/categories, as a JSON array. Searched first, instead of the categories matched from businessType. Alone, the search returns category matches only; with positiveKeywords or include terms, those matches follow the category matches.

redirectFilter: no (default): only businesses whose registered website address does not redirect to another site. yes: only businesses whose address redirects. any (all and both are accepted too): both. Values are not case-sensitive; any other value returns 400 invalid_redirect_filter. Leaving the parameter out means no (it used to mean both).

With businessType or categories, answers carry categorySearch (the categories used, how they were chosen, categoryTotal and the name and website matches in extraMatches) and each lead carries matchedBy. The order is: category matches (new ones first), then name and website matches (new ones first); maxCredits pays for new category matches before new name and website matches.

Key Parameters

businessType, categories, positiveKeywords (a search term on company name, category or website is required), negativeKeywords, orColumns, stateInclude, stateExclude, cityInclude, cityExclude, zipInclude, zipExclude, streetInclude, streetExclude, minNumLocations, maxNumLocations, minRatingValue, maxRatingValue, minReviewCount, maxReviewCount (numeric ranges), buyingSignalTypeFilter, lastBuyingSignalFrom, lastBuyingSignalTo, sortBy, sortOrder, page, limit, database, and various column-specific include/exclude terms. Empty/non-empty filters per column are also supported via streetEmptyFilter, cityEmptyFilter, stateEmptyFilter, zipEmptyFilter plus phonePrimaryEmptyFilter, phoneTotalEmptyFilter, emailPrimaryEmptyFilter, emailTier1EmptyFilter through emailTier6EmptyFilter, descriptionEmptyFilter, and the new firmographic and technology columns such as employeeCountEmptyFilter, foundingDateEmptyFilter, isChainEmptyFilter, priceRangeEmptyFilter, legalNameEmptyFilter, industryNaicsEmptyFilter, dunsEmptyFilter, founderEmptyFilter, founderEmailEmptyFilter, founderPhoneEmptyFilter, openingHoursEmptyFilter, areaServedEmptyFilter, offersEmptyFilter, brandEmptyFilter, sloganEmptyFilter, logoUrlEmptyFilter, socialProfilesEmptyFilter, platformEmptyFilter, bookingOpsCrmSoftwareEmptyFilter, reputationChatSoftwareEmptyFilter, marketingEmailSoftwareEmptyFilter, adPixelsEmptyFilter, paymentFinancingSoftwareEmptyFilter, emailPrimaryMxEmptyFilter, emailDomainMxEmptyFilter, emailSecurityEmptyFilter, addressSourceEmptyFilter. The firmographic and technology columns from employeeCount through paymentFinancingSoftware also support include/exclude term filters (e.g. employeeCountInclude/employeeCountExclude, founderEmailInclude/founderEmailExclude); founder email and phone values stay masked until a lead is unlocked or exported. The Email Primary Provider, Website Email Provider, Website Email Security, and Address Source columns have no include/exclude terms; they use exact-value multi-choice matching via emailPrimaryMxValues, emailDomainMxValues, emailSecurityValues, and addressSourceValues - each a JSON array of exact values matched with IN semantics. Number of Job Postings uses minOpenPositions/maxOpenPositions, and the short description uses descriptionIncludeTerms/descriptionExcludeTerms. Each empty filter accepts 'any' | 'only_empty' | 'exclude_empty'.

Buying Signal Type Filtering

Every lead carries a Buying Signal Type list describing why its Last Buying Signal timestamp last changed. Filter on it with buyingSignalTypeFilter (comma-separated values). Values: Newly Added, Phone Primary, Total Phones, Email Primary, Tier 1 Emails, Tier 2 Emails, Address Full, plus per-source social profile signals - Instagram, LinkedIn, Facebook, YouTube, TikTok, X (Twitter), Google Maps, Yelp, Pinterest, and Other Social - recorded when a social profile for that source is added or changed for a business. Social profile changes also bump the lead's Last Buying Signal timestamp, so recently-active businesses surface under lastBuyingSignalFrom / lastBuyingSignalTo date filters. Last Buying Signal is also the default sort (sortBy=lastBuyingSignal).

The former names updateReasonFilter, lastUpdatedFrom, lastUpdatedTo and sortBy=lastUpdated are still accepted (ignored when the new name is also sent), and lead responses still include a deprecated Last Updated key with the same value as Last Buying Signal. Default-format export files (POST /api/v1/leads/export, Export History downloads, email schedule attachments) name these columns Last Buying Signal and Buying Signal Type in their CSV/XLSX headers and JSON keys; they no longer have Last Updated / Update Reason columns. To keep the old header names, export with a custom export format (formatId) that maps lastUpdated and lastUpdatedReason to the names you need.

Credit-Optimized Export Parameters

The export endpoint supports additional parameters for controlling credit usage:

maxLeads
Cap total leads exported, like maxResults (when both are set, the smaller one applies). The response's overflowCount says how many matching leads were left out by the maxLeads or maxResults cap (the smaller one) or because credits ran short. Nothing is kept for a later export: to export only leads you have not received yet, set excludePurchased to true.
maxResults
Cap total results returned (both new and previously-exported leads). New leads are prioritized first, then previously-exported leads fill remaining slots.
maxCredits
Cap credits spent on this export. Only new (credit-consuming) leads count toward this cap. The export is also capped at your spendable balance, so the effective cap is the smaller of the two. Set to 0 to only receive previously-exported leads at no credit cost.
excludePurchased
When true, export only leads you have not purchased yet (already-exported leads, matched by lead id or shared contact point, are skipped). Credit and dedup math are unchanged. Default false.

On credit plans, GET /api/v1/leads and POST /api/v1/leads/export always return leads in credit-optimized order: new leads (credit-consuming) sorted first, then previously-exported leads, each group sorted by Last Buying Signal descending (or your custom sort). New leads are cut to the smaller of maxCredits and your spendable balance (credit balance plus any overage-budget headroom); when the balance was the limit the response has the X-Credits-Capped: true header, so omitting maxCredits caps the request at your balance instead of failing. 402 insufficient_credits only happens if a concurrent request spends the balance between the check and the charge.

What Costs a Credit

Each new lead returned by GET /api/v1/leads or POST /api/v1/leads/export costs 1 credit. Charging is sticky: a lead you have already received through any channel (dashboard, API, MCP or email schedule) is never charged again, even if its data changed later, and a new lead that shares a primary phone or primary email with a lead you already received is also free.

Purchased-Lead Reveal on Preview

The preview endpoint reveals leads you have already purchased: any preview lead that matches a prior export (by lead id or by a shared phone or email contact point) is returned unmasked with contactExported: true, the same as on the dashboard. Leads you have not bought stay masked. Pass excludePurchased=true on preview to return only not-yet-purchased leads. A shared contact point here includes the lead's Total Phones and Email Tier values, while charging compares primary phone and primary email only, so a lead revealed only through one of those lists can still cost a credit.


Filter Presets

Save and manage reusable filter configurations. Create, update, delete, and list your saved filter presets for quick access to your most-used search criteria.

Endpoints

GET /api/v1/filter-presets
List all your saved filter presets. Each preset has usedBySchedules: every email schedule (id, name) that uses it, paused ones too, because deleting the preset also deletes them (null when it could not be checked); and schedulable: whether an email schedule can run the preset (null when unknown).
POST /api/v1/filter-presets
Create a new filter preset. Requires a name and filters object.
DELETE /api/v1/filter-presets/:id
Delete a filter preset by ID. This also deletes every email schedule that uses the preset: check its usedBySchedules in GET /api/v1/filter-presets first.

Preset Object

Each preset includes: id, name, filters (containing positiveKeywords, stateInclude, etc.), and createdAt timestamp.


Keyword Lists

Manage keyword lists for targeted lead searching. Create lists of include and exclude keywords to refine your lead searches and automate filtering.

Endpoints

GET /api/v1/keyword-lists
List all your keyword lists. Each list has usedBySchedules: the email schedules (id, name) that send on their own (active, or paused for credits) and send today whose filter preset uses the list, so you can see which schedules a delete would stop.
POST /api/v1/keyword-lists
Create a new keyword list. Requires name (trimmed, 1-255 characters), type (positive/negative) and keywords (a non-empty array of strings); sourceCategories is optional (an array of strings, or null). Any other field is ignored, and invalid input returns 400 validation_error.
PUT /api/v1/keyword-lists/:id
Update an existing keyword list. While auto-refine is on, or a refinement is running, for the list or its paired list, a change of keywords, type or sourceCategories answers 409 refinement_in_progress and nothing is changed: turn auto-refine off first (POST /api/v1/ai/auto-refine/disable) or wait until GET /api/v1/ai/auto-refine/status shows autoRefineEnabled false. A body with only name (a rename) is always allowed.
DELETE /api/v1/keyword-lists/:id
Delete a keyword list by ID. While auto-refine is on, or a refinement is running, for the list or its paired list, the delete answers 409 refinement_in_progress: turn auto-refine off first (POST /api/v1/ai/auto-refine/disable). An email schedule whose filter preset uses the list stops sending until the preset is saved again (without the list) and the schedule uses the new preset; meanwhile its trigger answers 400 preset_not_schedulable. GET /api/v1/keyword-lists shows which schedules use a list (usedBySchedules) before you delete it, and GET /api/v1/email-schedules shows a stopped schedule's presetProblem.

Keyword List Object

Each list includes: id, name, type (positive or negative), keywords array, and createdAt timestamp. The list read also has usedBySchedules (see above).


Email Schedules

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 a message saying 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-presets shows schedulable). The check runs on every read, so the field clears as soon as the preset can be applied. Each schedule also has optedOutRecipients, 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), and optOutProblem: null, or an object with a message when 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 400 preset_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 400 preset_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_schedulable otherwise). The response carries optedOutRecipients and optOutProblem for 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 an Idempotency-Key header: 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 409 schedule_run_in_progress means 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 400 preset_not_schedulable naming 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 in optedOutRecipients, any letter case), never in the URL. The call is idempotent: the answer is {"data": {"removed": true, "scheduleId": 1, "message": "..."}}, with removed false 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 400 bad_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.


Export Formats

Customize which columns are included in your lead exports. Create and manage export format templates for consistent data delivery. Supports CSV, JSON, and XLSX file types.

Endpoints

GET /api/v1/export-formats
List all your export format templates.
GET /api/v1/export-formats/:id
Get a specific export format by ID.
POST /api/v1/export-formats
Create a new export format with field mappings.
PATCH /api/v1/export-formats/:id
Update an existing export format.
DELETE /api/v1/export-formats/:id
Delete an export format by ID.
POST /api/v1/export-formats/:id/set-default
Set an export format as the default.

Export Format Fields

Each format includes: id, name, fileType, startRow, fieldMappings, isDefault, splitFiles, splitMode, maxRowsPerFile, numberOfParts, includeTotal, includeHeaders, databaseType (always "other", the Main database), combinedAssigneeColumnName, combinedFileNameColumnName, createdAt.

File Splitting Options

max_rows
Split by max rows per file (requires maxRowsPerFile, min 10)
equal_parts
Split into equal parts (requires numberOfParts, min 2)
parts_max_rows
Number of parts with max rows each (requires both)

XLSX files hold up to Excel's own 1,048,576 rows per sheet (counting the header and any blank lead-in rows), more than any export of at most 100,000 leads, so splitting is optional.


Export History

View your past exports with details including date, row count, filters used, and export format. Each export file is kept for 90 days and can be downloaded again at any time in that window. After that, re-export the leads from your lead-level export history at no credit cost.

Endpoints

GET /api/v1/export-history
List your export history with file details including fileName, fileType, leadCount, fileSize, formatName, databaseType, createdAt, expiresAt (when the file stops being downloadable), downloadAvailable, and unavailableReason.
GET /api/v1/export-history/:id/download
Download a previously exported file by its history ID. Returns the raw file. Files can be downloaded for 90 days after the export; an expired or unavailable file returns 410.
GET /api/v1/export-history/:id/download-url
Get a short-lived direct download link for the file (valid for 15 minutes). Fetch the link without an Authorization header.

Lead Export History

Lead Export History has one entry per lead you have received, through any channel, with a snapshot of the lead's data from its most recent export or refresh. Refreshing and re-exporting these leads is always free: no credits are charged for leads you already received, even if their data has changed since.

Sticky export rule: once a lead is in your export history, it is free to re-export or refresh at any time. Credits are charged only for leads that are new to you (see Credits & Subscription).

Endpoints

GET /api/v1/lead-export-history
List your entries, newest export first, with pagination and optional filters. Each entry is one lead, with the time and channel of its most recent export and its stored snapshot (fields below). An invalid limit, offset or date returns 400.
GET /api/v1/lead-export-history/ids
Every tracking id matching the filters (databaseType, dateFrom, dateTo, exportMethod), newest first, with no pagination: {"data": [1001, 1002], "totalCount": 2}. Use it to select entries for a bulk refresh or re-export.
POST /api/v1/lead-export-history/refresh
Replace the stored snapshots with the latest live data. No credits charged. Send trackingIds or a filters object (databaseType, dateFrom, dateTo, exportMethod) to refresh every matching entry, at most 5,000 entries per request (a filters object that matches more than 5,000 entries, or none, returns 400). An invalid filters value also returns 400 bad_request: a dateFrom or dateTo that is not a valid date with a year from 1 to 9999 (for example 'filters.dateFrom must be a valid date (e.g. 2026-08-18)'), or a databaseType or exportMethod that is not a string. When a trackingIds array is sent, the filters are ignored and not checked. Returns {"data": {"results": [...], "refreshed": 2}}. In each result, changed says whether the lead was updated since its snapshot (by its last-updated date), changedFields lists the changed fields (kept until a refresh-and-export clears them), and refreshed is false for an id that is not in your history or a lead that is no longer in the database. A refresh that finds newer data for a lead sends lead.updated to your integrations, unless the lead is on your export blacklist. Repeated tracking ids are refreshed once.
POST /api/v1/lead-export-history/re-export
Download the selected entries again as one file built from their stored snapshots (live data only for an entry that has no snapshot; nothing is refreshed). No credits charged. trackingIds is required (up to 5,000); formatId is optional (one of your export formats; omitted or not found means a CSV with the default columns). Returns the file itself, not a JSON envelope. A file that is not ready within about 75 seconds comes with a 202 Accepted and a jobId instead; pick it up with GET /api/v1/jobs/{jobId}, where it is kept for up to 60 minutes after it is ready (it is never saved to Export History; after that, run the free re-export again).
POST /api/v1/lead-export-history/refresh-and-export
Refresh the snapshots with live data, clear their changed-field markers, then download them as one file. No credits charged. Send trackingIds or a filters object (at most 5,000 entries, with the same 400 for an invalid filters value, as for refresh), plus an optional formatId (as for re-export). Everything is checked before any entry changes: a 400 or 404 response leaves the entries unchanged (snapshots, leadLastUpdated and lastChangedFields). Like refresh, it sends lead.updated to your integrations for each lead it finds newer data for, unless the lead is on your export blacklist. Returns a file like re-export; its name starts with refreshed-export-. A file that is not ready within about 75 seconds comes with a 202 Accepted and a jobId instead; pick it up with GET /api/v1/jobs/{jobId}, where it is kept for up to 60 minutes after it is ready (it is never saved to Export History). The snapshots are refreshed when the job finishes; the changed-field markers are cleared only when the file is delivered to you, so a file you never collect leaves them set. After the 60 minutes, run this request again (it is free) or get the same rows free with re-export.

List Parameters

ParameterDescription
limitNumber of entries per page (1-200, default 50)
offsetPagination offset (default 0)
databaseTypeFilter by database: 'other' (the Main database). Any value is accepted and resolves to the Main database. Omit to list every export.
dateFromOnly entries whose most recent export is on or after this date (YYYY-MM-DD)
dateToOnly entries whose most recent export is on or before this date (YYYY-MM-DD; the whole day counts)
exportMethodFilter by the channel of each lead's most recent export: 'dashboard', 'api' (REST API and MCP), 'email_schedule', 'crm_push' (pushed to an integration from the dashboard, with POST /api/v1/integrations/:id/push-lead or with the MCP tool push_lead_to_integration) or 'enrichment' (a database match paid for in an enrichment run)

Example Response

{
  "data": [
    {
      "id": 1001,
      "userId": "usr_abc123",
      "leadId": 42,
      "databaseType": "other",
      "exportedAt": "2026-05-01T10:00:00.000Z",
      "leadLastUpdated": "2026-04-28T08:00:00.000Z",
      "exportMethod": "crm_push",
      "leadSnapshot": {
        "wCompanyName": "Acme Roofing",
        "wPhonePrimary": "(555) 123-4567",
        "wEmailPrimary": "[email protected]"
      },
      "lastChangedFields": null,
      "lead": {
        "wCompanyName": "Acme Roofing",
        "wPhonePrimary": "(555) 123-4567",
        "wEmailPrimary": "[email protected]"
      }
    }
  ],
  "totalCount": 245,
  "limit": 50,
  "offset": 0
}

Entry Fields

Notes


Account Settings

Every account uses the Main database (API value other). The database settings endpoint is kept for backward compatibility with existing integrations.

Endpoints

GET /api/v1/settings/database
Get the lead database your account uses. currentDatabase is always "other" (the Main database).

Response Fields

currentDatabase (always "other"), canSwitch (boolean), daysRemaining (number), lastSwitchedAt (ISO timestamp or null).


AI Features

Access AI-powered tools including keyword suggestions, category recommendations, and website analysis. Leverage machine learning to optimize your prospecting strategy.

Rate limit: AI endpoints are limited to 5 requests per minute. Starting a keyword generation is also limited to 20 per hour per account.

Endpoints

POST /api/v1/ai/suggest-categories
Get AI-powered category suggestions based on your business type and target market. Requires companyName, companyDescription, and productService. Nothing is charged. When the suggestions are not ready within about 75 seconds (a website analysis can take a while) the answer is 202 Accepted with a jobId; GET /api/v1/jobs/{jobId} then returns this response (normally kept 60 minutes after it finishes; after that, run the request again for free).
POST /api/v1/ai/generate-keywords
Start a new AI keyword generation for up to 3 categories you pass, or for your account's target categories (1 to 3). It adds new keyword lists and never changes or deletes existing ones; several generations can run at once. Asynchronous: the answer has a keywordJobId to follow in GET /api/v1/ai/keyword-status. Returns 400 no_target_categories when there are no categories to use.

Category Suggestion Parameters

Required: companyName, companyDescription, productService. Optional: companyWebsite, excludeCategories. Suggestions are drawn from the Main database's categories.

Keyword Generation Parameters

All optional, as a JSON body: categories (up to 3 names, any categories, also ones that are not among your account's target categories; left out, your account's target categories are used when there are 1 to 3, and with more the call returns 400 bad_request listing them), keywordType (both, positive or negative; default both), and companyDescription, productService, additionalContext and businessesToAvoid for this generation only (default: your account settings; businessesToAvoid adds to your account's list). Nothing is saved to your account. Each call adds one positive and one negative list per category with auto-refine turned on; existing keyword lists, keywords and account settings are never changed or deleted.


Export Blacklist

Manage your export blacklist to keep specific domains out of your exports and out of integration pushes: pushing a blacklisted database lead (POST /api/v1/integrations/:id/push-lead with a leadId, or the MCP tool push_lead_to_integration) returns 400 before anything is charged or sent, and a Lead Export History refresh sends no lead.updated for a blacklisted lead. Your own data pushed with {"lead": {...}} is not checked. Add and remove entries to prevent duplicate outreach.

Endpoints

GET /api/v1/export-blacklist
List all your blacklist entries with entryType (domain), value, and createdAt.
POST /api/v1/export-blacklist
Add entries to your export blacklist. Requires an entries array with entryType and value for each entry.
DELETE /api/v1/export-blacklist/:id
Remove a blacklist entry by ID.

Entry Types

domain
Block all leads from a specific domain (e.g., competitor.com)

Error Handling

All errors follow a consistent format with an error code and a human-readable message. Validation errors (400 validation_error, or 400 invalid_request from POST /api/v1/enrichments) can also include a details array with one entry per problem, each with a path (the field, as an array of keys such as ["status"]) and a message.

Error Response Format

{
  "error": "bad_request",
  "message": "No valid fields provided. Allowed: firstName, lastName, companyName, companyWebsite"
}

HTTP Status Codes

StatusMeaning
200OK - Request succeeded
201Created - Resource created successfully
202Accepted - a long-running request is still running in the background: poll GET /api/v1/jobs/{jobId} (see Long-Running Requests), which then returns exactly the original response
400Bad Request - Invalid parameters or missing required fields
401Unauthorized - Invalid or missing API key
402Payment Required - insufficient_credits: lead searches and exports are capped at your spendable balance, so they return it only when a concurrent request spent the balance first; POST /api/v1/integrations/:id/push-lead returns it whenever a lead that is new to you cannot be paid from your balance or overage budget. Also a declined card on a purchase
403Forbidden - no active paid subscription (every paid plan includes API access, also during the free trial), or an action your account cannot take right now, such as turning on auto top-up or the overage budget during a free trial
404Not Found - Resource does not exist (job_not_found on GET /api/v1/jobs/{jobId}: an unknown id, a job that finished more than about a day ago, or a job a server restart interrupted; check what it already did before running anything again)
409Conflict - the request conflicts with the current state (for example integration_exists, integration_limit, conflict when an integration changed while your update was being applied, or a plan change still in progress). On long-running requests also idempotency_key_reused (the Idempotency-Key was already used with a different request) and, on the email schedule trigger, schedule_run_in_progress (this schedule, or another schedule of your account, is being sent right now; nothing was sent)
429Too Many Requests - Rate limit exceeded, or lead_query_capacity_busy (tell them apart by the body's error field; both carry the X-RateLimit-* headers); retry after the Retry-After header. Long-running requests can also answer job_capacity_busy (too many running at once, Retry-After: 30), and GET /api/v1/leads and POST /api/v1/leads/export charge_in_progress (another export, search or push of your account is still recording its charge, Retry-After: 30); nothing was charged or sent
410Gone - job_result_expired: the long-running request finished, but its answer is no longer kept (answered for about a day, then 404 job_not_found); the message says where to look, so do not simply repeat the request
500Internal Server Error - Something went wrong on our end (job_timeout when a long-running request ran past its time limit)
502Bad Gateway - provider_error: a connected CRM's API failed (integration field and pipeline endpoints)
503Service Unavailable - temporary; retry after the Retry-After header (except provider_unavailable on integration endpoints, which has no Retry-After and is not temporary). Includes schema_types_warming on GET /api/v1/leads/other/schema-types right after a server restart (Retry-After: 60)

Long-Running Requests

Exports, schedule triggers, category suggestions and the three Lead Export History POST endpoints can answer 202 Accepted with a jobId and finish in the background. See Long-Running Requests for polling GET /api/v1/jobs/{jobId}, Idempotency-Key retries, limits and how long results are kept.


Credits & Subscription

All paid plans (Starter, Growth, Scale, Platinum, and Enterprise) use a credit-based system where each new lead queried or exported costs 1 credit. Charging is sticky: a lead you have already received through any channel (dashboard, API, MCP or email schedule) is never charged again, even if its data changed later, and a new lead that shares a primary phone or primary email with a lead you already received is also free. Lead searches and exports are always capped at your spendable balance (credit balance plus any overage-budget headroom) instead of failing, with the X-Credits-Capped: true header when the balance was the limit; for them, 402 insufficient_credits only happens if a concurrent request spends the balance between the check and the charge. Pushing a database lead to an integration (POST /api/v1/integrations/:id/push-lead with a leadId, or the MCP tool push_lead_to_integration) is not capped; the same sticky rules apply. A lead you already received is free, even at a 0 balance. A new lead costs 1 credit, taken from your balance or, when the balance is 0 and your overage budget is enabled with room left, billed as overage; if neither can cover it, the push returns 402 insufficient_credits and nothing is pushed. A pushed lead counts as received (exportMethod crm_push in Lead Export History), so it is never charged again. On all plans, unused credits roll over each billing cycle and never expire while your subscription is active - but the remaining balance is forfeited when your subscription ends (at once when you cancel during the free trial), and expires when a plan downgrade takes effect at renewal. Use these endpoints to purchase additional credits or manage your subscription.

Credit balance: Your current credit balance is always available via GET /api/v1/me - see the monthlyCredits, monthlyCreditsRemaining, permanentCredits, and totalCreditsRemaining fields.

Endpoints

POST /api/v1/purchase-credits
Purchase additional credits using your saved payment method (charged off-session via Stripe). Purchased credits roll over month to month while your subscription is active, but the remaining balance is forfeited when your subscription ends (at once when you cancel during the free trial) and expires when a plan downgrade takes effect at renewal. Minimum 100 credits. Pricing: Starter 10¢/credit, Growth 7.5¢/credit, Scale 5¢/credit, Platinum 3¢/credit, Enterprise 2¢/credit. Available on all paid plans. While an earlier credit payment of your account (a credit purchase with the card on file or an auto top-up) is still being processed by your bank, which can take up to about a day, the call returns 409 payment_processing without charging; buy again after it has gone through. When your bank keeps this purchase's own charge processing, the call answers 202 with status: "processing", creditsAdded: 0 and creditsPending: this is not an error and must not be retried. The credits are added automatically when the payment goes through, and the account owner gets an email if it fails.
GET /api/v1/overage-budget
Get your overage budget configuration and usage: an opt-in spending limit that lets lead usage continue past a zero credit balance. Extra credits accrue at your plan's overage rate and are charged to your card on file once per day. The budget applies per billing cycle and resets at renewal.
PATCH /api/v1/overage-budget
Enable, disable, or edit the overage budget. budgetType is 'dollars' (default) or 'credits'; budgetAmount is a whole number of dollars or credits per billing cycle (max half your plan's monthly credit allocation, or its dollar equivalent; for more, turn on auto top-up). Requires an active paid credit plan (not a free trial: turning it on during a trial returns 403 forbidden) and a payment method on file. While a cancellation is scheduled, turning it on returns 409 cancel_pending (reactivate first; a reactivation leaves overage off until you turn it on again); disabling is always allowed. Disabling clears the config; accrued unbilled overage is still collected by the daily billing runs once it reaches Stripe's $0.50 minimum (smaller remaining balances are written off).
POST /api/v1/subscription/change-plan
Upgrade or downgrade your plan (targetPlan: starter, growth or scale). An upgrade is charged now and restarts the billing cycle with the new plan's credits, and all unused credits carry over; a downgrade takes effect at renewal, when the remaining balance expires. During a free trial the default mode switch_trial changes the plan at no charge and keeps the trial end date (credits already used stay used); activate_now ends the trial and charges the target plan now. While a downgrade is pending, moving back to your original plan before renewal cancels the downgrade at no charge (changeType downgrade_cancelled): no new credits, your credits are kept and the renewal date does not change. An upgrade during a billing pause ends the pause. If your subscription is set to cancel, any plan change removes the cancellation: an upgrade is charged and starts now, a downgrade takes effect at renewal, and choosing your current plan reactivates it at no charge (changeType reactivated; every success carries cancellationRemoved). After a subscription has ended, start a new plan with POST /api/v1/purchase.
POST /api/v1/subscription/cancel
Cancel your subscription. A paid subscription is cancelled at the end of the current billing period: access and credits continue until then, and every remaining credit is deleted when it ends; automatic credit top-ups stop as soon as you cancel. Cancelling a paid plan also switches the overage budget off at once and charges any overage used but not yet billed to your card on file right away (under Stripe's $0.50 minimum it is written off; an amount an earlier failed charge is still retrying is collected by those retries); the response's overage block (switchedOff, chargingNowCents, collectedLater) shows what the call did. During the 14-day free trial, cancelling ends the trial immediately: access and all credits (including purchased credits) are removed at once and cannot be restored, nothing is charged, and the trial cannot be started again; send {"endTrialNow": true} to confirm, otherwise the call returns 409 trial_cancel_confirmation_required and changes nothing. Optional reasons (leads_quality, features_missing, too_expensive, technical_issues, found_alternative, other) and feedback (at most 2,000 characters) are stored only when the cancellation goes through. Pausing for one billing cycle, ending a pause early and extending a free trial are offered in the dashboard only.

Purchase Credits Parameters

creditCount (integer, minimum 100) or dollarAmount (number, minimum 1) - send one, not both. idempotencyKey (optional, 8-64 letters, digits, _ or -; also accepted as the Idempotency-Key header) - reuse it when retrying the same purchase so the card is not charged twice.


MCP Server

SMB Sales Boost provides a remote Model Context Protocol (MCP) server that lets AI assistants and LLMs interact with your account directly. The REST API endpoints are available as MCP tools (pushing your own lead data to an integration is REST only), enabling AI-powered lead search, export, account management and integration workflows such as connecting a CRM (when available), creating webhooks and sending leads to them.

What is MCP?

The Model Context Protocol is an open standard that enables AI models to securely access tools and data sources. With our MCP server, the AI assistant in an MCP client such as Cursor or Claude Code can search, filter, and export leads, and send them to your CRM or webhooks, through natural language.

Connection Details

Endpoint
https://smbsalesboost.com/mcp
Transport
Streamable HTTP (stateless)
Method
POST
Auth
Bearer token (your API key) in Authorization header

Client Configuration

Add this to the configuration of an MCP client that connects to remote servers over HTTP and can send a request header, for example Cursor (~/.cursor/mcp.json, or .cursor/mcp.json in a project) or Claude Code (.mcp.json in a project):

{
  "mcpServers": {
    "smb-sales-boost": {
      "type": "http",
      "url": "https://smbsalesboost.com/mcp",
      "headers": {
        "Authorization": "Bearer smbk_your_api_key_here"
      }
    }
  }
}

Available Tools (73)

The AI assistant can call these tools on your behalf using natural language. Key tools include: get_profile, update_profile, search_leads, export_leads, list_filter_presets, create_filter_preset, list_keyword_lists, create_keyword_list, list_email_schedules, create_email_schedule, list_export_formats, create_export_format, list_export_history, ai_suggest_categories, ai_generate_keywords, list_export_blacklist, purchase_credits, get_auto_top_up, update_auto_top_up, get_overage_budget, update_overage_budget, and more.

The listing tool set for AI apps in app directories, 17 of these tools with per-call limits, and what each tool reads, changes or spends: see MCP Tools and Permissions.

A tool whose work is still running after about 40 seconds returns {status: "running", jobId}; call get_job with that jobId (each call waits up to 40 seconds) until it returns the result, exactly as the original tool would have returned it. Over the REST API the same work answers 202 Accepted and is followed with GET /api/v1/jobs/{jobId} (see Long-Running Requests). Results are normally kept 60 minutes after the job finishes (24 hours for a schedule send) and can expire sooner under heavy load or after a server restart; after that get_job reports job_result_expired for about a day, then job_not_found. Never repeat an export or a send then: check list_export_history / list_lead_export_history or list_email_schedules first (export files stay in Export History for 90 days). To get the result of a running export call get_job, never export_leads again: a new export_leads call after this one finished (or with other arguments) picks new leads first and charges for them; an identical call while it runs returns the same job. export_leads and trigger_email_schedule take an optional idempotencyKey (8-64 letters, numbers, underscores or dashes): reuse the same key only to repeat the identical call after a timeout, a lost connection or a {status: "running"} answer, and the server returns the same job instead of exporting or sending again (a schedule send's key is kept with the job for up to about 48 hours; a server restart forgets it). After an error answer (for example export_too_large) or when you change any argument, use a new key; a busy or in-progress answer (409, 429, 503) and an insufficient_credits 402 do not use up the key.

Integration tools (17):

With the 17 integration tools (list_integration_providers through list_pipedrive_deal_fields), the assistant can send lead data (business contact details) to outside systems, so it should confirm the destination with you first. When an API key or MCP client creates a webhook, connects a new CRM account, changes where an integration sends data, adds or re-activates an event, or re-enables an integration (including a successful test or retry, or a reconnect, that turns a needs_attention integration back on), the account owner is emailed for each change. Each account gets up to 10 of these emails an hour for destination changes and 10 for other changes; past that, one alert is sent and further changes are combined into summary emails. Changes made through MCP are labeled with the channel and the API key used, for example "Created via MCP with API key smbk_AbCdEfG..." in the Integrations tab. See Integrations API for the endpoints and error codes, and Tools & Integrations for the events.

Requirements

MCP access uses the same API key authentication as the REST API. An active paid subscription (Starter, Growth, Scale, Platinum, or Enterprise) is required. MCP requests are limited to 120 per minute per API key, and each tool call also counts against the rate limits of the REST endpoints it calls. Usage tracking works the same as for the REST API.

Errors

Most tools report a failed call as the API's message followed by the HTTP status and error code, for example (HTTP 409, integration_exists) or (HTTP 402, insufficient_credits), plus up to 5 validation details, so the error codes under Error Handling and Integrations API apply to MCP too. When the API sends no error code, only the status is shown (a rate-limited call shows (HTTP 429)). A 429 or 503 answer that gives a Retry-After also says when to try again, for example Retry after 42 seconds. at the end. The purchase, claim_key and start_enrichment tools return the API's message only (plus that retry time). re_export_lead_export_history and refresh_and_export_lead_export_history return the file's text for csv and json formats, and a short description (file name, type and size) for an xlsx file, which is binary.


MCP Tools and Permissions

This section describes the listing tool set: 17 tools of the SMB Sales Boost MCP server for AI apps that list SMB Sales Boost in their app directories. For each tool it shows its class and MCP hints with the reason for them, the description and parameters the AI assistant is given, what it returns and its side effects; then the lead filters, credits, limits, errors, rate limits, endpoints, data and security.

The tools act on the SMB Sales Boost account that connected the app, with the same data, credits and rules as the REST API and /mcp, but with per-call limits and shorter answers. They need an account with an active subscription that includes API access. To use all 73 tools, see All 73 tools.

The 17 tools

ToolTitleClassRead-onlyDestructiveIdempotentOpen world
get_profileGet plan and credit balanceReadYesNoYesNo
preview_leadsPreview leads (no credits; emails and phones masked)ReadYesNoYesNo
search_leadsGet leads with contact detailsSensitive writeNoYesNoYes
export_leadsExport a lead listSensitive writeNoYesNoYes
download_exportDownload a past exportReadYesNoYesNo
list_export_historyList past exportsReadYesNoYesNo
list_lead_export_historyList leads you already receivedReadYesNoYesNo
list_filter_presetsList saved searchesReadYesNoYesNo
create_filter_presetSave a searchWriteNoNoNoNo
list_keyword_listsList keyword listsReadYesNoYesNo
list_categoriesFind business categoriesReadYesNoYesNo
list_schema_typesList business types for filtersReadYesNoYesNo
list_export_formatsList export formatsReadYesNoYesNo
get_export_formatGet an export formatReadYesNoYesNo
list_integrationsList connected CRMs and webhooksReadYesNoYesNo
push_lead_to_integrationSend a lead to a connected CRM or webhookSensitive writeNoYesNoYes
get_jobCheck a long-running requestReadYesNoYesNo

Instructions for the AI assistant

When an app connects, the server gives the AI assistant these instructions:

SMB Sales Boost is a database of US local and small businesses (SMBs) for B2B outbound sales prospecting: finding businesses the user can sell to. It is not for finding consumer or homeowner customers for the user's own business. preview_leads uses no credits and masks emails and phone numbers. search_leads and export_leads spend 1 credit per business new to the account, up to maxCredits; push_lead_to_integration spends 1 credit if the lead is new; credits are not refunded. Spending continues after the credits run out only if the user turned on an overage budget or auto top-up in SMB Sales Boost (either can charge their card on file); otherwise it stops. get_profile shows whether each is on. Businesses the account receives are also sent to any CRM or webhook the user set up for new or updated leads. For each kind of business (one search each), list_categories finds its AI categories to pass as categories. Results are capped in size; export_leads and download_export serve larger lists.

Tool reference

Each tool with its class and hints, the reason for the hints, the description and parameters the AI assistant is given (as written), what it returns inside data and what it changes.

get_profile: Get plan and credit balance

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads the plan, the subscription status, the credit balances and whether the overage budget and auto top-up are on; it changes nothing and stays inside the account.
Description given to the assistant
Returns the account's plan name, subscription status, credit balance (monthly, permanent and temporary credits and the total available) and whether an overage budget and auto top-up are turned on. Use this when the user asks how many credits are left.
Inputs
None.
Returns

data: plan, subscriptionStatus, monthlyCreditsRemaining, permanentCredits, temporaryCreditsRemaining, totalCreditsRemaining, overageEnabled, autoTopUpEnabled

Never the account's id, email address, names or company, rates or budgets.

Side effects
None: it only reads.

preview_leads: Preview leads (no credits; emails and phones masked)

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Searches the lead database with emails and phone numbers masked; it spends no credits, changes nothing and sends nothing to the user's integrations.
Description given to the assistant
Use this when the user wants to see which US local businesses match a prospecting search (by category, keyword, city, state, ZIP code, website technology, social profiles, buying signal date or website domain registration date). Uses no credits. Returns up to 25 businesses per call with emails and phone numbers masked (founder contacts too); website, social profiles, address, category and buying signal are shown in full; a business this account already received shows its contacts and contactExported: true. Returns the total match count. Not for consumer or homeowner leads for the user's own local business. For a kind of business, pass businessType: its AI categories are searched first; categorySearch and each business's matchedBy say what matched. In every EmptyFilter parameter, any (the default) = no filter.
Inputs
ParameterDescription given to the assistant
pagePage of results, from 1 (default 1); see hasMore and nextPage in the answer.
limitBusinesses per page, 1-25 (default 25; a larger value is lowered to 25).
excludePurchasedtrue: only businesses this account has not received yet (default false).

Plus the Lead filters, as parameters.

Returns

data: leads, page, total, hasMore, nextPage, requiresKeywords, message, redirectFilter, categorySearch

categorySearch: businessType, categoriesUsed, method, pinned, noteCode, note, retryable, categoryTotal, extraMatches, categoryLeads, extraLeads

leads: up to 25 businesses with the business fields that have a value. Emails and phone numbers are masked, except for a business the account already received (contactExported: true). total is the number of matches. requiresKeywords and message say when a search needs a search term on company name, category or website. With businessType or categories, categorySearch lists the categories searched (categoriesUsed) and the number of businesses in them (categoryTotal); the name and website matches that follow the category matches are described in extraMatches. Each business's matchedBy says whether it matched a category (matchedCategories) or its name or website.

Side effects
None: it uses no credits and changes nothing.

search_leads: Get leads with contact details

Class
Sensitive write (readOnlyHint false, destructiveHint true, idempotentHint false, openWorldHint true)
Why these hints
Spends credits, which are not refunded, on businesses new to the account (destructive); the businesses it returns also go to the user's CRMs and webhooks set up for new or updated leads (open world); repeating the call can find, and charge for, newer businesses (not idempotent).
Description given to the assistant
Use this when the user wants the business emails and phone numbers of local businesses matching a search (websites and social profiles are already in preview_leads results). Spends 1 credit per business the account has not received before, at most maxCredits (default 25); credits are not refunded. It charges the first new matches in its own order; to unlock specific businesses from preview_leads, pass their ids as selectedIds to export_leads instead. Spending continues after the credits run out only if the user turned on an overage budget or auto top-up in SMB Sales Boost (either can charge their card on file); otherwise it stops. Businesses new to the account, and ones whose buying signal changed since the account last received them, are also sent to any CRM or webhook the user set up to receive new or updated leads. Returns up to 25 businesses per call. businessType and categories work as in preview_leads. In every EmptyFilter parameter, any (the default) = no filter.
Inputs
ParameterDescription given to the assistant
pagePage of results, from 1 (default 1); see hasMore and nextPage in the answer.
limitBusinesses per page, 1-25 (default 25; a larger value is lowered to 25).
maxResultsMost businesses this call returns, new and already received together, 1-25 (default 25; a larger value is lowered to 25). With businessType or categories, category matches come before name and website matches; new ones come first within each.
maxCreditsMost credits this call may spend, a safety cap per call (whole number, default 25). Only businesses new to the account cost a credit; 0 gets only businesses the account already received, at no credit cost.

Plus the Lead filters, as parameters.

Returns

data: leads, page, total, hasMore, nextPage, requiresKeywords, message, redirectFilter, categorySearch, creditsUsed, creditsRemaining, creditsCapped

categorySearch: businessType, categoriesUsed, method, pinned, noteCode, note, retryable, categoryTotal, extraMatches, categoryLeads, extraLeads

leads: the businesses with every one of the business fields that has a value, contact details included; businesses new to the account come first (with businessType or categories: category matches first, new ones first within each). creditsUsed and creditsRemaining report the credits; creditsCapped is true when maxCredits held back new businesses. With businessType or categories, categorySearch lists the categories searched (categoriesUsed) and the number of businesses in them (categoryTotal); the name and website matches that follow the category matches are described in extraMatches.

Side effects
Spends 1 credit per business the account has not received before, at most maxCredits (default 25); credits are not refunded. The businesses are recorded as received by the account: they show in list_lead_export_history and cost no credits again. Businesses new to the account, and ones whose buying signal changed since the account last received them, are sent to the user's CRMs and webhooks set up to receive new or updated leads.

export_leads: Export a lead list

Class
Sensitive write (readOnlyHint false, destructiveHint true, idempotentHint false, openWorldHint true)
Why these hints
Spends credits, which are not refunded, on businesses new to the account and saves a file (destructive); the businesses go to the user's CRMs and webhooks set up for new or updated leads, and integrations subscribed to export events are notified (open world); without the same idempotencyKey a repeated call is a new export (not idempotent).
Description given to the assistant
Use this when the user wants a prospect list file of local businesses (CSV by default; Excel or JSON with an export format the user saved in SMB Sales Boost - pass its formatId from list_export_formats): chosen businesses (selectedIds from preview_leads) or the matches of a search. Spends 1 credit per business the account has not received before, at most maxCredits (default 25); credits are not refunded; businesses already received use no credits, so maxCredits 0 re-exports them. Spending continues after the credits run out only if the user turned on an overage budget or auto top-up in SMB Sales Boost (either can charge their card on file); otherwise it stops. Businesses new to the account, and ones whose buying signal changed, are also sent to any CRM or webhook the user set up to receive new or updated leads, and integrations subscribed to export events are notified. Returns file metadata and an exportId; call download_export for the link. Long exports return a jobId for get_job.
Inputs
ParameterDescription given to the assistant
idempotencyKeyOptional, 8-64 letters, digits, _ or -. The identical call repeated with the same key (after a timeout, a lost connection or a running answer) returns the same export instead of starting and charging a new one; a changed call needs a new key.
selectedIdsIDs of the businesses to export (at most 100), such as ids from preview_leads; with selectedIds no filters are needed.
formatIdID of a saved export format (from list_export_formats); without it the account's default format is used.
maxResultsMost businesses in the file, new and already received together. With businessType or categories, category matches come before name and website matches; new ones come first within each.
maxCreditsMost credits this export may spend, a safety cap per call (whole number, default 25). Only businesses new to the account cost a credit; 0 gets only businesses the account already received, at no credit cost.
excludePurchasedtrue: only businesses this account has not received yet go into the file (default false).
filtersThe search to export, with the filter names and meanings of preview_leads; stateInclude, stateExclude, buyingSignalTypeFilter and websiteSchemaFilter take lists here.

filters takes the Lead filters.

Returns

data, when the export is done: leadCount, creditsUsed, creditsRemaining, creditsCapped, files, nextStep, note, redirectFilter, categorySearch

each file in files: fileName, fileType, size, exportId, saved

categorySearch: businessType, categoriesUsed, method, pinned, noteCode, note, retryable, categoryTotal, extraMatches, categoryLeads, extraLeads

while the export runs: status, jobId, phase, progress, nextStep

The file itself is never part of the answer: download_export with a file's exportId returns its link. A file with saved: false could not be stored; note then says how to get its businesses again at no credit cost. With businessType or categories, categorySearch also counts the businesses in the file by how they matched (categoryLeads, extraLeads).

Side effects
Spends 1 credit per business the account has not received before, at most maxCredits (default 25); businesses the account already received cost nothing, so maxCredits 0 exports them again at no credit cost; credits are not refunded. Saves the file to the account's export history for 90 days. Businesses new to the account, and ones whose buying signal changed, are sent to the user's CRMs and webhooks set up to receive new or updated leads, and integrations subscribed to export events are notified.
Long-running exports
An export still running after about 40 seconds returns status running with a jobId: collect it with get_job. Calling export_leads again for it would start a new export, which picks new businesses first and spends credits on them; the identical call with the same idempotencyKey returns the same export instead.

download_export: Download a past export

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Returns a short-lived download link for an export file the account already has, plus the text of a small csv or json file; it spends no credits and changes nothing.
Description given to the assistant
Use this when the user wants the file of a past export: returns its name, type, size, lead count, expiry date and a short-lived download link (valid for expiresInSeconds seconds). The text of a csv or json file of up to 50 KB is included too (contentIncluded says whether). Takes the exportId from export_leads or an id from list_export_history. Export files are kept for 90 days; for an expired one the error says how to get its leads again at no credit cost.
Inputs
ParameterDescription given to the assistant
idThe exportId from export_leads or an id from list_export_history.
Returns

data: fileName, fileType, fileSize, leadCount, fileExpiresAt, downloadUrl, expiresInSeconds, contentIncluded, contentNote

The link is valid for expiresInSeconds seconds. When contentIncluded is true, the file's text follows as a second text block (csv and json files of up to 50 KB); otherwise contentNote says how to get the file.

Side effects
None: it only reads.

list_export_history: List past exports

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads the account's export files; it changes nothing.
Description given to the assistant
Lists the account's export files, newest first, up to 25 per call: id, file name and type, lead count, size, export format name, creation and expiry dates, and whether the file can still be downloaded (downloadAvailable, unavailableReason). Files are kept for 90 days. Pass an id to download_export to get a file.
Inputs
ParameterDescription given to the assistant
limitMost export files to list, newest first, 1-25 (default 25; a larger value is lowered to 25).
Returns

each file in data: id, fileName, fileType, leadCount, fileSize, formatName, createdAt, expiresAt, downloadAvailable, unavailableReason

Newest first; when the limit is reached, note says that only the newest files are listed. Never the filters an export was made with.

Side effects
None: it only reads.

list_lead_export_history: List leads you already received

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads the businesses the account already received; it spends no credits and changes nothing.
Description given to the assistant
Lists businesses this account already received (up to 25 per page, newest first) with leadId, name, contact details and the date received. To get a file of some of them again, pass their leadIds as selectedIds to export_leads with maxCredits 0 (no credits).
Inputs
ParameterDescription given to the assistant
limitMost businesses per page, newest first, 1-25 (default 25; a larger value is lowered to 25).
offsetHow many entries to skip (default 0); nextOffset in the answer is the offset of the next page.
dateFromOnly businesses received on or after this date (YYYY-MM-DD).
dateToOnly businesses received on or before this date (YYYY-MM-DD).
exportMethodOnly businesses received this way: dashboard, api (the API and AI assistants), email_schedule, crm_push (sent to an integration) or enrichment.
Returns

answer: data, totalCount, offset, hasMore, nextOffset

each entry in data: leadId, exportedAt, exportMethod, lead

lead: Company Name, Registered URL, City, State, Phone Primary, Email Primary, Last Buying Signal, Buying Signal Type

export_leads with the leadId values as selectedIds and maxCredits 0 returns the full businesses at no credit cost.

Side effects
None: it only reads.

list_filter_presets: List saved searches

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads the saved searches; it changes nothing.
Description given to the assistant
Lists the searches the account saved (filter presets): id, name, filters and creation date. The filters use the parameter names of preview_leads, search_leads and export_leads; a search saved in the SMB Sales Boost dashboard is listed with empty filters.
Inputs
None.
Returns

each saved search in data: id, name, filters, createdAt

filters uses the parameter names of preview_leads and shows only the Lead filters of this page; a search saved in the SMB Sales Boost dashboard is listed with empty filters.

Side effects
None: it only reads.

create_filter_preset: Save a search

Class
Write (readOnlyHint false, destructiveHint false, idempotentHint false, openWorldHint false)
Why these hints
Adds one saved search to the account and touches nothing else, so it is not destructive and stays inside the account; repeating the call adds another saved search (not idempotent).
Description given to the assistant
Saves a search under a name (a filter preset), so list_filter_presets can show it later. filters takes the filter parameters of preview_leads, such as positiveKeywords, stateInclude or lastBuyingSignalFrom; other keys are refused. Uses no credits.
Inputs
ParameterDescription given to the assistant
nameName of the saved search.
filtersThe filters to save, by the parameter names of preview_leads, such as {positiveKeywords: ['*roof*'], stateInclude: 'AZ'}; other keys are refused.

filters takes the Lead filters.

Returns

data: id, name, filters, createdAt

The saved search as stored.

Side effects
Adds one saved search to the account. Uses no credits.

list_keyword_lists: List keyword lists

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads the saved keyword lists; it changes nothing.
Description given to the assistant
Lists the keyword lists the account saved: id, name, type and keywords. A positive list's keywords go into positiveKeywords and a negative list's into negativeKeywords of preview_leads, search_leads or export_leads.
Inputs
None.
Returns

each list in data: id, name, type, keywords

type is positive or negative: whether the keywords go into positiveKeywords or negativeKeywords.

Side effects
None: it only reads.

list_categories: Find business categories

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads the business categories that match plain words, with their lead counts; it spends no credits and changes nothing.
Description given to the assistant
Lists AI business categories with lead counts: those matching query (plain words, such as dentists), or the largest ones without a query. A kind of business often spans several (Dentist, Dental Clinic); pass the names that fit as categories to preview_leads, search_leads or export_leads. picked holds the ones businessType uses. Uses no credits.
Inputs
ParameterDescription given to the assistant
queryPlain words for a kind of business, such as med spas.
limitMost categories to list, 1-50 (default 20).
Returns

data: query, picked, categories, total

picked: categories, method, noteCode, note

each category in categories: name, sector, leadCount

picked holds the 1 to 4 categories businessType uses for the same words; names from either list can be passed as categories. leadCount is the number of businesses in the category nationwide.

Side effects
None: it only reads.

list_schema_types: List business types for filters

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads the website schema types that the websiteSchemaFilter parameter takes; it changes nothing.
Description given to the assistant
Lists the website schema types found in the database (schema.org business types such as LocalBusiness or Organization): the values the websiteSchemaFilter parameter of preview_leads, search_leads and export_leads takes. Right after a server restart the list can still be loading: the error then says schema_types_warming, and the list is back within about a minute.
Inputs
None.
Returns

answer: data

data is a list of schema type names, such as LocalBusiness.

Side effects
None: it only reads.

list_export_formats: List export formats

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads the saved export formats; it changes nothing.
Description given to the assistant
Lists the export formats the account saved in SMB Sales Boost: id, name, file type (csv, xlsx or json), whether it is the default format, and its columns. Pass an id as formatId to export_leads.
Inputs
None.
Returns

each format in data: id, name, fileType, isDefault, columns

columns are the file's column headers, in order.

Side effects
None: it only reads.

get_export_format: Get an export format

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads one saved export format; it changes nothing.
Description given to the assistant
Returns one export format the account saved, by id: name, file type (csv, xlsx or json), whether it is the default format, and its columns in file order.
Inputs
ParameterDescription given to the assistant
idID of the export format (from list_export_formats).
Returns

data: id, name, fileType, isDefault, columns

columns are the file's column headers, in order.

Side effects
None: it only reads.

list_integrations: List connected CRMs and webhooks

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads the CRMs and webhooks the user connected, never their URLs, keys or tokens; it changes nothing and contacts no CRM or webhook.
Description given to the assistant
Lists the CRMs and webhooks the user connected in SMB Sales Boost, newest first: id, provider, name, status (connected, disabled or needs_attention), the events each one receives and its destination (the CRM's name or the webhook's host). Webhook URLs, keys and tokens are never shown. Pass an id to push_lead_to_integration. Integrations are connected and managed in the SMB Sales Boost dashboard.
Inputs
None.
Returns

each integration in data: id, provider, providerName, displayName, status, events, destination

destination is the CRM's name or the webhook's host, masked when the host alone would let anyone read or send to the webhook; events are the event types it receives. Never webhook URLs, keys, tokens, CRM account ids or who created the integration.

Side effects
None: it only reads.

push_lead_to_integration: Send a lead to a connected CRM or webhook

Class
Sensitive write (readOnlyHint false, destructiveHint true, idempotentHint false, openWorldHint true)
Why these hints
Writes the business's contact data to a CRM or webhook the user connected, which cannot be recalled, and spends 1 credit, not refunded, when the business is new to the account (destructive, open world); every call sends again (not idempotent).
Description given to the assistant
Use this when the user wants to send one lead to a CRM or webhook they already connected in SMB Sales Boost (for example HubSpot, Salesforce, Pipedrive or a Zapier webhook). Writes the lead's business contact data to that destination. Spends 1 credit if the account has not received this lead before; credits are not refunded, including for a push that then fails. Spending continues after the credits run out only if the user turned on an overage budget or auto top-up in SMB Sales Boost (either can charge their card on file); otherwise it stops. A lead new to the account is also sent to the user's other integrations set to receive new leads, and a lead whose buying signal changed since the account last received it goes to the ones set to receive updated leads. Integrations are connected and managed in the SMB Sales Boost dashboard. A failed push returns a short reason such as the destination's HTTP status; the integration's Deliveries tab there shows the details.
Inputs
ParameterDescription given to the assistant
idID of the integration (from list_integrations).
leadIdID of the business to send: a lead's id from preview_leads or search_leads, or a leadId from list_lead_export_history.
Returns

data: status, tracked, creditsUsed, statusCode, error

statusCode is the webhook's HTTP status. error is a short reason written by SMB Sales Boost, never the destination's own answer; the integration's Deliveries tab in the SMB Sales Boost dashboard shows the details.

Side effects
Spends 1 credit if the account has not received the business before; credits are not refunded, also for a push that then fails. Writes the business's contact data to the chosen CRM or webhook. A business new to the account also goes to the user's other integrations set to receive new leads, and one whose buying signal changed goes to the ones set to receive updated leads.

get_job: Check a long-running request

Class
Read (readOnlyHint true, destructiveHint false, idempotentHint true, openWorldHint false)
Why these hints
Only reads the status or the result of an export that export_leads started; it starts no work and spends no credits.
Description given to the assistant
Checks a long-running export started by export_leads and returns the result export_leads would have returned. Use it to collect a running export instead of starting the export again.
Inputs
ParameterDescription given to the assistant
jobIdThe jobId of a running export_leads answer (32 hex characters).
Returns

data, when the export is done: leadCount, creditsUsed, creditsRemaining, creditsCapped, files, nextStep, note, redirectFilter, categorySearch

each file in files: fileName, fileType, size, exportId, saved

categorySearch: businessType, categoriesUsed, method, pinned, noteCode, note, retryable, categoryTotal, extraMatches, categoryLeads, extraLeads

while the export runs: status, jobId, phase, progress, nextStep

The answer export_leads would have returned. Only export_leads jobs: any other job is refused.

Side effects
None: it only reads.
Long-running exports
Each call waits up to 40 seconds for the export. A result is kept up to 60 minutes after the export finishes (less under heavy load or after a server restart); the file stays in the export history for 90 days (list_export_history).

Lead filters

preview_leads and search_leads take these filters as parameters, export_leads inside filters (there stateInclude, stateExclude, buyingSignalTypeFilter and websiteSchemaFilter take lists), and create_filter_preset saves them. At least one search term on company name, category or website is needed: businessType, categories, or a positiveKeywords, nameIncludeTerms, urlIncludeTerms or crawledUrlIncludeTerms entry of 3+ characters (shorter ones still filter; descriptionIncludeTerms alone does not start a search).

FilterDescription given to the assistant
businessTypeA kind of business in plain words, such as dental practices or roofers (not a website schema type; no place names). It is matched to 1 to 4 AI categories, which are searched first.
categories1 to 4 exact AI category names from list_categories, searched in place of the ones matched from businessType. Without businessType or keywords: category matches only.
positiveKeywordsKeywords such as *plumb* or *bakery* (case-insensitive; * matches any characters), matched in the orColumns. With businessType or categories, keyword matches come after the category matches. A 3+ character keyword or name / website term, businessType or categories is required.
negativeKeywordsKeywords that leave a business out when one is in any of the orColumns.
stateIncludeUS state codes to include, comma-separated (for example TX or CA,NY).
stateExcludeUS state codes to leave out, comma-separated.
cityIncludeCities to include (the city contains any of them).
cityExcludeCities to leave out.
zipIncludeZIP codes to include (exact match).
zipExcludeZIP codes to leave out (exact match).
nameIncludeTermsTerms in the company name (case-insensitive; * matches any characters).
nameExcludeTermsTerms that leave a business out when its company name contains one.
urlIncludeTermsTerms in the registered website address (case-insensitive; * wildcard).
urlExcludeTermsTerms that leave a business out when its registered website address contains one.
crawledUrlIncludeTermsTerms in the crawled website address (case-insensitive; * wildcard).
crawledUrlExcludeTermsTerms that leave a business out when its crawled website address contains one.
descriptionIncludeTermsTerms in the short website description (case-insensitive; * wildcard); not enough alone.
descriptionExcludeTermsTerms that leave a business out when its short website description contains one.
cityEmptyFilterCity: exclude_empty = present, only_empty = missing.
stateEmptyFilterState: exclude_empty = present, only_empty = missing.
zipEmptyFilterZIP code: exclude_empty = present, only_empty = missing.
phonePrimaryEmptyFilterPrimary phone: exclude_empty = present, only_empty = missing.
phoneTotalEmptyFilterTotal Phones list: exclude_empty = present, only_empty = missing.
emailPrimaryEmptyFilterPrimary email: exclude_empty = present, only_empty = missing.
emailTier1EmptyFilterTier 1 Emails list: exclude_empty = present, only_empty = missing.
emailTier2EmptyFilterTier 2 Emails list: exclude_empty = present, only_empty = missing.
emailTier3EmptyFilterTier 3 Emails list: exclude_empty = present, only_empty = missing.
emailTier4EmptyFilterTier 4 Emails list: exclude_empty = present, only_empty = missing.
emailTier5EmptyFilterTier 5 Emails list: exclude_empty = present, only_empty = missing.
emailTier6EmptyFilterTier 6 Emails list: exclude_empty = present, only_empty = missing.
descriptionEmptyFilterShort website description: exclude_empty = present, only_empty = missing.
redirectFilterno (default): only businesses whose registered website address does not redirect to another site; yes: only ones that do; any: both.
buyingSignalTypeFilterBuying Signal Types, comma-separated: only businesses whose last buying signal was one of them. Values: Newly Added, Phone Primary, Total Phones, Email Primary, Tier 1 Emails, Tier 2 Emails, Address Full, Instagram, LinkedIn, Facebook, YouTube, TikTok, X (Twitter), Google Maps, Yelp, Pinterest, Other Social.
websiteSchemaFilterWebsite schema types, comma-separated (values from list_schema_types, such as LocalBusiness).
isChainIncludeIs Chain? values to look for (Yes marks a chain). A term is text, or {v, m} with m contains, starts or ends.
isChainExcludeIs Chain? values to leave out (matched like isChainInclude).
isChainEmptyFilterIs Chain? value: exclude_empty = present, only_empty = missing.
socialProfilesIncludeOnly businesses with a social profile on any of these platforms (platform domains, not profile links).
socialProfilesExcludeLeave out businesses with a social profile on any of these platforms.
socialProfilesEmptyFilterSocial profiles: exclude_empty = present, only_empty = missing.
platformIncludeWebsite platforms to look for, such as wordpress, shopify, wix or squarespace. A term is text, or {v, m} with m contains, starts or ends.
platformExcludeWebsite platforms to leave out (matched like platformInclude).
platformEmptyFilterDetected website platform: exclude_empty = present, only_empty = missing.
bookingOpsCrmSoftwareIncludeBooking, operations or CRM software to look for, such as calendly, gohighlevel or jobber. A term is text, or {v, m} with m contains, starts or ends.
bookingOpsCrmSoftwareExcludeBooking, operations or CRM software to leave out (matched like bookingOpsCrmSoftwareInclude).
bookingOpsCrmSoftwareEmptyFilterDetected booking, operations or CRM software: exclude_empty = present, only_empty = missing.
reputationChatSoftwareIncludeReputation or chat software to look for, such as tidio or zendesk. A term is text, or {v, m} with m contains, starts or ends.
reputationChatSoftwareExcludeReputation or chat software to leave out (matched like reputationChatSoftwareInclude).
reputationChatSoftwareEmptyFilterDetected reputation or chat software: exclude_empty = present, only_empty = missing.
marketingEmailSoftwareIncludeMarketing or email software to look for, such as klaviyo, mailchimp or callrail. A term is text, or {v, m} with m contains, starts or ends.
marketingEmailSoftwareExcludeMarketing or email software to leave out (matched like marketingEmailSoftwareInclude).
marketingEmailSoftwareEmptyFilterDetected marketing or email software: exclude_empty = present, only_empty = missing.
adPixelsIncludeAd pixels to look for, such as meta-pixel, google-ads or tiktok-pixel. A term is text, or {v, m} with m contains, starts or ends.
adPixelsExcludeAd pixels to leave out (matched like adPixelsInclude).
adPixelsEmptyFilterDetected ad pixels: exclude_empty = present, only_empty = missing.
paymentFinancingSoftwareIncludePayment or financing software to look for, such as stripe or paypal. A term is text, or {v, m} with m contains, starts or ends.
paymentFinancingSoftwareExcludePayment or financing software to leave out (matched like paymentFinancingSoftwareInclude).
paymentFinancingSoftwareEmptyFilterDetected payment or financing software: exclude_empty = present, only_empty = missing.
emailPrimaryMxValuesOnly businesses whose primary email's provider is one of these exact values, such as 'Google Workspace - Google' or 'Microsoft 365 - Outlook'.
emailPrimaryMxEmptyFilterPrimary email provider: exclude_empty = present, only_empty = missing.
emailDomainMxValuesOnly businesses whose website domain's email provider is one of these exact values, such as 'Google Workspace - Google' or 'Self-Hosted - SMTP'.
emailDomainMxEmptyFilterWebsite email provider: exclude_empty = present, only_empty = missing.
emailSecurityValuesOnly businesses whose website domain's email security service is one of these exact values, such as Proofpoint.
emailSecurityEmptyFilterEmail security service: exclude_empty = present, only_empty = missing.
minNumLocationsFewest business locations.
maxNumLocationsMost business locations.
minOpenPositionsFewest job postings on the business's website.
maxOpenPositionsMost job postings on the business's website.
openPositionsEmptyFilterJob postings count: exclude_empty = present, only_empty = missing. Missing = no careers page found; 0 = a careers page without postings.
minRatingValueLowest rating (0 to 5) on the business's website.
maxRatingValueHighest rating (0 to 5) on the business's website.
minReviewCountFewest reviews.
maxReviewCountMost reviews.
orColumnsColumns the keywords match: wCompanyName, wOgrequestedUrl (registered website), wSimpleCrawledUrl (crawled website), aiCategoryEstimation (AI category). Default: all four.
sortBylastBuyingSignal (default; lastUpdated is its old name), or company name, website, state, city or redirect.
sortOrderdesc (default) or asc.
lastBuyingSignalFromOnly businesses whose last buying signal is on or after this date: YYYY-MM-DD, or relative such as rel:30d (units h, d, w, m, y). A buying signal: the business was newly added, or its phones, emails, address or social profiles changed.
lastBuyingSignalToOnly businesses whose last buying signal is on or before this date (forms as in lastBuyingSignalFrom).
registrationDateFromOnly businesses whose website domain was registered on or after this date (date forms as in lastBuyingSignalFrom).
registrationDateToOnly businesses whose website domain was registered on or before this date (date forms as in lastBuyingSignalFrom).

Not offered in this tool set: filters that look up a person (founder name, email or phone), filters on email addresses and phone numbers, the general search that also matches phone numbers, street address filters and the other website text filters of /mcp. A call with any other input is refused (see Errors).

Business fields

preview_leads and search_leads return each business with those of these 50 fields that have a value, in this order: id, Last Buying Signal, Buying Signal Type, Registered URL, Registration Date, Redirect, Crawled URL, Company Name, AI Categories, Address Full, Street, City, State, Zip, Platform, Booking/Ops/CRM Software, Reputation/Chat Software, Marketing/Email Software, Ad Pixels, Payment/Financing Software, Employees, Number of Job Postings, Founding Date, Number of Locations, Is Chain?, Rating Value, Review Count, Price Range, Legal Name, NAICS Code, DUNS Number, Founder Name(s), Founder Email(s), Founder Phone(s), Opening Hours, Social Profiles, Phone Primary, Total Phones, Email Primary, Email Primary Provider, Tier 1 Emails, Tier 2 Emails, Tier 3 Emails, Tier 4 Emails, Tier 5 Emails, Tier 6 Emails, Website Email Provider, Website Email Security, Website Schema, Description Short.

In preview_leads every email address and phone number, the founder's included, is masked, except for a business the account already received (contactExported: true); founder names are shown. Not returned: the long website description, the map coordinates, the logo URL, the other marketing texts of a website and the crawl details.

Credits

Limits per call

Errors

A failed call returns a tool result with isError: true and a text that says what happened, usually with the HTTP status and the error code, for example (HTTP 402, insufficient_credits):

Rate limits

MCP requests are limited to 120 per minute per API key, counted together over every MCP endpoint the key uses, /mcp included; requests without a valid API key to 60 per minute per client IP address; and each client IP address to at most 1,200 MCP requests per minute in all. A refused request gets HTTP 429 with a Retry-After header and the JSON-RPC error code -32029. Each tool call also counts against the rate limits of the REST endpoint it calls.

Endpoints

No endpoint serves this tool set yet; the endpoints are listed here once they are available. Every tool on this page is also on the MCP server at https://smbsalesboost.com/mcp (sign in with an API key), there with the descriptions, defaults and full answers described in MCP Server.

Data and removal

The businesses come from publicly available sources: business websites, public directories and business registrations. Their contact details are not verified for accuracy or deliverability. Founder names are shown in preview_leads and search_leads results; founder emails and phone numbers are masked in preview_leads like every other contact detail.

Anyone can ask for the data about them or their business to be removed at Remove My Data; matching records are removed from the lead database within 24 hours, so searches no longer return them. See the Privacy Policy for how SMB Sales Boost handles data.

Security

All 73 tools

The listing tool set is part of the SMB Sales Boost MCP server. To use all 73 tools (account settings, keyword lists, email schedules, integration setup, enrichments, credits and subscription), add https://smbsalesboost.com/mcp with your API key to your MCP client as a custom connector; see MCP Server. There the tools have their own descriptions, defaults and answers.


Integrations API

SMB Sales Boost can send lead data to your CRM, automation tools, and any HTTPS endpoint. Set up destinations from the Integrations tab in your dashboard, or with the endpoints below, which are also available as MCP tools (pushing your own lead data is REST only; see MCP Server). They live under /api/v1/integrations, use the same API key (Authorization: Bearer smbk_...), paid-plan requirement and rate limits as the rest of the API, and return the usual {"data": ...} and {"error", "message"} shapes. A 400 validation_error can also include a details array (see Error Handling).

This section is the reference for the integration endpoints. Supported providers, the events you can subscribe to, the delivery format, verifying signatures, Exported leads (batched) with its recipes and the Zoho Flow scripts are on Tools & Integrations.

Safeguards: an integration sends business contact details to an outside system automatically. When an API key or MCP client creates a webhook, connects a new CRM account, changes where an integration sends data, adds or re-activates an event, or re-enables an integration, the account owner is emailed, and the dashboard shows which API key created or last changed each integration (see Safeguards).

Endpoints

MethodPathDescription
GET/api/v1/integrations/providersList providers and runtime availability
GET/api/v1/integrationsList your integrations with subscriptions and who created or last changed them
GET/api/v1/integrations/:idSingle integration with subscription detail
POST/api/v1/integrations/webhookCreate a webhook integration; returns the signing secret once
PATCH/api/v1/integrations/:idUpdate display name, status, subscriptions (the list you send replaces them all), destination URL, header API key or Pipedrive deal settings
DELETE/api/v1/integrations/:idDelete an integration permanently, with its subscriptions and delivery history
GET/api/v1/integrations/:id/deliveriesThe 50 newest deliveries, each with its attempt count, last status code, error and the first 1000 characters of your endpoint's response, plus up to 10 recent Stopped or Not sent rows of Exported leads (batched)
POST/api/v1/integrations/:id/deliveries/:deliveryId/retrySend the stored data of a past delivery again as a new event, in one attempt; an Exported leads (batched) delivery is queued and sent in the background
POST/api/v1/integrations/:id/testSend one test lead.created event to the real destination (on a CRM this writes a real record for the sample company Acme Test Co that is not removed), or with eventType export.leads a sample batch of Exported leads (batched)
POST/api/v1/integrations/:id/push-leadPush one lead now: leadId (1 credit if new to you) or your own lead data (free)
POST/api/v1/integrations/:provider/connectStart a HubSpot, Salesforce or Pipedrive connection, or reconnect one already connected; returns authorizationUrl
GET/api/v1/integrations/:id/field-mappingCRM field list and current mapping (?refresh=true reloads the CRM fields)
PATCH/api/v1/integrations/:id/field-mappingChange which CRM field receives each lead field (replaces the whole saved mapping)
DELETE/api/v1/integrations/:id/field-mappingReset the mapping to the defaults
POST/api/v1/integrations/:id/field-mapping/testDry-run a mapping (creates, then deletes, synthetic CRM records)
GET/api/v1/integrations/:id/pipedrive/pipelinesPipedrive pipelines and stages
GET/api/v1/integrations/:id/pipedrive/deal-fieldsPipedrive deal fields and the deal field map (?refresh=true reloads them)

Errors: 400 validation_error or bad_request, 402 insufficient_credits (push-lead), 404 not_found, 409 integration_exists (create, or a PATCH that re-points to a destination another integration of the same provider already uses) or integration_limit (at most 25 integrations per account; also on connect, see Connect a CRM), 409 conflict (PATCH only: when the integration changes while the update is being applied, for example the owner pauses it at the same moment, the update is applied again on top of that change; only when it changes again does the PATCH return 409, nothing changed, so read it again and retry. If the API key making the PATCH is revoked in that moment, it returns 401 unauthorized "This API key has been revoked" and nothing is applied), 429 (all integration endpoints share one budget per account of 60 requests per minute, counted together with the dashboard; connect is also limited to 30 per minute), 502 provider_error (the CRM's API failed) and 503 provider_unavailable. A 503 provider_unavailable is not temporary (no Retry-After; do not retry): it means the CRM is not configured for this deployment. It can come from the field-mapping, Pipedrive pipeline and deal-field endpoints, test, retry, push-lead and connect. An unknown provider in the connect path is a 404. A 500 internal_error on create, PATCH or push-lead may come after the change was saved (or a credit was taken), so check GET /api/v1/integrations and the deliveries before repeating it; a 503 service_unavailable only happens before anything is written.

Responses

Every success is wrapped in {"data": ...}. Test, retry and push answer HTTP 200 even when the destination fails; read data.status. When a webhook test or push gets a non-2xx answer, data.error holds the first 500 characters of your endpoint's response (HTTP <status> when it sent no body). Paths starting with .../ are under /api/v1/integrations/:id/.

Endpointdata
GET /api/v1/integrations/providersA list of {id, name, tagline, description, authMethod, ownerSetupRequired, defaultEvents, supportsPerLeadPush, helpText, available}, plus setupHelpUrl when set and reason when unavailable
GET /api/v1/integrations (a list), GET and PATCH /api/v1/integrations/:idAn integration: {id, provider, providerName, status, displayName, externalAccountId, authMethod, metadata, consecutiveFailures, lastFailureAt, lastSuccessAt, tokenExpiresAt, createdAt, updatedAt, createdVia, lastChangedVia, lastChangedAt, subscriptions: [{id, eventType, targetUrl, isActive, config}]}. status is connected, disabled or needs_attention. createdVia and lastChangedVia are null or, for example, {"channel": "api", "apiKey": {"id": 7, "keyPrefix": "smbk_AbCdEfG...", "name": "Zap agent", "revoked": false}}; channel is dashboard, api or mcp, and apiKey is null for a dashboard change.
POST /api/v1/integrations/webhook{"integration": {...}, "signingSecret": "..."} (see Create a webhook integration)
DELETE /api/v1/integrations/:id{"message": "Integration deleted"}
GET .../deliveriesNewest first, a list of {id, eventType, targetUrl, status, statusCode, attemptCount, latencyMs, errorMessage, responseBody, createdAt, completedAt}. CRM rows have a targetUrl such as hubspot://contacts. An export.leads row also has batchSummary (see Exported leads (batched)).
POST .../test, POST .../deliveries/:deliveryId/retry{"status": "success" or "failed", "statusCode", "latencyMs", "error"}: statusCode and latencyMs come from webhooks, and error, when present, explains the failure. A retry of an export.leads delivery answers {"status": "queued", "queuedBatches", "queuedLeads"} instead (see Exported leads (batched)).
POST .../push-lead{"status", "tracked", "creditsUsed", "result", "error"}: result is {contactId, companyId} for HubSpot (each only when written), {leadId} for Salesforce and {statusCode, latencyMs} for a webhook (none for Pipedrive)
GET .../field-mappingHubSpot {smbFields, contactFields, companyFields, cachedAt, mapping}; Salesforce {smbFields, leadFields, contactFields, accountFields, cachedAt, mapping} (only the lead scope is mapped); Pipedrive {smbFields, personFields, organizationFields, cachedAt, mapping}. CRM field lists are cached for up to 10 minutes.
PATCH and DELETE .../field-mapping{"mapping": {...}}, the mapping now saved (after DELETE every scope is empty, which means the defaults)
POST .../field-mapping/test{ok, scopes: [{scope, label, ok, issues: [{smbFieldId, targetField, message, severity}]}]}, where severity is error or warning
GET .../pipedrive/pipelinesA list of {id, name, active, stages: [{id, name, orderNr}]}
GET .../pipedrive/deal-fields{smbFields, dealFields, cachedAt, fieldMap}

Rules worth knowing

Create a webhook integration

curl -X POST https://smbsalesboost.com/api/v1/integrations/webhook \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer smbk_your_api_key_here" \
  -d '{
    "provider": "zapier",
    "displayName": "My Zap",
    "targetUrl": "https://hooks.zapier.com/hooks/catch/XXX/YYY",
    "events": ["lead.created", "export.completed"]
  }'

Body fields:

The response is {"data": {"integration": {...}, "signingSecret": "..."}}. Store the signing secret now, because it is shown only once. If the request times out, the integration may have been created: check GET /api/v1/integrations first. Repeating the same provider and targetUrl returns 409 integration_exists; a different provider or a changed URL (even a trailing slash) creates a second integration with its own secret. If the integration exists but you did not get its signing secret, delete it (DELETE /api/v1/integrations/:id, which also deletes its delivery history) and create it again.

Connect a CRM

POST /api/v1/integrations/hubspot/connect (or salesforce, pipedrive) returns {"data": {"provider", "authorizationUrl", "expiresAt"}}. Salesforce also takes {"environment": "production"} (the default) or {"environment": "sandbox"}; sending environment for HubSpot or Pipedrive returns 400. Open authorizationUrl in a browser and approve access within 10 minutes. A new CRM integration then appears in GET /api/v1/integrations with its initial events: HubSpot lead.created on (lead.updated present but off; to turn it on, PATCH subscriptions with both events, see Rules worth knowing), Salesforce lead.created, Pipedrive lead.created and lead.updated. Only the account owner should approve it: whoever approves attaches their CRM to the account. When the account already has 25 integrations, connect returns 409 integration_limit unless one of them is an integration of that CRM that the sign-in could reconnect. The browser returns through /api/integrations/<provider>/callback, which is a redirect target, not an API endpoint.

Connecting a CRM account that is already connected re-authorizes that integration in place: it gets new access, a needs_attention integration becomes connected again, a paused one stays paused, and its events, field mapping, Pipedrive deal settings and delivery history are kept. The 25-integration limit applies only to new connections. So when a CRM integration stops working because its access was removed or expired in the CRM, reconnect it: click Reconnect on the integration in the dashboard's Integrations tab, or connect again through the API or MCP and sign in to the same CRM account (for a Salesforce Sandbox integration, send {"environment": "sandbox"}). PATCH {"status": "connected"} alone does not restore access. Signing in to a different account of the same CRM creates a new integration.

If approval does not complete, nothing is connected or changed and the dashboard URL shows <provider>_error=<reason>, for example key_revoked (the API key that created the link was revoked), integration_limit (the account has 25 integrations and the CRM account you approved is not already connected), invalid_state (the link expired or was already used; start again), already_connected (rare: two approvals of the same CRM account finished at the same moment) or the CRM's own error, such as access_denied. A HubSpot connect fails, creating nothing, when HubSpot does not confirm the account, with the message "We could not confirm which HubSpot account you signed in to, so nothing was connected or changed. Please try connecting again in a minute." Check GET /api/v1/integrations to confirm a connection.

Push one lead

POST /api/v1/integrations/:id/push-lead sends one lead to this integration now, in a single attempt with no automatic retries. Send {"leadId": 123} for a lead from the database (tracked like an export), or {"lead": {...}} for your own data (untracked and free; REST only, the MCP tool push_lead_to_integration takes leadId).

The Zoho Flow scripts (BETA) are now on Tools & Integrations: Zoho Flow scripts, with the Script for Zoho CRM and the Script for Bigin by Zoho CRM.


Ready to Find Your Next Customers? Get access to growing local business leads updated every 5 minutes. See plans starting at $49/mo →