Integrations API - SMB Sales Boost 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
| Method | Path | Description |
|---|---|---|
GET | /api/v1/integrations/providers | List providers and runtime availability |
GET | /api/v1/integrations | List your integrations with subscriptions and who created or last changed them |
GET | /api/v1/integrations/:id | Single integration with subscription detail |
POST | /api/v1/integrations/webhook | Create a webhook integration; returns the signing secret once |
PATCH | /api/v1/integrations/:id | Update display name, status, subscriptions (the list you send replaces them all), destination URL, header API key or Pipedrive deal settings |
DELETE | /api/v1/integrations/:id | Delete an integration permanently, with its subscriptions and delivery history |
GET | /api/v1/integrations/:id/deliveries | The 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/retry | Send 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/test | Send 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-lead | Push one lead now: leadId (1 credit if new to you) or your own lead data (free) |
POST | /api/v1/integrations/:provider/connect | Start a HubSpot, Salesforce or Pipedrive connection, or reconnect one already connected; returns authorizationUrl |
GET | /api/v1/integrations/:id/field-mapping | CRM field list and current mapping (?refresh=true reloads the CRM fields) |
PATCH | /api/v1/integrations/:id/field-mapping | Change which CRM field receives each lead field (replaces the whole saved mapping) |
DELETE | /api/v1/integrations/:id/field-mapping | Reset the mapping to the defaults |
POST | /api/v1/integrations/:id/field-mapping/test | Dry-run a mapping (creates, then deletes, synthetic CRM records) |
GET | /api/v1/integrations/:id/pipedrive/pipelines | Pipedrive pipelines and stages |
GET | /api/v1/integrations/:id/pipedrive/deal-fields | Pipedrive 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/.
| Endpoint | data |
|---|---|
GET /api/v1/integrations/providers | A 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/:id | An 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 .../deliveries | Newest 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-mapping | HubSpot {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/pipelines | A list of {id, name, active, stages: [{id, name, orderNr}]} |
GET .../pipedrive/deal-fields | {smbFields, dealFields, cachedAt, fieldMap} |
Rules worth knowing
subscriptionson PATCH replaces the integration's whole subscription set, so send the complete list you want (at most 20 items). Each item is{"eventType": "lead.created", "targetUrl": "https://...", "isActive": true, "config": {...}}: onlyeventTypeis required,isActivedefaults totrueandconfigto null. An event you leave out is removed and stops being sent, an empty list removes them all, and of two items with the same event and URL only the first is kept. Subscription ids change wheneversubscriptionsordefaultTargetUrlis sent. To add or switch on one event, read the integration first (GET /api/v1/integrations/:id) and send back every subscription you want to keep, withisActive: falseon the ones that should stay off. For example, to switch on HubSpotlead.updated, send{"subscriptions": [{"eventType": "lead.created"}, {"eventType": "lead.updated"}]}. On a HubSpot, Salesforce or Pipedrive integration, an item with any other event returns400 validation_errorand nothing is saved (see Events).configis used only byexport.leads: null or{"batchSize": 100, "format": "standard"}, wherebatchSizeis a whole number from 10 to 100 andformatisstandard,biginorzoho_crm; any other key or value returns400 validation_error. Anexport.leadsitem sent withoutconfigkeeps its current settings, and null resets them to the defaults. For other events, send back theconfigyou read, or leave it out.defaultTargetUrlis for webhook integrations only (400 on a CRM). Sent withoutsubscriptions, it re-points every existing subscription, inactive ones too. Sent withsubscriptions, it fills in each subscription that has notargetUrl. A subscription with neither keeps that event's current URL, or takes the integration's first URL for a new event.statuson PATCH takesconnectedordisabled.disabledpauses all sending;connectedre-enables a disabled orneeds_attentionintegration and resets its failure count.needs_attentionis set only by SMB Sales Boost, after 5 failed deliveries in a row. One failed delivery is, for example, a live webhook event whose 5 attempts all failed, a failed CRM write, a failed push, a retry that could not reach the destination, or a test the destination rejected. A successful live delivery, test, retry or push resets the count, and a disabled integration never changes toneeds_attention. Sendingneeds_attentionreturns 400 (unless the integration already has that status). Events that happen while an integration is disabled orneeds_attentionare not queued and are never sent later. Exported leads (batched) is the exception forneeds_attention: the batches of an export made meanwhile are held for up to 7 days and sent once the integration is re-enabled.GET /api/v1/integrations/:idshowsconsecutiveFailures,lastFailureAtandlastSuccessAt.- Live events never use an inactive subscription, and webhook tests and pushes do not either: they use the active subscription for the event, else any active subscription with a URL; with none they fail with "No active subscription for this integration" (a CRM test or push goes to the connected CRM). They never use an
export.leadssubscription: a webhook whose only active event isexport.leadstakes no single leads, so its test sends a sample batch and a push to it is refused. A new URL counts as a destination change (owner email) even on an inactive subscription, and so does switching on a subscription whose URL was not active before. apiKeyon PATCH applies only to Clay integrations and to webhook integrations that already send a header API key (400 otherwise, and on a CRM). A new value replaces the key;nullor an empty string stops sending it. Pointing such an integration at a new destination URL (any URL it does not already use, even on the same host) through the API or MCP requiresapiKeyin the same request, or the PATCH returns 400 and nothing changes. The integration and its subscriptions are saved together; a500may come after the change was saved, so checkGET /api/v1/integrations/:idbefore repeating a PATCH.- Test and retry never charge credits and never add a lead to your Lead Export History, even when the retried delivery was a push; both answer 200 with
data.status(see Responses).POST /api/v1/integrations/:id/deliveries/:deliveryId/retrytakes the numericidfromGET .../deliveries(not theevt_id in the webhook body) and re-sends that delivery's stored data, to the URL it was first sent to or to the connected CRM, as a new event: a newid,occurredAtset to the time of the retry, and one attempt. A test or retry that is sent is recorded as a new delivery (the original stays), and one that fails counts towardneeds_attention, whether the destination rejected it or could not be reached (for example a timeout). On a CRM, a test writes a real record for the sample company Acme Test Co that is not removed;POST .../field-mapping/testcleans up after itself. On a paused integration, test and retry return 400 ("Integration is paused. Re-enable it first (PATCH status connected)."); a successful test or retry on aneeds_attentionintegration turns it back toconnected, which counts as re-enabling it. A retry of anexport.leadsdelivery works differently: it is queued and sent in the background, needs a connected integration (not paused and notneeds_attention) with Exported leads (batched) switched on, goes to the URL that event uses now, and can send the rest of a stopped export; see Exported leads (batched). - Field mapping: each CRM takes its own scopes (HubSpot
contactandcompany, Salesforcelead, Pipedrivepersonandorganization). Each scope maps an SMB field id (the ids insmbFields) to the CRM field's internal name, for example{"contact": {"phone": "mobilephone"}}. PATCH replaces the whole saved mapping: any field or scope of this CRM that you leave out goes back to its default, so read the mapping first and send every override you want to keep. Unknown SMB field ids are dropped (the response shows what was saved). A scope of another CRM, or a PATCH with no scope at all, returns 400validation_errorand changes nothing; use DELETE to reset the mapping.POST .../field-mapping/testtakes an optional{"mapping": {...}}to test a mapping before saving it; without it, the saved mapping is tested. The field-mapping endpoints return 400 on a webhook integration, and the Pipedrive endpoints on any other provider. pipedriveDealson PATCH (Pipedrive only, 400 otherwise) turns on Deal creation:{"enabled": true, "pipelineId": 1, "stageId": 2, "defaultValue": 0, "defaultCurrency": "USD", "expectedCloseDays": 30, "fieldMap": {}}, wheredefaultValueis 0 or more,defaultCurrency3 to 8 characters,expectedCloseDays0 to 3650, andfieldMapmaps an SMB field id to a deal field key fromGET .../pipedrive/deal-fields. Fields you send are merged into the saved settings; afieldMapyou send replaces the saved one.enabled: trueneedspipelineIdandstageIdin the same request, even when they are already saved (take them fromGET .../pipedrive/pipelines). For each lead, an open Deal already linked to the lead, or else an open Deal of the Person, is updated; otherwise a new Deal is created (a won or lost Deal is never reused).- DELETE is permanent: the integration's subscriptions, field mapping, Pipedrive deal settings and delivery history are removed and cannot be restored. Records already sent stay in the destination, and deleting a CRM integration does not remove SMB Sales Boost's access inside the CRM (revoke it there if needed). A webhook created again gets a new id and signing secret, and a CRM must be connected again in a browser. To stop sending without losing anything, PATCH
{"status": "disabled"}instead.
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:
provider(required):zapier,n8n,make,pipedream,clayorgeneric_webhook. CRMs are connected withPOST /api/v1/integrations/<crm>/connectinstead (see Connect a CRM).targetUrl(required): a public https URL, up to 2048 characters; localhost and private network addresses return 400.events(required): one or more event names (duplicates are ignored; at most 20 entries).export.leadsis not available forclay(400 validation_error); to set its batch size and format, PATCH the subscription'sconfigafterwards.displayName(optional): 1 to 100 characters; defaults to the provider name.apiKey(optional, any webhook provider, up to 500 characters): a secret sent as theX-SMB-API-Keyheader only to thistargetUrl, for example a Clay table API key. It is stored encrypted and never returned. Set it here: a later PATCH acceptsapiKeyonly for Clay and for webhooks that already send one.
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).
- Cost: 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 new lead that shares a primary phone or primary email with a lead you already received is also free (see Credits & Subscription). The credit is taken before the lead is sent: if the destination then fails, the response is a 200 with status
failedandtracked: true, the credit stays used, and because the lead now counts as received, pushing the sameleadIdagain is free. - Refused before anything is charged or sent: an integration whose status is not
connected(a disabled orneeds_attentionintegration returns 400 until you PATCH{"status": "connected"}; unlike test and retry, push does not work onneeds_attention), aleadIdthat matches your export blacklist (400), an unknownleadId(404),leadIdandleadsent together (400), and a webhook with no active subscription, or whose only active event isexport.leads(a 200 with statusfailed,tracked: falseandcreditsUsed: 0; for the second case the error is, for example, "Integration "My Zap" has no active event that takes single leads. Exported leads (batched) only receives exports."). Your own data is not checked against the blacklist. - Your own data: use the keys
email,firstName,lastName,phone,companyName,website,industry,cityandstateso CRMs can map it (the database field names, such aswCompanyNameandwEmailPrimary, also work: they are the names Lead Export HistoryleadSnapshotuses, not the display namesGET /api/v1/leadsreturns, such asCompany Name). CRMs match and create records as described under Supported providers; for example HubSpot writes a Contact only when there is an email. - What arrives: a webhook gets one
lead.createdevent, even for a lead you received before. AleadIdpush to a webhook sends the same flat lead summary as a livelead.createdevent, withsourcecrm_push. A push of your own data sends{"lead": <your object as sent>, "source": "manual_push"}; see Delivery format. For aleadIdpush, the target integration gets the lead once, from the push itself; it is left out of the backgroundlead.created/lead.updatedevents. Your other integrations still get them: a lead you had not received before sendslead.createdto your other integrations subscribed tolead.created, and re-pushing a lead you already received sendslead.updatedto your other integrations subscribed tolead.updatedonly when the lead changed since you last received it (a newer Last Buying Signal). A push of your own data goes only to the target integration. - Where it is recorded: every push is recorded in the integration's deliveries and counts toward
needs_attentionlike any other delivery. That covers every push that is sent, through the API, MCP or the dashboard (its per-lead push, or a push of selected leads from the Leads tab, where each lead counts as one delivery), to any provider, HubSpot and Salesforce included; seeGET /api/v1/integrations/:id/deliveries. AleadIdpush that passes the checks is recorded in Lead Export History withexportMethodcrm_push, even if the delivery then fails, and adds 1 tototalLeadsExportedandmonthlyLeadsExportedinGET /api/v1/me(a free re-push too);exportMethodshows the most recent channel, so a later search or export of the lead changes it. A push never creates a file in Export History, and a push refused before anything is sent is not charged and not recorded anywhere. - Errors: a
503 service_unavailableonly happens before anything is charged or sent, so it is safe to retry. A500may come after a credit was taken: checkGET /api/v1/meand the deliveries before pushing the same lead again. The response shape is under Responses.
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.
API Documentation Sections
Introduction | Programmatic Purchase | Authentication | Rate Limits | Long-Running Requests | User Profile | Enrichments | Leads | Filter Presets | Keyword Lists | Email Schedules | Export Formats | Export History | Lead Export History | Account Settings | AI Features | Export Blacklist | Error Handling | Credits & Subscription | MCP Server | MCP Tools and Permissions | Integrations API
Setting up a CRM, an automation tool or a webhook? See Tools & Integrations: providers, events, webhook payloads and signatures, Exported leads (batched) and the Zoho Flow scripts.
Ready to Find Your Next Customers? Get access to growing local business leads updated every 5 minutes. See plans starting at $49/mo →