{ "statusCode": 400, "error": "Bad Request", "message": "\"lead_ids\" must contain less than or equal to 100 items", "validation": { "source": "body", "keys": ["lead_ids"] }}
{ "message": "Invalid API Key"}
{ "ok": false, "error": "Failed to pause or resume leads"}
Lead Management
Bulk Pause or Resume Leads
Pause or resume up to 100 leads of one campaign in a single call
{ "statusCode": 400, "error": "Bad Request", "message": "\"lead_ids\" must contain less than or equal to 100 items", "validation": { "source": "body", "keys": ["lead_ids"] }}
{ "message": "Invalid API Key"}
{ "ok": false, "error": "Failed to pause or resume leads"}
Pauses or resumes many leads of one campaign with one request, instead of one request per lead. Each lead is handled exactly as Pause Lead or Resume Lead would handle it, one after another, and the response tells you which leads were updated and which failed.
A lead that fails does not stop the others. Once the request body is valid the call returns 200; check ok and the failed list rather than the HTTP status alone.
Path Parameters
number
required
The campaign ID containing the leads (positive whole number)
Query Parameters
string
required
Your SmartLead API key
Request Body
string
required
What to do with every lead in lead_ids: pause or resume (lower case).
array
required
Lead ids (positive integers, no duplicates), 1 to 100. For more leads, send several requests.
number
Used by resume only; ignored by pause. Number of days (0 or more) to wait before sending the next email, applied to every lead in the request. If omitted or null, each lead uses the default delay from the sequence configuration. The next email timestamp is calculated as last_sent_time + delay_days.
import requestsAPI_KEY = "YOUR_API_KEY"campaign_id = 123lead_ids = [5001, 5002, 5003] # any number of leads# Pause in batches of 100 (the per-request maximum)for start in range(0, len(lead_ids), 100): response = requests.post( f"https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads-bulk-action", params={"api_key": API_KEY}, json={"action": "pause", "lead_ids": lead_ids[start:start + 100]}, ) result = response.json() print(f"Paused {len(result['updated'])} leads, {len(result['failed'])} failed")# Resume the same leads later, with the default sequence delayresponse = requests.post( f"https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads-bulk-action", params={"api_key": API_KEY}, json={"action": "resume", "lead_ids": lead_ids[:100]},)result = response.json()for failure in result["failed"]: print(f"Lead {failure['lead_id']} not resumed: {failure['error']}")
const API_KEY = 'YOUR_API_KEY';const campaignId = 123;const leadIds = [5001, 5002, 5003]; // any number of leadsconst bulkAction = async (action, ids, extra = {}) => { const response = await fetch( `https://server.smartlead.ai/api/v1/campaigns/${campaignId}/leads-bulk-action?api_key=${API_KEY}`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ action, lead_ids: ids, ...extra }) } ); return response.json();};// Pause in batches of 100 (the per-request maximum)for (let start = 0; start < leadIds.length; start += 100) { const result = await bulkAction('pause', leadIds.slice(start, start + 100)); console.log(`Paused ${result.updated.length} leads, ${result.failed.length} failed`);}// Resume later with a 3 day delayconst result = await bulkAction('resume', leadIds.slice(0, 100), { resume_lead_with_delay_days: 3 });result.failed.forEach((failure) => console.log(`Lead ${failure.lead_id} not resumed: ${failure.error}`));
Response Fields
boolean
true when every lead was updated; false when at least one lead is in failed.
string
The action you sent: pause or resume.
array
The lead ids that were paused or resumed, in the order you sent them.
array
One entry per lead that was not updated.
Show failed entry
number
The lead id that failed.
number
The status code the one-lead endpoint returns for this failure (for example 404, 409 or 500).
string
The error text the one-lead endpoint returns for this failure. For an unexpected error (status_code500 with no code) it is the fixed text Failed to pause lead or Failed to resume lead.
string
Present on some resume failures: LAST_SEQUENCE (the lead is at the last sequence step and cannot be resumed) or LEAD_NOT_IN_CAMPAIGN (the lead is not in this campaign). Do not retry these.
Response Codes
Success
The request was processed. Check ok, updated and failed for the result per lead.
Bad Request
The request is not valid: action is missing or not pause / resume, lead_ids is missing, empty, has more than 100 ids, has duplicates or ids that are not positive integers, resume_lead_with_delay_days is negative or not a number, or the body has an unknown key. Nothing is changed.
Unauthorized
Invalid or missing API key
Internal Server Error
The request as a whole failed unexpectedly. Some leads may already have been updated; check them with Get Campaign Leads before retrying.
{ "statusCode": 400, "error": "Bad Request", "message": "\"lead_ids\" must contain less than or equal to 100 items", "validation": { "source": "body", "keys": ["lead_ids"] }}
{ "message": "Invalid API Key"}
{ "ok": false, "error": "Failed to pause or resume leads"}
Behavior Notes
Leads are processed one after another in the order you send them, so a request with 100 leads takes longer than a one-lead call. Allow a client timeout of at least 60 seconds.
pause behaves like Pause Lead for each lead: status changes to PAUSED, the next scheduled time is cleared and drafted emails are marked as STOPPED.
resume behaves like Resume Lead for each lead: status changes to INPROGRESS and the next email is scheduled from the delay. A lead on the last sequence step cannot be resumed and is returned in failed.
As with Pause Lead, pause does not check that a lead id belongs to the campaign: an id that is not in the campaign changes nothing and is still returned in updated. resume does check, and returns such an id in failed with LEAD_NOT_IN_CAMPAIGN.
If the campaign does not exist or your API key cannot access it, nothing is changed and every lead is returned in failed with status_code404.
One call counts as one request against your rate limit, whatever the number of leads.
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"SmartLead API","colors":{"primary":"#000566","light":"#757AE9","dark":"#000566"},"favicon":"https://mintcdn.com/smartlead/COEjuXjCS9X-N73L/smartleadHighResLogoSL.png?fit=max\u0026auto=format\u0026n=COEjuXjCS9X-N73L\u0026q=85\u0026s=b10b8accf21ec19997322be83b71af46","logo":{"light":"https://mintcdn.com/smartlead/COEjuXjCS9X-N73L/smartleadHighResLogoSL.png?fit=max\u0026auto=format\u0026n=COEjuXjCS9X-N73L\u0026q=85\u0026s=b10b8accf21ec19997322be83b71af46","dark":"https://mintcdn.com/smartlead/COEjuXjCS9X-N73L/smartleadHighResLogoSL.png?fit=max\u0026auto=format\u0026n=COEjuXjCS9X-N73L\u0026q=85\u0026s=b10b8accf21ec19997322be83b71af46"},"navbar":{"links":[{"label":"Support","href":"mailto:support@smartlead.ai"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.smartlead.ai"}},"seo":{"metatags":{"og:site_name":"SmartLead API Documentation","og:description":"Automate cold email outreach with the SmartLead API — manage campaigns, leads, email accounts, sequences, and analytics programmatically","og:image":"https://api.smartlead.ai/smartleadHighResLogoSL.png","twitter:site":"@smartlead_ai"},"indexing":"navigable"},"footer":{"socials":{"twitter":"https://twitter.com/smartlead_ai","linkedin":"https://www.linkedin.com/company/smartlead-ai"}},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Community","href":"https://discord.gg/smartlead","icon":"discord"},{"anchor":"Blog","href":"https://smartlead.ai/blog","icon":"newspaper"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"smartlead","hasAudioNarration":false,"actualSubdomain":"smartlead","customDomains":["api.smartlead.ai"],"gitSource":{"type":"github","owner":"smartlead-public","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0f0c2a16933c65eff39f2a","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API Reference","count":272},{"language":"default","tag":"Smart Delivery v2 (Deliverability Test)","count":31},{"language":"default","tag":"Smart Prospect","count":31},{"language":"default","tag":"Campaign Management","count":30},{"language":"default","tag":"Master Inbox","count":29},{"language":"default","tag":"Global Analytics","count":23},{"language":"default","tag":"Documentation","count":21},{"language":"default","tag":"Email Account Management","count":19},{"language":"default","tag":"Campaign Leads","count":16},{"language":"default","tag":"Lead Management","count":16}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/leads/bulk-pause-resume","slug":"/api-reference/leads/bulk-pause-resume","pageMetadata":{"title":"Bulk Pause or Resume Leads","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads-bulk-action","description":"Pause or resume up to 100 leads of one campaign in a single call","href":"/api-reference/leads/bulk-pause-resume"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Pause or resume up to 100 leads of one campaign in a single call\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,Info,Note,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Pauses or resumes many leads of one campaign with one request, instead of one request per lead. Each lead is handled exactly as `,_jsx(_components.a,{href:`/api-reference/leads/pause`,children:`Pause Lead`}),` or `,_jsx(_components.a,{href:`/api-reference/leads/resume`,children:`Resume Lead`}),` would handle it, one after another, and the response tells you which leads were updated and which failed.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A lead that fails does not stop the others. Once the request body is valid the call returns `,_jsx(_components.code,{children:`200`}),`; check `,_jsx(_components.code,{children:`ok`}),` and the `,_jsx(_components.code,{children:`failed`}),` list rather than the HTTP status alone.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`campaign_id`,type:`number`,required:true,id:`param-campaign-id`,children:_jsx(_components.p,{children:`The campaign ID containing the leads (positive whole number)`})}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`api_key`,type:`string`,required:true,id:`param-api-key`,children:_jsx(_components.p,{children:`Your SmartLead API key`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`action`,type:`string`,required:true,id:`param-action`,children:_jsxs(_components.p,{children:[`What to do with every lead in `,_jsx(_components.code,{children:`lead_ids`}),`: `,_jsx(_components.code,{children:`pause`}),` or `,_jsx(_components.code,{children:`resume`}),` (lower case).`]})}),`\n`,_jsx(ParamField,{body:`lead_ids`,type:`array`,required:true,id:`param-lead-ids`,children:_jsx(_components.p,{children:`Lead ids (positive integers, no duplicates), 1 to 100. For more leads, send several requests.`})}),`\n`,_jsx(ParamField,{body:`resume_lead_with_delay_days`,type:`number`,id:`param-resume-lead-with-delay-days`,children:_jsxs(_components.p,{children:[`Used by `,_jsx(_components.code,{children:`resume`}),` only; ignored by `,_jsx(_components.code,{children:`pause`}),`. Number of days (0 or more) to wait before sending the next email, applied to every lead in the request. If omitted or `,_jsx(_components.code,{children:`null`}),`, each lead uses the default delay from the sequence configuration. The next email timestamp is calculated as `,_jsx(_components.code,{children:`last_sent_time + delay_days`}),`.`]})}),`\n`,`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response Fields`}),`\n`,_jsx(ResponseField,{name:`ok`,type:`boolean`,id:`param-ok`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when every lead was updated; `,_jsx(_components.code,{children:`false`}),` when at least one lead is in `,_jsx(_components.code,{children:`failed`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`action`,type:`string`,id:`param-action-1`,children:_jsxs(_components.p,{children:[`The action you sent: `,_jsx(_components.code,{children:`pause`}),` or `,_jsx(_components.code,{children:`resume`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`updated`,type:`array`,id:`param-updated`,children:_jsx(_components.p,{children:`The lead ids that were paused or resumed, in the order you sent them.`})}),`\n`,_jsxs(ResponseField,{name:`failed`,type:`array`,id:`param-failed`,children:[_jsx(_components.p,{children:`One entry per lead that was not updated.`}),_jsxs(Expandable,{title:`failed entry`,children:[_jsx(ResponseField,{name:`lead_id`,type:`number`,id:`param-lead-id`,children:_jsx(_components.p,{children:`The lead id that failed.`})}),_jsx(ResponseField,{name:`status_code`,type:`number`,id:`param-status-code`,children:_jsxs(_components.p,{children:[`The status code the one-lead endpoint returns for this failure (for example `,_jsx(_components.code,{children:`404`}),`, `,_jsx(_components.code,{children:`409`}),` or `,_jsx(_components.code,{children:`500`}),`).`]})}),_jsx(ResponseField,{name:`error`,type:`string`,id:`param-error`,children:_jsxs(_components.p,{children:[`The error text the one-lead endpoint returns for this failure. For an unexpected error (`,_jsx(_components.code,{children:`status_code`}),` `,_jsx(_components.code,{children:`500`}),` with no `,_jsx(_components.code,{children:`code`}),`) it is the fixed text `,_jsx(_components.code,{children:`Failed to pause lead`}),` or `,_jsx(_components.code,{children:`Failed to resume lead`}),`.`]})}),_jsx(ResponseField,{name:`code`,type:`string`,id:`param-code`,children:_jsxs(_components.p,{children:[`Present on some `,_jsx(_components.code,{children:`resume`}),` failures: `,_jsx(_components.code,{children:`LAST_SEQUENCE`}),` (the lead is at the last sequence step and cannot be resumed) or `,_jsx(_components.code,{children:`LEAD_NOT_IN_CAMPAIGN`}),` (the lead is not in this campaign). Do not retry these.`]})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-codes`,children:`Response Codes`}),`\n`,_jsx(ResponseField,{name:`200`,type:`Success`,id:`param-200`,children:_jsxs(_components.p,{children:[`The request was processed. Check `,_jsx(_components.code,{children:`ok`}),`, `,_jsx(_components.code,{children:`updated`}),` and `,_jsx(_components.code,{children:`failed`}),` for the result per lead.`]})}),`\n`,_jsx(ResponseField,{name:`400`,type:`Bad Request`,id:`param-400`,children:_jsxs(_components.p,{children:[`The request is not valid: `,_jsx(_components.code,{children:`action`}),` is missing or not `,_jsx(_components.code,{children:`pause`}),` / `,_jsx(_components.code,{children:`resume`}),`, `,_jsx(_components.code,{children:`lead_ids`}),` is missing, empty, has more than 100 ids, has duplicates or ids that are not positive integers, `,_jsx(_components.code,{children:`resume_lead_with_delay_days`}),` is negative or not a number, or the body has an unknown key. Nothing is changed.`]})}),`\n`,_jsx(ResponseField,{name:`401`,type:`Unauthorized`,id:`param-401`,children:_jsx(_components.p,{children:`Invalid or missing API key`})}),`\n`,_jsx(ResponseField,{name:`500`,type:`Internal Server Error`,id:`param-500`,children:_jsxs(_components.p,{children:[`The request as a whole failed unexpectedly. Some leads may already have been updated; check them with `,_jsx(_components.a,{href:`/api-reference/leads/get-by-campaign`,children:`Get Campaign Leads`}),` before retrying.`]})}),`\n`,`\n`,_jsx(Heading,{level:`2`,id:`behavior-notes`,children:`Behavior Notes`}),`\n`,_jsx(Info,{children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Leads are processed one after another in the order you send them, so a request with 100 leads takes longer than a one-lead call. Allow a client timeout of at least 60 seconds.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pause`}),` behaves like `,_jsx(_components.a,{href:`/api-reference/leads/pause`,children:`Pause Lead`}),` for each lead: status changes to `,_jsx(_components.code,{children:`PAUSED`}),`, the next scheduled time is cleared and drafted emails are marked as `,_jsx(_components.code,{children:`STOPPED`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`resume`}),` behaves like `,_jsx(_components.a,{href:`/api-reference/leads/resume`,children:`Resume Lead`}),` for each lead: status changes to `,_jsx(_components.code,{children:`INPROGRESS`}),` and the next email is scheduled from the delay. A lead on the last sequence step cannot be resumed and is returned in `,_jsx(_components.code,{children:`failed`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`As with Pause Lead, `,_jsx(_components.code,{children:`pause`}),` does not check that a lead id belongs to the campaign: an id that is not in the campaign changes nothing and is still returned in `,_jsx(_components.code,{children:`updated`}),`. `,_jsx(_components.code,{children:`resume`}),` does check, and returns such an id in `,_jsx(_components.code,{children:`failed`}),` with `,_jsx(_components.code,{children:`LEAD_NOT_IN_CAMPAIGN`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`If the campaign does not exist or your API key cannot access it, nothing is changed and every lead is returned in `,_jsx(_components.code,{children:`failed`}),` with `,_jsx(_components.code,{children:`status_code`}),` `,_jsx(_components.code,{children:`404`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`One call counts as one request against your `,_jsx(_components.a,{href:`/guides/rate-limits`,children:`rate limit`}),`, whatever the number of leads.`]}),`\n`]})}),`\n`,_jsx(Heading,{level:`2`,id:`related-endpoints`,children:`Related Endpoints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/leads/pause`,children:`Pause Lead`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/leads/resume`,children:`Resume Lead`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/leads/get-by-campaign`,children:`Get Campaign Leads`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Bulk Pause or Resume Leads","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads-bulk-action","description":"Pause or resume up to 100 leads of one campaign in a single call","href":"/api-reference/leads/bulk-pause-resume"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,Info,Note,ParamField,RequestExample,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Pauses or resumes many leads of one campaign with one request, instead of one request per lead. Each lead is handled exactly as `,_jsx(_components.a,{href:`/api-reference/leads/pause`,children:`Pause Lead`}),` or `,_jsx(_components.a,{href:`/api-reference/leads/resume`,children:`Resume Lead`}),` would handle it, one after another, and the response tells you which leads were updated and which failed.`]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`A lead that fails does not stop the others. Once the request body is valid the call returns `,_jsx(_components.code,{children:`200`}),`; check `,_jsx(_components.code,{children:`ok`}),` and the `,_jsx(_components.code,{children:`failed`}),` list rather than the HTTP status alone.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`campaign_id`,type:`number`,required:true,id:`param-campaign-id`,children:_jsx(_components.p,{children:`The campaign ID containing the leads (positive whole number)`})}),`\n`,_jsx(Heading,{level:`2`,id:`query-parameters`,children:`Query Parameters`}),`\n`,_jsx(ParamField,{query:`api_key`,type:`string`,required:true,id:`param-api-key`,children:_jsx(_components.p,{children:`Your SmartLead API key`})}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(ParamField,{body:`action`,type:`string`,required:true,id:`param-action`,children:_jsxs(_components.p,{children:[`What to do with every lead in `,_jsx(_components.code,{children:`lead_ids`}),`: `,_jsx(_components.code,{children:`pause`}),` or `,_jsx(_components.code,{children:`resume`}),` (lower case).`]})}),`\n`,_jsx(ParamField,{body:`lead_ids`,type:`array`,required:true,id:`param-lead-ids`,children:_jsx(_components.p,{children:`Lead ids (positive integers, no duplicates), 1 to 100. For more leads, send several requests.`})}),`\n`,_jsx(ParamField,{body:`resume_lead_with_delay_days`,type:`number`,id:`param-resume-lead-with-delay-days`,children:_jsxs(_components.p,{children:[`Used by `,_jsx(_components.code,{children:`resume`}),` only; ignored by `,_jsx(_components.code,{children:`pause`}),`. Number of days (0 or more) to wait before sending the next email, applied to every lead in the request. If omitted or `,_jsx(_components.code,{children:`null`}),`, each lead uses the default delay from the sequence configuration. The next email timestamp is calculated as `,_jsx(_components.code,{children:`last_sent_time + delay_days`}),`.`]})}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL (pause)`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://server.smartlead.ai/api/v1/campaigns/123/leads-bulk-action?api_key=YOUR_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"action\": \"pause\", \"lead_ids\": [5001, 5002, 5003]}'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`cURL (resume)`,numberOfLines:`3`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`3`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://server.smartlead.ai/api/v1/campaigns/123/leads-bulk-action?api_key=YOUR_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{\"action\": \"resume\", \"lead_ids\": [5001, 5002, 5003], \"resume_lead_with_delay_days\": 3}'`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`25`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_API_KEY\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`campaign_id `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 123`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`lead_ids `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5001`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5002`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5003`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`] `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# any number of leads`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Pause in batches of 100 (the per-request maximum)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` start `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` range`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`len`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(lead_ids), `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`):`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://server.smartlead.ai/api/v1/campaigns/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`campaign_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/leads-bulk-action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"api_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pause\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"lead_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: lead_ids[start:start `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`+`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Paused `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`len`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'updated'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` leads, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`len`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'failed'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Resume the same leads later, with the default sequence delay`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` requests.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://server.smartlead.ai/api/v1/campaigns/`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`campaign_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/leads-bulk-action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"api_key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resume\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"lead_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: lead_ids[:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`result `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` response.json()`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` failure `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`in`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` result[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]:`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`f`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Lead `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`failure[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'lead_id'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` not resumed: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`{`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`failure[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'error'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`25`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` API_KEY`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'YOUR_API_KEY'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` campaignId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` leadIds`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5001`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5002`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5003`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]; `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// any number of leads`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` bulkAction`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` async`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`action`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`ids`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`extra`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {}) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" `https://server.smartlead.ai/api/v1/campaigns/\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`campaignId`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`/leads-bulk-action?api_key=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`API_KEY`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'POST'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'Content-Type'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'application/json'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`action`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lead_ids:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ids`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`extra`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` );`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Pause in batches of 100 (the per-request maximum)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`let`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` start`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`start`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` leadIds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`; `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`start`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` bulkAction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'pause'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`leadIds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`slice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`start`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`start`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Paused \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`updated`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` leads, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`failed`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:`length`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\" failed`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Resume later with a 3 day delay`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` bulkAction`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'resume'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`leadIds`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`slice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`100`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resume_lead_with_delay_days:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 3`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`failed`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`forEach`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`failure`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`Lead \"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`failure`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`lead_id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` not resumed: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`failure`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`error`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-fields`,children:`Response Fields`}),`\n`,_jsx(ResponseField,{name:`ok`,type:`boolean`,id:`param-ok`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`true`}),` when every lead was updated; `,_jsx(_components.code,{children:`false`}),` when at least one lead is in `,_jsx(_components.code,{children:`failed`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`action`,type:`string`,id:`param-action-1`,children:_jsxs(_components.p,{children:[`The action you sent: `,_jsx(_components.code,{children:`pause`}),` or `,_jsx(_components.code,{children:`resume`}),`.`]})}),`\n`,_jsx(ResponseField,{name:`updated`,type:`array`,id:`param-updated`,children:_jsx(_components.p,{children:`The lead ids that were paused or resumed, in the order you sent them.`})}),`\n`,_jsxs(ResponseField,{name:`failed`,type:`array`,id:`param-failed`,children:[_jsx(_components.p,{children:`One entry per lead that was not updated.`}),_jsxs(Expandable,{title:`failed entry`,children:[_jsx(ResponseField,{name:`lead_id`,type:`number`,id:`param-lead-id`,children:_jsx(_components.p,{children:`The lead id that failed.`})}),_jsx(ResponseField,{name:`status_code`,type:`number`,id:`param-status-code`,children:_jsxs(_components.p,{children:[`The status code the one-lead endpoint returns for this failure (for example `,_jsx(_components.code,{children:`404`}),`, `,_jsx(_components.code,{children:`409`}),` or `,_jsx(_components.code,{children:`500`}),`).`]})}),_jsx(ResponseField,{name:`error`,type:`string`,id:`param-error`,children:_jsxs(_components.p,{children:[`The error text the one-lead endpoint returns for this failure. For an unexpected error (`,_jsx(_components.code,{children:`status_code`}),` `,_jsx(_components.code,{children:`500`}),` with no `,_jsx(_components.code,{children:`code`}),`) it is the fixed text `,_jsx(_components.code,{children:`Failed to pause lead`}),` or `,_jsx(_components.code,{children:`Failed to resume lead`}),`.`]})}),_jsx(ResponseField,{name:`code`,type:`string`,id:`param-code`,children:_jsxs(_components.p,{children:[`Present on some `,_jsx(_components.code,{children:`resume`}),` failures: `,_jsx(_components.code,{children:`LAST_SEQUENCE`}),` (the lead is at the last sequence step and cannot be resumed) or `,_jsx(_components.code,{children:`LEAD_NOT_IN_CAMPAIGN`}),` (the lead is not in this campaign). Do not retry these.`]})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response-codes`,children:`Response Codes`}),`\n`,_jsx(ResponseField,{name:`200`,type:`Success`,id:`param-200`,children:_jsxs(_components.p,{children:[`The request was processed. Check `,_jsx(_components.code,{children:`ok`}),`, `,_jsx(_components.code,{children:`updated`}),` and `,_jsx(_components.code,{children:`failed`}),` for the result per lead.`]})}),`\n`,_jsx(ResponseField,{name:`400`,type:`Bad Request`,id:`param-400`,children:_jsxs(_components.p,{children:[`The request is not valid: `,_jsx(_components.code,{children:`action`}),` is missing or not `,_jsx(_components.code,{children:`pause`}),` / `,_jsx(_components.code,{children:`resume`}),`, `,_jsx(_components.code,{children:`lead_ids`}),` is missing, empty, has more than 100 ids, has duplicates or ids that are not positive integers, `,_jsx(_components.code,{children:`resume_lead_with_delay_days`}),` is negative or not a number, or the body has an unknown key. Nothing is changed.`]})}),`\n`,_jsx(ResponseField,{name:`401`,type:`Unauthorized`,id:`param-401`,children:_jsx(_components.p,{children:`Invalid or missing API key`})}),`\n`,_jsx(ResponseField,{name:`500`,type:`Internal Server Error`,id:`param-500`,children:_jsxs(_components.p,{children:[`The request as a whole failed unexpectedly. Some leads may already have been updated; check them with `,_jsx(_components.a,{href:`/api-reference/leads/get-by-campaign`,children:`Get Campaign Leads`}),` before retrying.`]})}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200 - All leads updated`,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pause\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5001`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5002`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5003`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`200 - Some leads failed (resume)`,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"resume\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5001`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lead_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5002`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`409`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"This is the last sequence. You cannot resume this lead.\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LAST_SEQUENCE\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lead_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5003`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`500`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid lead id!\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"LEAD_NOT_IN_CAMPAIGN\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`200 - Campaign not found`,numberOfLines:`12`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"action\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pause\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"updated\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"failed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lead_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`5001`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status_code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`404`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Campaign not found - Invalid campaign_id.\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`400 - Validation Error`,numberOfLines:`9`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`9`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"statusCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`400`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Bad Request\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`lead_ids`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:`\\\\\"`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` must contain less than or equal to 100 items\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"validation\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"body\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"keys\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"lead_ids\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`401 - Unauthorized`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid API Key\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`500 - Server Error`,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"ok\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Failed to pause or resume leads\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`behavior-notes`,children:`Behavior Notes`}),`\n`,_jsx(Info,{children:_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Leads are processed one after another in the order you send them, so a request with 100 leads takes longer than a one-lead call. Allow a client timeout of at least 60 seconds.`}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`pause`}),` behaves like `,_jsx(_components.a,{href:`/api-reference/leads/pause`,children:`Pause Lead`}),` for each lead: status changes to `,_jsx(_components.code,{children:`PAUSED`}),`, the next scheduled time is cleared and drafted emails are marked as `,_jsx(_components.code,{children:`STOPPED`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`resume`}),` behaves like `,_jsx(_components.a,{href:`/api-reference/leads/resume`,children:`Resume Lead`}),` for each lead: status changes to `,_jsx(_components.code,{children:`INPROGRESS`}),` and the next email is scheduled from the delay. A lead on the last sequence step cannot be resumed and is returned in `,_jsx(_components.code,{children:`failed`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`As with Pause Lead, `,_jsx(_components.code,{children:`pause`}),` does not check that a lead id belongs to the campaign: an id that is not in the campaign changes nothing and is still returned in `,_jsx(_components.code,{children:`updated`}),`. `,_jsx(_components.code,{children:`resume`}),` does check, and returns such an id in `,_jsx(_components.code,{children:`failed`}),` with `,_jsx(_components.code,{children:`LEAD_NOT_IN_CAMPAIGN`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`If the campaign does not exist or your API key cannot access it, nothing is changed and every lead is returned in `,_jsx(_components.code,{children:`failed`}),` with `,_jsx(_components.code,{children:`status_code`}),` `,_jsx(_components.code,{children:`404`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`One call counts as one request against your `,_jsx(_components.a,{href:`/guides/rate-limits`,children:`rate limit`}),`, whatever the number of leads.`]}),`\n`]})}),`\n`,_jsx(Heading,{level:`2`,id:`related-endpoints`,children:`Related Endpoints`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/leads/pause`,children:`Pause Lead`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/leads/resume`,children:`Resume Lead`})}),`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`/api-reference/leads/get-by-campaign`,children:`Get Campaign Leads`})}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Bulk Pause or Resume Leads","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads-bulk-action","description":"Pause or resume up to 100 leads of one campaign in a single call","href":"/api-reference/leads/bulk-pause-resume"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Query Parameters","slug":"query-parameters","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response Fields","slug":"response-fields","depth":2,"children":[]},{"title":"Response Codes","slug":"response-codes","depth":2,"children":[]},{"title":"Behavior Notes","slug":"behavior-notes","depth":2,"children":[]},{"title":"Related Endpoints","slug":"related-endpoints","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL (pause)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://server.smartlead.ai/api/v1/campaigns/123/leads-bulk-action?api_key=YOUR_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\"action\": \"pause\", \"lead_ids\": [5001, 5002, 5003]}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"cURL (resume)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://server.smartlead.ai/api/v1/campaigns/123/leads-bulk-action?api_key=YOUR_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"Content-Type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\"action\": \"resume\", \"lead_ids\": [5001, 5002, 5003], \"resume_lead_with_delay_days\": 3}'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"25\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">API_KEY\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"YOUR_API_KEY\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">campaign_id \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 123\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">lead_ids \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5001\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5002\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5003\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">] \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># any number of leads\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># Pause in batches of 100 (the per-request maximum)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">for\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> start \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">in\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> range\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">len\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(lead_ids), \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">100\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">):\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://server.smartlead.ai/api/v1/campaigns/\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">campaign_id\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/leads-bulk-action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> params\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"api_key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">API_KEY\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pause\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"lead_ids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: lead_ids[start:start \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">+\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 100\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> )\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> result \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response.json()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Paused \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">len\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(result[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'updated'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">])\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> leads, \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">len\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(result[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'failed'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">])\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\"># Resume the same leads later, with the default sequence delay\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> requests.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://server.smartlead.ai/api/v1/campaigns/\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">campaign_id\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/leads-bulk-action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> params\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"api_key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#D4D4D4\">API_KEY\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"resume\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"lead_ids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: lead_ids[:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">100\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">result \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> response.json()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">for\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> failure \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">in\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> result[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]:\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\"> print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">f\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Lead \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">failure[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'lead_id'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> not resumed: \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">{\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">failure[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'error'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"25\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> API_KEY\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'YOUR_API_KEY'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> campaignId\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 123\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">;\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> leadIds\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> [\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5001\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5002\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5003\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]; \u003c/span>\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// any number of leads\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> bulkAction\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> async\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">action\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">ids\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">extra\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {}) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">=>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> `https://server.smartlead.ai/api/v1/campaigns/\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">campaignId\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">/leads-bulk-action?api_key=\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\">API_KEY\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'POST'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'Content-Type'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> 'application/json'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({ \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">action\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">lead_ids:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> ids\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">...\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">extra\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> })\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> );\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> return\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">};\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// Pause in batches of 100 (the per-request maximum)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">for\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> (\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">let\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> start\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">; \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">start\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> \u0026#x3C;\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> leadIds\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#9CDCFE\">length\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">; \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">start\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> +=\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 100\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\"> const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> result\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> bulkAction\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'pause'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">leadIds\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">slice\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">start\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">start\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> +\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 100\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">));\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`Paused \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">result\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">updated\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#9CDCFE\">length\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> leads, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">result\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">failed\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#9CDCFE\">length\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> failed`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#6E7781;--shiki-dark:#6A9955\">// Resume later with a 3 day delay\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> result\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> bulkAction\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">'resume'\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">leadIds\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">slice\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">0\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">100\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">), { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">resume_lead_with_delay_days:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 3\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> });\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">result\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">failed\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">forEach\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">((\u003c/span>\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\">failure\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">) \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">=>\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`Lead \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">failure\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">lead_id\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> not resumed: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">${\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">failure\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">error\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#569CD6\">}\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">`\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">));\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200 - All leads updated","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"6\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ok\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">true\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pause\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5001\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5002\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5003\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"200 - Some leads failed (resume)","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ok\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"resume\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5001\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lead_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5002\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">409\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"This is the last sequence. You cannot resume this lead.\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"LAST_SEQUENCE\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lead_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5003\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">500\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Invalid lead id!\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"LEAD_NOT_IN_CAMPAIGN\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"200 - Campaign not found","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"12\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ok\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"action\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pause\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"updated\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"lead_id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">5001\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status_code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">404\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Campaign not found - Invalid campaign_id.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"400 - Validation Error","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"9\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"statusCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">400\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Bad Request\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">lead_ids\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\">\\\"\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> must contain less than or equal to 100 items\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"validation\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"source\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"body\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"keys\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"lead_ids\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"401 - Unauthorized","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Invalid API Key\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"500 - Server Error","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"4\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"ok\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"error\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Failed to pause or resume leads\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Bulk Pause or Resume Leads","path":"/api/v1/campaigns/{campaign_id}/leads-bulk-action","servers":[{"url":"https://server.smartlead.ai"}],"method":"post","request":{"security":[],"parameters":{"query":{"api_key":{"schema":[{"type":"string","description":"Your SmartLead API key","required":true}]}},"header":{},"cookie":{},"path":{"campaign_id":{"schema":[{"type":"number","description":"The campaign ID containing the leads (positive whole number)","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"action":[{"type":"string","description":"What to do with every lead in `lead_ids` : `pause` or `resume` (lower case).","required":true}],"lead_ids":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"Lead ids (positive integers, no duplicates), 1 to 100. For more leads, send several requests.","required":true}],"resume_lead_with_delay_days":[{"type":"number","description":"Used by `resume` only; ignored by `pause` . Number of days (0 or more) to wait before sending the next email, applied to every lead in the request. If omitted or `null` , each lead uses the default delay from the sequence configuration. The next email timestamp is calculated as `last_sent_time + delay_days` ."}]}}],"examples":{"example":{"value":{"action":"\u003cstring>","lead_ids":[{}],"resume_lead_with_delay_days":123}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"200":[{"type":"object","properties":{},"description":"The request was processed. Check `ok` , `updated` and `failed` for the result per lead."}],"400":[{"type":"object","properties":{},"description":"The request is not valid: `action` is missing or not `pause` / `resume` , `lead_ids` is missing, empty, has more than 100 ids, has duplicates or ids that are not positive integers, `resume_lead_with_delay_days` is negative or not a number, or the body has an unknown key. Nothing is changed."}],"401":[{"type":"object","properties":{},"description":"Invalid or missing API key"}],"500":[{"type":"object","properties":{},"description":"The request as a whole failed unexpectedly. Some leads may already have been updated; check them with Get Campaign Leads before retrying."}],"ok":[{"type":"boolean","description":"`true` when every lead was updated; `false` when at least one lead is in `failed` ."}],"action":[{"type":"string","description":"The action you sent: `pause` or `resume` ."}],"updated":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"The lead ids that were paused or resumed, in the order you sent them."}],"failed":[{"type":"array","items":[{"type":"object","properties":{"lead_id":[{"type":"number","description":"The lead id that failed."}],"status_code":[{"type":"number","description":"The status code the one-lead endpoint returns for this failure (for example `404` , `409` or `500` )."}],"error":[{"type":"string","description":"The error text the one-lead endpoint returns for this failure. For an unexpected error ( `status_code` `500` with no `code` ) it is the fixed text `Failed to pause lead` or `Failed to resume lead` ."}],"code":[{"type":"string","description":"Present on some `resume` failures: `LAST_SEQUENCE` (the lead is at the last sequence step and cannot be resumed) or `LEAD_NOT_IN_CAMPAIGN` (the lead is not in this campaign). Do not retry these."}]}}],"description":"One entry per lead that was not updated."}]}}],"examples":{"example":{"value":{"200":{},"400":{},"401":{},"500":{},"ok":true,"action":"\u003cstring>","updated":[{}],"failed":[{"lead_id":123,"status_code":123,"error":"\u003cstring>","code":"\u003cstring>"}]}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"smartlead","siteName":"SmartLead API","title":"Bulk Pause or Resume Leads - SmartLead API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-01T16:45:16.025Z","originalFileLocation":"api-reference/leads/bulk-pause-resume.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Pause or resume up to 100 leads of one campaign in a single call\">\u003cmeta data-mint-head name=\"application-name\" content=\"SmartLead API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/smartlead/nfHT53KN2IkDRvL7/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/smartlead/nfHT53KN2IkDRvL7/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/smartlead/nfHT53KN2IkDRvL7/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/smartlead/nfHT53KN2IkDRvL7/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/smartlead/nfHT53KN2IkDRvL7/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/smartlead/nfHT53KN2IkDRvL7/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/smartlead/nfHT53KN2IkDRvL7/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/smartlead/nfHT53KN2IkDRvL7/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/smartlead/nfHT53KN2IkDRvL7/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Bulk Pause or Resume Leads - SmartLead API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Automate cold email outreach with the SmartLead API — manage campaigns, leads, email accounts, sequences, and analytics programmatically\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SmartLead API Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://api.smartlead.ai/api-reference/leads/bulk-pause-resume\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://api.smartlead.ai/smartleadHighResLogoSL.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Bulk Pause or Resume Leads - SmartLead API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Automate cold email outreach with the SmartLead API — manage campaigns, leads, email accounts, sequences, and analytics programmatically\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://api.smartlead.ai/smartleadHighResLogoSL.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/smartlead/nfHT53KN2IkDRvL7/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SmartLead API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#000566\">\u003clink data-mint-head rel=\"canonical\" href=\"https://api.smartlead.ai/api-reference/leads/bulk-pause-resume\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/leads/bulk-pause-resume.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://api.smartlead.ai/#organization\",\"name\":\"SmartLead API\",\"url\":\"https://api.smartlead.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/smartlead/COEjuXjCS9X-N73L/smartleadHighResLogoSL.png?fit=max\u0026auto=format\u0026n=COEjuXjCS9X-N73L\u0026q=85\u0026s=b10b8accf21ec19997322be83b71af46\"}},{\"@type\":\"WebSite\",\"@id\":\"https://api.smartlead.ai#website\",\"name\":\"SmartLead API\",\"url\":\"https://api.smartlead.ai\",\"publisher\":{\"@id\":\"https://api.smartlead.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://api.smartlead.ai/api-reference/leads/bulk-pause-resume#webpage\",\"url\":\"https://api.smartlead.ai/api-reference/leads/bulk-pause-resume\",\"name\":\"Bulk Pause or Resume Leads\",\"description\":\"Pause or resume up to 100 leads of one campaign in a single call\",\"dateModified\":\"2026-12-01T16:45:16.025Z\",\"isPartOf\":{\"@id\":\"https://api.smartlead.ai#website\"},\"breadcrumb\":{\"@id\":\"https://api.smartlead.ai/api-reference/leads/bulk-pause-resume#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://api.smartlead.ai/api-reference/leads/bulk-pause-resume#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Lead Management\",\"item\":\"https://api.smartlead.ai/api-reference/leads/get-by-email\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bulk Pause or Resume Leads\",\"item\":\"https://api.smartlead.ai/api-reference/leads/bulk-pause-resume\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://api.smartlead.ai/api-reference/leads/bulk-pause-resume#apireference\",\"headline\":\"Bulk Pause or Resume Leads\",\"name\":\"Bulk Pause or Resume Leads\",\"description\":\"Pause or resume up to 100 leads of one campaign in a single call\",\"url\":\"https://api.smartlead.ai/api-reference/leads/bulk-pause-resume\",\"mainEntityOfPage\":{\"@id\":\"https://api.smartlead.ai/api-reference/leads/bulk-pause-resume#webpage\"},\"image\":\"https://api.smartlead.ai/smartleadHighResLogoSL.png\",\"dateModified\":\"2026-12-01T16:45:16.025Z\",\"publisher\":{\"@id\":\"https://api.smartlead.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://api.smartlead.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SmartLead API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SmartLead API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/leads/bulk-pause-resume.md","siteName":"SmartLead API","nav":{"global":{"anchors":[{"anchor":"Community","href":"https://discord.gg/smartlead","icon":"discord"},{"anchor":"Blog","href":"https://smartlead.ai/blog","icon":"newspaper"}]},"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Campaign Management","pages":[{"title":"Get All Campaigns","api":"GET https://server.smartlead.ai/api/v1/campaigns/","href":"/api-reference/campaigns/get-all"},{"title":"Get Campaign by ID","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}","href":"/api-reference/campaigns/get-by-id"},{"title":"Create Campaign","api":"POST https://server.smartlead.ai/api/v1/campaigns/create","href":"/api-reference/campaigns/create"},{"title":"Update Campaign Status","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/status","href":"/api-reference/campaigns/update-status"},{"title":"Bulk Pause or Stop Campaigns","api":"POST https://server.smartlead.ai/api/v1/campaigns/bulk-status","href":"/api-reference/campaigns/bulk-update-status"},{"title":"Get Campaign Diagnostics","api":"GET https://server.smartlead.ai/api/v1/mcp-diagnostics/campaign-diagnostics/{campaignId}","href":"/api-reference/campaigns/diagnostics"},{"title":"Update Campaign Settings","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/settings","href":"/api-reference/campaigns/update-settings"},{"title":"Update Campaign Schedule","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/schedule","href":"/api-reference/campaigns/update-schedule"},{"title":"Duplicate Campaign","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/duplicate","href":"/api-reference/campaigns/duplicate"},{"title":"Delete Campaign","api":"DELETE https://server.smartlead.ai/api/v1/campaigns/{campaign_id}","href":"/api-reference/campaigns/delete"},{"title":"Get Campaign Sequences","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequences","href":"/api-reference/campaigns/get-sequences"},{"title":"Update Campaign Sequences","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequences","href":"/api-reference/campaigns/update-sequences"},{"title":"Get Campaign Email Accounts","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/email-accounts","href":"/api-reference/campaigns/get-email-accounts"},{"title":"Add Email Accounts to Campaign","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/email-accounts","href":"/api-reference/campaigns/add-email-accounts"},{"title":"Add Email Accounts to Campaign by Tag","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/email-accounts/by-tag","href":"/api-reference/campaigns/add-email-accounts-by-tag"},{"title":"Remove Email Accounts from Campaign","api":"DELETE https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/email-accounts","href":"/api-reference/campaigns/remove-email-accounts"},{"title":"Reallocate Mailboxes","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/reallocate-mailboxes","href":"/api-reference/campaigns/reallocate-mailboxes"},{"title":"Add Tags to Campaigns","api":"POST https://server.smartlead.ai/api/v1/campaigns/tags","href":"/api-reference/campaigns/add-tags"},{"title":"Remove Tags from Campaigns","api":"DELETE https://server.smartlead.ai/api/v1/campaigns/tags","href":"/api-reference/campaigns/remove-tags"},{"title":"Create Subsequence Campaign","api":"POST https://server.smartlead.ai/api/v1/campaigns/create-subsequence","href":"/api-reference/campaigns/create-subsequence"},{"title":"Forward Campaign Email","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/forward-email","href":"/api-reference/campaigns/forward-email"},{"title":"Reply to Campaign Lead","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/reply-email-thread","href":"/api-reference/campaigns/reply-email-thread"},{"title":"Send Test Email","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/send-test-email","href":"/api-reference/campaigns/send-test-email"},{"title":"Update Campaign Team Member","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/team-member","href":"/api-reference/campaigns/update-team-member"},{"title":"Move Campaigns to Folder","api":"POST https://server.smartlead.ai/api/v1/campaigns/update-folder","href":"/api-reference/campaigns/update-folder"},{"title":"Assign Client to Campaign","api":"POST https://server.smartlead.ai/api/v1/campaigns/assign-client","href":"/api-reference/campaigns/assign-client"},{"title":"Update Spintax Distribution Mode","api":"POST https://server.smartlead.ai/api/v1/campaigns/spintax-distribution-mode","href":"/api-reference/campaigns/update-spintax-distribution"},{"title":"Get Campaign AI Prompt Template","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/prompt-template","href":"/api-reference/campaigns/get-prompt-template"},{"title":"Create Campaign AI Prompt Template","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/prompt-template","href":"/api-reference/campaigns/create-prompt-template"},{"title":"Update Campaign AI Prompt Template","api":"PATCH https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/prompt-template/{template_id}","href":"/api-reference/campaigns/update-prompt-template"}]},{"group":"Campaign Leads","pages":[{"title":"Add Leads to Campaign","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads","href":"/api-reference/campaigns/add-leads"},{"title":"Get Campaign Leads","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads","href":"/api-reference/campaigns/get-leads"},{"title":"Get Lead by ID","api":"GET https://server.smartlead.ai/api/v1/leads/{lead_id}","href":"/api-reference/campaigns/get-lead-by-id"},{"title":"Get Lead Message History","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}/message-history","href":"/api-reference/campaigns/get-lead-history"},{"title":"Get Bulk Lead Message History","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/message-history-for-leads/bbfbdsFGHlBr76ruhjvh6fhHL","href":"/api-reference/campaigns/get-leads-history-bulk"},{"title":"Get All Leads Activities","api":"GET https://server.smartlead.ai/api/v1/campaigns/all-leads-activities","href":"/api-reference/campaigns/all-leads-activities"},{"title":"Update Campaign Lead Details","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}/","href":"/api-reference/campaigns/update-lead"},{"title":"Update Lead Category in Campaign","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}/category","href":"/api-reference/campaigns/update-lead-category"},{"title":"Update Lead Email Account","api":"POST https://server.smartlead.ai/api/v1/campaigns/update-lead-email-account","href":"/api-reference/campaigns/update-lead-email-account"},{"title":"Pause Campaign Lead","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}/pause","href":"/api-reference/campaigns/pause-lead"},{"title":"Resume Campaign Lead","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}/resume","href":"/api-reference/campaigns/resume-lead"},{"title":"Mark Lead as Complete","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_map_id}/manual-complete","href":"/api-reference/campaigns/mark-lead-complete"},{"title":"Unsubscribe Lead from Campaign","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}/unsubscribe","href":"/api-reference/campaigns/unsubscribe-lead"},{"title":"Delete Lead from Campaign","api":"DELETE https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}","href":"/api-reference/campaigns/delete-lead"},{"title":"Export Campaign Leads","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads-export","href":"/api-reference/campaigns/export-leads"},{"title":"Search Campaign Leads","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaignId}/leads/filter","href":"/api-reference/campaigns/search-leads"}]},{"group":"Campaign Webhooks","pages":[{"title":"Get Campaign Webhooks","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/webhooks","href":"/api-reference/campaigns/get-webhooks"},{"title":"Get Webhook Summary","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaignId}/webhooks/summary","href":"/api-reference/campaigns/get-webhook-summary"},{"title":"Create/Update Campaign Webhook","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/webhooks","href":"/api-reference/campaigns/save-webhooks"},{"title":"Delete Campaign Webhook","api":"DELETE https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/webhooks","href":"/api-reference/campaigns/delete-webhook"},{"title":"Retrigger Campaign Webhooks","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaignId}/webhooks/retrigger-failed-events","href":"/api-reference/campaigns/retrigger-webhooks"}]},{"group":"Campaign Statistics","pages":[{"title":"Get Campaign Statistics","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/statistics","href":"/api-reference/campaigns/statistics"},{"title":"Fetch Campaign Statistics by Campaign ID","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/statistics","href":"/api-reference/campaign-statistics/get-by-id"},{"title":"Fetch Campaign Sequence Analytics","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/sequence-analytics","href":"/api-reference/campaign-statistics/sequence-analytics"},{"title":"Fetch Campaign Statistics by Date Range","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/analytics-by-date","href":"/api-reference/campaign-statistics/get-by-date-range"},{"title":"Fetch Campaign Top Level Analytics","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/analytics","href":"/api-reference/campaign-statistics/top-level"},{"title":"Fetch Campaign Top Level Analytics by Date Range","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/top-level-analytics-by-date","href":"/api-reference/campaign-statistics/top-level-by-date"},{"title":"Fetch Campaign Lead Statistics","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads-statistics","href":"/api-reference/campaign-statistics/lead-statistics"},{"title":"Fetch Campaign Mailbox Statistics","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/mailbox-statistics","href":"/api-reference/campaign-statistics/mailbox-statistics"},{"title":"Get Campaign Analytics","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/analytics","href":"/api-reference/campaigns/get-analytics"},{"title":"Get Campaign Analytics by Date Range","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/analytics-by-date","href":"/api-reference/campaigns/get-analytics-by-date"},{"title":"Get Top Level Analytics by Date","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/top-level-analytics-by-date","href":"/api-reference/campaigns/get-top-level-analytics"}]},{"group":"Lead Management","pages":[{"title":"Get Lead by Email","api":"GET https://server.smartlead.ai/api/v1/leads/","href":"/api-reference/leads/get-by-email"},{"title":"Get Campaign Leads","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads","href":"/api-reference/leads/get-by-campaign"},{"title":"Add Leads to Campaign","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads","href":"/api-reference/leads/add-to-campaign"},{"title":"Update Lead","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}/","href":"/api-reference/leads/update"},{"title":"Delete Lead from Campaign","api":"DELETE https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}","href":"/api-reference/leads/delete"},{"title":"Delete Leads from Campaigns","api":"POST https://server.smartlead.ai/api/v1/leads/delete-from-campaigns","href":"/api-reference/leads/delete-from-campaigns"},{"title":"Delete Leads","api":"DELETE https://server.smartlead.ai/api/v1/leads/delete","href":"/api-reference/leads/bulk-delete"},{"title":"Pause Lead","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}/pause","href":"/api-reference/leads/pause"},{"title":"Resume Lead","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads/{lead_id}/resume","description":"Resume email sending for a paused lead with optional custom delay","href":"/api-reference/leads/resume"},{"title":"Bulk Pause or Resume Leads","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads-bulk-action","href":"/api-reference/leads/bulk-pause-resume"},{"title":"Unsubscribe Lead Globally","api":"POST https://server.smartlead.ai/api/v1/leads/{lead_id}/unsubscribe","description":"Globally unsubscribe a lead from all current and future campaigns","href":"/api-reference/leads/unsubscribe"},{"title":"Resubscribe Leads","api":"POST https://server.smartlead.ai/api/v1/leads/resubscribe","href":"/api-reference/leads/resubscribe"},{"title":"Get All Leads Activities","api":"GET https://server.smartlead.ai/api/v1/campaigns/all-leads-activities","href":"/api-reference/leads/activities"},{"title":"Export Campaign Leads","api":"GET https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/leads-export","href":"/api-reference/leads/export"},{"title":"Get Lead Campaign Overview","api":"GET https://server.smartlead.ai/api/v1/leads/{leadId}/campaign-overview","href":"/api-reference/leads/campaign-overview"},{"title":"Get Lead Sequence Details","api":"GET https://server.smartlead.ai/api/v1/leads/{leadMapId}/sequence-details","href":"/api-reference/leads/sequence-details"}]},{"group":"Lead Categories","pages":[{"title":"Get Lead Categories","api":"GET https://server.smartlead.ai/api/v1/leads/fetch-categories","href":"/api-reference/leads/categories"},{"title":"Create Lead Category","api":"POST https://server.smartlead.ai/api/v1/leads/categories","href":"/api-reference/leads/create-category"},{"title":"Update Lead Category","api":"PATCH https://server.smartlead.ai/api/v1/leads/categories/{category_id}","href":"/api-reference/leads/update-category"},{"title":"Delete Lead Category","api":"DELETE https://server.smartlead.ai/api/v1/leads/categories/{category_id}","href":"/api-reference/leads/delete-category"}]},{"group":"Lead Notes","pages":[{"title":"Create Lead Note","api":"POST https://server.smartlead.ai/api/v1/master-inbox/create-note","href":"/api-reference/lead-notes/create"}]},{"group":"Lead Tasks","pages":[{"title":"Create Lead Task","api":"POST https://server.smartlead.ai/api/v1/master-inbox/create-task","href":"/api-reference/lead-tasks/create"}]},{"group":"Lead Tags","pages":[{"title":"Create Tag","api":"POST https://server.smartlead.ai/api/v1/email-accounts/tag-manager","href":"/api-reference/lead-tags/create"}]},{"group":"Lead Lists","pages":[{"title":"Create Lead List","api":"POST https://server.smartlead.ai/api/v1/lead-list/","href":"/api-reference/lead-lists/create"},{"title":"Get All Lead Lists","api":"GET https://server.smartlead.ai/api/v1/lead-list/","href":"/api-reference/lead-lists/get-all"},{"title":"Get Lead List by ID","api":"GET https://server.smartlead.ai/api/v1/lead-list/{id}","href":"/api-reference/lead-lists/get-by-id"},{"title":"Get Lead List Stats","api":"GET https://server.smartlead.ai/api/v1/lead-list/{id}/stats","href":"/api-reference/lead-lists/get-stats"},{"title":"Get Leads in a Lead List","api":"GET https://server.smartlead.ai/api/v1/lead-list/{id}/leads","href":"/api-reference/lead-lists/get-leads"},{"title":"Update Lead List","api":"PUT https://server.smartlead.ai/api/v1/lead-list/{id}","href":"/api-reference/lead-lists/update"},{"title":"Delete Lead List","api":"DELETE https://server.smartlead.ai/api/v1/lead-list/{id}","href":"/api-reference/lead-lists/delete"},{"title":"Import Leads to List","api":"POST https://server.smartlead.ai/api/v1/lead-list/{id}/import","href":"/api-reference/lead-lists/import-leads"},{"title":"Move Leads Between Lists","api":"POST https://server.smartlead.ai/api/v1/leads/leads/push-between-lists","href":"/api-reference/lead-lists/push-between-lists"},{"title":"Push Leads to Campaign","api":"POST https://server.smartlead.ai/api/v1/leads/push-to-campaign","href":"/api-reference/lead-lists/push-to-campaign"},{"title":"Assign Tags to Lead Lists","api":"POST https://server.smartlead.ai/api/v1/lead-list/assign-tags","href":"/api-reference/lead-lists/assign-tags"}]},{"group":"Email Account Management","pages":[{"title":"Get All Email Accounts","api":"GET https://server.smartlead.ai/api/v1/email-accounts/","href":"/api-reference/email-accounts/get-all"},{"title":"Get Email Account by ID","api":"GET https://server.smartlead.ai/api/v1/email-accounts/{email_account_id}/","href":"/api-reference/email-accounts/get-by-id"},{"title":"Get Email Account by Email Address","api":"GET https://server.smartlead.ai/api/v1/email-accounts/fetch-email-account-details","href":"/api-reference/email-accounts/get-by-email"},{"title":"Add SMTP Email Account","api":"POST https://server.smartlead.ai/api/v1/email-accounts/save","href":"/api-reference/email-accounts/add-smtp"},{"title":"Add OAuth Email Account","api":"POST https://server.smartlead.ai/api/v1/email-accounts/save-oauth","href":"/api-reference/email-accounts/add-oauth"},{"title":"Update Email Account","api":"POST https://server.smartlead.ai/api/v1/email-accounts/{email_account_id}","href":"/api-reference/email-accounts/update"},{"title":"Delete Email Account","api":"DELETE https://server.smartlead.ai/api/v1/email-accounts/{email_account_id}","href":"/api-reference/email-accounts/delete"},{"title":"Update Warmup Settings","api":"POST https://server.smartlead.ai/api/v1/email-accounts/{email_account_id}/warmup","href":"/api-reference/email-accounts/warmup-settings"},{"title":"Get Warmup Statistics","api":"GET https://server.smartlead.ai/api/v1/email-accounts/{email_account_id}/warmup-stats","href":"/api-reference/email-accounts/warmup-stats"},{"title":"Bulk Update Warmup","api":"POST https://server.smartlead.ai/api/v1/email-accounts/warmup/bulk","href":"/api-reference/email-accounts/bulk-warmup"},{"title":"Bulk Get Warmup Stats","api":"POST https://server.smartlead.ai/api/v1/email-accounts/warmup-stats","href":"/api-reference/email-accounts/bulk-warmup-stats"},{"title":"Check Mailbox Domain Deliverability","api":"GET https://server.smartlead.ai/api/v1/mcp-diagnostics/mailbox-domain-deliverability/{domain}","href":"/api-reference/email-accounts/domain-deliverability"},{"title":"Check Email Account DNS","api":"POST https://server.smartlead.ai/api/v1/email-accounts/dns-check","href":"/api-reference/email-accounts/dns-check"},{"title":"Suspend Email Account","api":"PUT https://server.smartlead.ai/api/v1/email-accounts/suspend/{email_account_id}","href":"/api-reference/email-accounts/suspend"},{"title":"Unsuspend Email Account","api":"DELETE https://server.smartlead.ai/api/v1/email-accounts/unsuspend/{email_account_id}","href":"/api-reference/email-accounts/unsuspend"},{"title":"Bulk Update Email Account Config","api":"POST https://server.smartlead.ai/api/v1/email-accounts/bulk-update-email-account-config","href":"/api-reference/email-accounts/bulk-update-config"},{"title":"Reconnect Failed Email Accounts","api":"POST https://server.smartlead.ai/api/v1/email-accounts/reconnect-failed-email-accounts","href":"/api-reference/email-accounts/reconnect-failed"},{"title":"Send Warmup Unblock OTP","api":"POST https://server.smartlead.ai/api/v1/email-accounts/{account_id}/send-otp-email","href":"/api-reference/email-accounts/send-warmup-unblock-otp"},{"title":"Verify Warmup Unblock OTP","api":"POST https://server.smartlead.ai/api/v1/email-accounts/{account_id}/verify-otp","href":"/api-reference/email-accounts/verify-warmup-unblock-otp"}]},{"group":"Email Account Tags","pages":[{"title":"Get All Tags","api":"GET https://server.smartlead.ai/api/v1/email-accounts/tags","href":"/api-reference/email-accounts/tags"},{"title":"Create Tag","api":"POST https://server.smartlead.ai/api/v1/tags","href":"/api-reference/email-account-tags/create-new"},{"title":"Update Email Account Tag","api":"POST https://server.smartlead.ai/api/v1/email-accounts/tag-manager","href":"/api-reference/email-account-tags/create"},{"title":"Get Email Account Tags","api":"POST https://server.smartlead.ai/api/v1/email-accounts/tag-list","href":"/api-reference/email-account-tags/get-all"},{"title":"Assign Tags to Email Accounts","api":"POST https://server.smartlead.ai/api/v1/email-accounts/tag-mapping","href":"/api-reference/email-account-tags/assign"},{"title":"Remove Tags from Email Accounts","api":"DELETE https://server.smartlead.ai/api/v1/email-accounts/tag-mapping","href":"/api-reference/email-account-tags/remove"}]},{"group":"Master Inbox","pages":[{"title":"Get Inbox Replies","api":"POST https://server.smartlead.ai/api/v1/master-inbox/inbox-replies","href":"/api-reference/inbox/get-messages"},{"title":"Get Sent Emails","api":"POST https://server.smartlead.ai/api/v1/master-inbox/sent","href":"/api-reference/inbox/get-sent"},{"title":"Get Assigned to Me","api":"POST https://server.smartlead.ai/api/v1/master-inbox/assigned-me","href":"/api-reference/inbox/get-assigned"},{"title":"Get Unread Replies","api":"POST https://server.smartlead.ai/api/v1/master-inbox/unread-replies","href":"/api-reference/inbox/get-unread"},{"title":"Get Unread Replies Count","api":"POST https://server.smartlead.ai/api/v1/master-inbox/unread-replies-count","href":"/api-reference/inbox/get-unread-count"},{"title":"Get Important Emails","api":"POST https://server.smartlead.ai/api/v1/master-inbox/important","href":"/api-reference/inbox/get-important"},{"title":"Get Snoozed Emails","api":"POST https://server.smartlead.ai/api/v1/master-inbox/snoozed","href":"/api-reference/inbox/get-snoozed"},{"title":"Get Scheduled Emails","api":"POST https://server.smartlead.ai/api/v1/master-inbox/scheduled","href":"/api-reference/inbox/get-scheduled"},{"title":"Get Reminder Emails","api":"POST https://server.smartlead.ai/api/v1/master-inbox/reminders","href":"/api-reference/inbox/get-reminders"},{"title":"Get Archived Emails","api":"POST https://server.smartlead.ai/api/v1/master-inbox/archived","href":"/api-reference/inbox/get-archived"},{"title":"Get Custom View Emails","api":"POST https://server.smartlead.ai/api/v1/master-inbox/views","href":"/api-reference/inbox/get-views"},{"title":"Get Inbox Item by ID","api":"GET https://server.smartlead.ai/api/v1/master-inbox/{id}","href":"/api-reference/inbox/get-by-id"},{"title":"Get Untracked Replies","api":"GET https://server.smartlead.ai/api/v1/master-inbox/untracked-replies","href":"/api-reference/inbox/get-untracked"},{"title":"Reply to Email","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/reply-email-thread","href":"/api-reference/inbox/reply"},{"title":"Get Reply Status","api":"GET https://server.smartlead.ai/api/v1/master-inbox/reply-status","href":"/api-reference/inbox/reply-status"},{"title":"Forward Email","api":"POST https://server.smartlead.ai/api/v1/campaigns/{campaign_id}/forward-email","href":"/api-reference/inbox/forward"},{"title":"Change Read Status","api":"PATCH https://server.smartlead.ai/api/v1/master-inbox/change-read-status","href":"/api-reference/inbox/mark-read"},{"title":"Update Lead Category","api":"PATCH https://server.smartlead.ai/api/v1/master-inbox/update-category","href":"/api-reference/inbox/update-category"},{"title":"Update Lead Revenue","api":"PATCH https://server.smartlead.ai/api/v1/master-inbox/update-revenue","href":"/api-reference/inbox/update-revenue"},{"title":"Assign Team Member","api":"POST https://server.smartlead.ai/api/v1/master-inbox/update-team-member","href":"/api-reference/inbox/update-team-member"},{"title":"Create Lead Task","api":"POST https://server.smartlead.ai/api/v1/master-inbox/create-task","href":"/api-reference/inbox/create-task"},{"title":"Create Lead Note","api":"POST https://server.smartlead.ai/api/v1/master-inbox/create-note","href":"/api-reference/inbox/create-note"},{"title":"Block Email Domains","api":"POST https://server.smartlead.ai/api/v1/master-inbox/block-domains","href":"/api-reference/inbox/block-domains"},{"title":"Resume Paused Lead","api":"PATCH https://server.smartlead.ai/api/v1/master-inbox/resume-lead","href":"/api-reference/inbox/resume-lead"},{"title":"Set Lead Reminder","api":"POST https://server.smartlead.ai/api/v1/master-inbox/set-reminder","href":"/api-reference/inbox/set-reminder"},{"title":"Push Lead to Subsequence","api":"POST https://server.smartlead.ai/api/v1/master-inbox/push-to-subsequence","href":"/api-reference/inbox/push-to-subsequence"},{"title":"Create Saved View","api":"POST https://server.smartlead.ai/api/v1/master-inbox/saved-views","href":"/api-reference/inbox/create-saved-view"},{"title":"Ignore Reply","api":"PATCH https://server.smartlead.ai/api/v1/master-inbox/ignore-reply","href":"/api-reference/inbox/ignore-reply"},{"title":"Associate Untracked Reply to Lead","api":"POST https://server.smartlead.ai/api/v1/master-inbox/untracked-replies/associate-to-lead","href":"/api-reference/inbox/associate-untracked-reply"}]},{"group":"Smart Delivery v2 (Deliverability Test)","pages":[{"title":"List Seed Providers","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/providers","href":"/api-reference/smart-delivery-v2/providers"},{"title":"Get Plan Limits","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits","href":"/api-reference/smart-delivery-v2/limits"},{"title":"Refresh Plan Limits","api":"POST https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/limits/refresh","href":"/api-reference/smart-delivery-v2/limits-refresh"},{"title":"List Folders","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/folders","href":"/api-reference/smart-delivery-v2/list-folders"},{"title":"Create Folder","api":"POST https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/folders","href":"/api-reference/smart-delivery-v2/create-folder"},{"title":"Rename Folder","api":"PATCH https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/folders/{id}","href":"/api-reference/smart-delivery-v2/rename-folder"},{"title":"Delete Folder","api":"DELETE https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/folders/{id}","href":"/api-reference/smart-delivery-v2/delete-folder"},{"title":"Create Deliverability Test","api":"POST https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests","href":"/api-reference/smart-delivery-v2/create-test"},{"title":"List Deliverability Tests","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests","href":"/api-reference/smart-delivery-v2/list-tests"},{"title":"Get Deliverability Test","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/{id}","href":"/api-reference/smart-delivery-v2/get-test"},{"title":"Update Deliverability Test","api":"PATCH https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/{id}","href":"/api-reference/smart-delivery-v2/update-test"},{"title":"Pause Deliverability Test","api":"POST https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/{id}/pause","href":"/api-reference/smart-delivery-v2/pause-test"},{"title":"Resume Deliverability Test","api":"POST https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/{id}/resume","href":"/api-reference/smart-delivery-v2/resume-test"},{"title":"Stop Deliverability Test","api":"POST https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/{id}/stop","href":"/api-reference/smart-delivery-v2/stop-test"},{"title":"Delete Deliverability Test","api":"DELETE https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/{id}","href":"/api-reference/smart-delivery-v2/delete-test"},{"title":"Create Share Link","api":"PUT https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/{id}/share","href":"/api-reference/smart-delivery-v2/create-share-link"},{"title":"Revoke Share Link","api":"DELETE https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/{id}/share","href":"/api-reference/smart-delivery-v2/revoke-share-link"},{"title":"Get Run","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/{id}","href":"/api-reference/smart-delivery-v2/get-run"},{"title":"Get Run Placement","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/{id}/placement","href":"/api-reference/smart-delivery-v2/run-placement"},{"title":"Get Email Trace","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/{id}/emails/{assignmentId}/trace","href":"/api-reference/smart-delivery-v2/email-trace"},{"title":"Get Run Report","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/{id}/report","href":"/api-reference/smart-delivery-v2/run-report"},{"title":"List Run Emails","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/{id}/emails","href":"/api-reference/smart-delivery-v2/run-emails"},{"title":"List Run Seeds","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/{id}/seeds","href":"/api-reference/smart-delivery-v2/run-seeds"},{"title":"Get Email Headers","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/{id}/emails/{assignmentId}/headers","href":"/api-reference/smart-delivery-v2/email-headers"},{"title":"Get Test History","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/tests/{id}/history","href":"/api-reference/smart-delivery-v2/test-history"},{"title":"Compare Two Runs","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/runs/{id}/compare/{otherRunId}","href":"/api-reference/smart-delivery-v2/compare-runs"},{"title":"Get Deliverability Summary","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/reports/summary","href":"/api-reference/smart-delivery-v2/summary"},{"title":"List Mailbox Deliverability","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/reports/mailboxes","href":"/api-reference/smart-delivery-v2/mailboxes"},{"title":"Get Mailbox Trend","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/reports/mailboxes/{emailAccountId}","href":"/api-reference/smart-delivery-v2/mailbox-trend"},{"title":"List Domain Deliverability","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/reports/domains","href":"/api-reference/smart-delivery-v2/domains"},{"title":"Get Domain Trend","api":"GET https://sl-sd-api.smartlead.ai/api/v1/smart-delivery/reports/domains/{domain}","href":"/api-reference/smart-delivery-v2/domain-trend"}]},{"group":"Smart Senders","pages":[{"title":"Get OTP for Admin Mailbox","api":"GET https://smart-senders.smartlead.ai/api/v1/smart-senders/auth-secret","href":"/api-reference/smart-senders/get-otp"},{"title":"Auto Generate Mailboxes","api":"POST https://smart-senders.smartlead.ai/api/v1/smart-senders/auto-generate-mailboxes","href":"/api-reference/smart-senders/auto-generate"},{"title":"Search Domain","api":"GET https://smart-senders.smartlead.ai/api/v1/smart-senders/search-domain","href":"/api-reference/smart-senders/search-domain"},{"title":"Check Domains","api":"POST https://smart-senders.smartlead.ai/api/v1/smart-senders/domains/check","href":"/api-reference/smart-senders/check-domains"},{"title":"Similar Domains","api":"POST https://smart-senders.smartlead.ai/api/v1/smart-senders/domains/similar","href":"/api-reference/smart-senders/similar-domains"},{"title":"Get Vendors","api":"GET https://smart-senders.smartlead.ai/api/v1/smart-senders/get-vendors","href":"/api-reference/smart-senders/get-vendors"},{"title":"Place Order","api":"POST https://smart-senders.smartlead.ai/api/v1/smart-senders/place-order","href":"/api-reference/smart-senders/place-order"},{"title":"Add Mailboxes to Domain","api":"POST https://smart-senders.smartlead.ai/api/v1/smart-senders/add-mailboxes-to-domain","href":"/api-reference/smart-senders/add-mailboxes"},{"title":"Get Purchased Domain List","api":"GET https://smart-senders.smartlead.ai/api/v1/smart-senders/get-domain-list","href":"/api-reference/smart-senders/domain-list"},{"title":"Get Order Details","api":"GET https://smart-senders.smartlead.ai/api/v1/smart-senders/order-details","href":"/api-reference/smart-senders/order-details"}]},{"group":"Smart Servers","pages":[{"title":"List SmartServers","api":"GET https://smartservers.smartlead.ai/api/v1/smart-server/","href":"/api-reference/smart-servers/list-servers"},{"title":"Assign SmartInfra to Campaigns","api":"POST https://smartservers.smartlead.ai/api/v1/smart-infra/mapping","href":"/api-reference/smart-servers/assign-campaigns"},{"title":"Get SmartServers for a Campaign","api":"GET https://smartservers.smartlead.ai/api/v1/smart-server/all/campaign/{campaign_id}","href":"/api-reference/smart-servers/get-campaign-servers"},{"title":"Unassign SmartServers from Campaign","api":"DELETE https://smartservers.smartlead.ai/api/v1/smart-server/mapping/campaign/{campaign_id}","href":"/api-reference/smart-servers/unassign-campaign"}]},{"group":"Webhooks","pages":[{"title":"Create Webhook","api":"POST https://server.smartlead.ai/api/v1/webhook/create","href":"/api-reference/webhooks/create"},{"title":"Get Webhook","api":"GET https://server.smartlead.ai/api/v1/webhook/{webhook_id}","href":"/api-reference/webhooks/get"},{"title":"Update Webhook","api":"PUT https://server.smartlead.ai/api/v1/webhook/update/:webhook_id","href":"/api-reference/webhooks/update"},{"title":"Delete Campaign Webhook","api":"DELETE https://server.smartlead.ai/api/v1/webhook/delete/{webhook_id}","href":"/api-reference/webhooks/delete"},{"title":"Webhook Signing Secret","api":"POST https://server.smartlead.ai/api/v1/webhook/{webhook_id}/signing-secret","href":"/api-reference/webhooks/signing-secret"},{"title":"List Webhook Event Types","api":"GET https://server.smartlead.ai/api/v1/webhook-event-types","href":"/api-reference/webhooks/event-types"},{"title":"Get Webhook Delivery Logs","api":"GET https://server.smartlead.ai/api/v1/webhook-event-logs","href":"/api-reference/webhooks/event-logs"},{"title":"Send a Test Webhook","api":"POST https://server.smartlead.ai/api/v1/webhook/{webhook_id}/test","href":"/api-reference/webhooks/test"},{"title":"List Webhook Deliveries","api":"GET https://server.smartlead.ai/api/v1/webhook/{webhook_id}/deliveries","href":"/api-reference/webhooks/deliveries"},{"title":"Webhook Events Reference","href":"/api-reference/webhooks/events"}]},{"group":"Global Analytics","pages":[{"title":"How Analytics Metrics Are Calculated","href":"/api-reference/analytics/how-metrics-are-calculated"},{"title":"Get Overall Analytics","api":"GET https://server.smartlead.ai/api/v1/analytics/overall-stats-v2","href":"/api-reference/analytics/overview"},{"title":"Get Campaign List","api":"GET https://server.smartlead.ai/api/v1/analytics/campaign/list","href":"/api-reference/analytics/campaign-list"},{"title":"Get Client List","api":"GET https://server.smartlead.ai/api/v1/analytics/client/list","href":"/api-reference/analytics/client-list"},{"title":"Get Month-wise Client Count","api":"GET https://server.smartlead.ai/api/v1/analytics/client/month-wise-count","href":"/api-reference/analytics/month-wise-client-count"},{"title":"Get Day-wise Overall Stats","api":"GET https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats","href":"/api-reference/analytics/day-wise-stats"},{"title":"Day-wise Stats by Sent Time","api":"GET https://server.smartlead.ai/api/v1/analytics/day-wise-overall-stats-by-sent-time","href":"/api-reference/analytics/day-wise-sent-time"},{"title":"Day-wise Positive Reply Stats","api":"GET https://server.smartlead.ai/api/v1/analytics/day-wise-positive-reply-stats","href":"/api-reference/analytics/day-wise-positive-reply"},{"title":"Positive Reply Stats by Sent Time","api":"GET https://server.smartlead.ai/api/v1/analytics/day-wise-positive-reply-stats-by-sent-time","href":"/api-reference/analytics/day-wise-positive-sent-time"},{"title":"Campaign Performance","api":"GET https://server.smartlead.ai/api/v1/analytics/campaign/overall-stats","href":"/api-reference/analytics/campaign-performance"},{"title":"Client Overall Stats","api":"GET https://server.smartlead.ai/api/v1/analytics/client/overall-stats","href":"/api-reference/analytics/client-performance"},{"title":"Email-ID-wise Health Metrics","api":"GET https://server.smartlead.ai/api/v1/analytics/mailbox/name-wise-health-metrics","href":"/api-reference/analytics/email-wise-health"},{"title":"Domain-wise Health Metrics","api":"GET https://server.smartlead.ai/api/v1/analytics/mailbox/domain-wise-health-metrics","href":"/api-reference/analytics/domain-wise-health"},{"title":"Mailbox Overall Stats","api":"GET https://server.smartlead.ai/api/v1/analytics/mailbox/overall-stats","href":"/api-reference/analytics/mailbox-health"},{"title":"Provider-wise Performance","api":"GET https://server.smartlead.ai/api/v1/analytics/mailbox/provider-wise-overall-performance","href":"/api-reference/analytics/provider-performance"},{"title":"Team Board Stats","api":"GET https://server.smartlead.ai/api/v1/analytics/team-board/overall-stats","href":"/api-reference/analytics/team-board-stats"},{"title":"Lead Statistics","api":"GET https://server.smartlead.ai/api/v1/analytics/lead/overall-stats","href":"/api-reference/analytics/lead-stats"},{"title":"Lead Category-wise Response","api":"GET https://server.smartlead.ai/api/v1/analytics/lead/category-wise-response","href":"/api-reference/analytics/lead-category-response"},{"title":"Leads Take for First Reply","api":"GET https://server.smartlead.ai/api/v1/analytics/campaign/leads-take-for-first-reply","href":"/api-reference/analytics/leads-for-first-reply"},{"title":"Follow-up Reply Rate","api":"GET https://server.smartlead.ai/api/v1/analytics/campaign/follow-up-reply-rate","href":"/api-reference/analytics/followup-reply-rate"},{"title":"Lead to Reply Time","api":"GET https://server.smartlead.ai/api/v1/analytics/campaign/lead-to-reply-time","href":"/api-reference/analytics/lead-to-reply-time"},{"title":"Campaign Response Stats","api":"GET https://server.smartlead.ai/api/v1/analytics/campaign/response-stats","href":"/api-reference/analytics/campaign-response-stats"},{"title":"Campaign Status Stats","api":"GET https://server.smartlead.ai/api/v1/analytics/campaign/status-stats","href":"/api-reference/analytics/campaign-status-stats"}]},{"group":"Utilities","pages":[{"title":"Send Single Email","api":"POST https://server.smartlead.ai/api/v1/send-email/initiate","href":"/api-reference/utilities/send-single-email"},{"title":"Domain Block List Management","href":"/api-reference/utilities/domain-block-list"},{"title":"Bulk Delete from Block List","api":"POST https://server.smartlead.ai/api/v1/leads/domain-block-list/bulk-delete","href":"/api-reference/utilities/domain-block-list-bulk-delete"},{"title":"Export Block List","api":"GET https://server.smartlead.ai/api/v1/leads/domain-block-list/export","href":"/api-reference/utilities/domain-block-list-export"},{"title":"Get Account by API Key","api":"GET https://server.smartlead.ai/api/v1/users/get-by-api-key","href":"/api-reference/utilities/get-account-by-api-key"},{"title":"Get API Key Info","api":"GET https://server.smartlead.ai/api/v1/key","href":"/api-reference/utilities/get-key-info"}]},{"group":"Client Management","pages":[{"title":"Create Client","api":"POST https://server.smartlead.ai/api/v1/client/save","href":"/api-reference/clients/create"},{"title":"Get All Clients","api":"GET https://server.smartlead.ai/api/v1/client/","href":"/api-reference/clients/get-all"},{"title":"Update Client","api":"POST https://server.smartlead.ai/api/v1/client/save","href":"/api-reference/clients/update"},{"title":"Manage Client API Keys","api":"POST https://server.smartlead.ai/api/v1/client/api-key","href":"/api-reference/clients/api-keys"},{"title":"Get Client by ID","api":"GET https://server.smartlead.ai/api/v1/client/{id}","href":"/api-reference/clients/get-by-id"},{"title":"Add Client Code Snippet","api":"POST https://server.smartlead.ai/api/v1/client/{client_id}/code-integrations","href":"/api-reference/clients/create-code-integration"},{"title":"Delete Client","api":"DELETE https://server.smartlead.ai/api/v1/client/{id}","href":"/api-reference/clients/delete"}]},{"group":"Smart Prospect","pages":[{"title":"Search Contacts API","api":"POST https://prospect-api.smartlead.ai/api/v1/search-email-leads/search-contacts","href":"/api-reference/smart-prospect/search-contacts"},{"title":"Get Contacts API","api":"POST https://prospect-api.smartlead.ai/api/v1/search-email-leads/get-contacts","href":"/api-reference/smart-prospect/get-contacts"},{"title":"Fetch Contacts API","api":"POST https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts","href":"/api-reference/smart-prospect/fetch-contacts"},{"title":"Estimate Fetch Cost API","api":"POST https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts/estimate","href":"/api-reference/smart-prospect/fetch-contacts-estimate"},{"title":"Push Fetched Contacts to a Lead List API","api":"POST https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts/push-to-list","href":"/api-reference/smart-prospect/fetch-contacts-push-to-list"},{"title":"Select Contacts per Company API","api":"POST https://prospect-api.smartlead.ai/api/v1/search-email-leads/search-contacts/select-with-cap","href":"/api-reference/smart-prospect/select-with-cap"},{"title":"Fetch Progress API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/fetch-contacts-v2/progress/{filter_id}","href":"/api-reference/smart-prospect/fetch-progress"},{"title":"Find Emails API","api":"POST https://prospect-api.smartlead.ai/api/v1/search-email-leads/search-contacts/find-emails","href":"/api-reference/smart-prospect/find-emails"},{"title":"Review Contacts API","api":"PATCH https://prospect-api.smartlead.ai/api/v1/search-email-leads/review-contacts/{filter_id}","href":"/api-reference/smart-prospect/review-contacts"},{"title":"Save Search API","api":"POST https://prospect-api.smartlead.ai/api/v1/search-email-leads/search-filters/save-search","href":"/api-reference/smart-prospect/save-search"},{"title":"Saved Searches API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/search-filters/saved-searches","href":"/api-reference/smart-prospect/saved-searches"},{"title":"Fetched Searches API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/search-filters/fetched-searches","href":"/api-reference/smart-prospect/fetched-searches"},{"title":"Recent Searches API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/search-filters/recent-searches","href":"/api-reference/smart-prospect/recent-searches"},{"title":"Update Saved Search API","api":"PUT https://prospect-api.smartlead.ai/api/v1/search-email-leads/search-filters/save-search/{id}","href":"/api-reference/smart-prospect/update-saved-search"},{"title":"Update Fetched Lead API","api":"PUT https://prospect-api.smartlead.ai/api/v1/search-email-leads/search-filters/fetched-searches/{id}","href":"/api-reference/smart-prospect/update-fetched-lead"},{"title":"Search Analytics API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/search-analytics","href":"/api-reference/smart-prospect/search-analytics"},{"title":"Reply Analytics API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/reply-analytics","href":"/api-reference/smart-prospect/reply-analytics"},{"title":"Cities API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/cities","href":"/api-reference/smart-prospect/cities"},{"title":"States API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/states","href":"/api-reference/smart-prospect/states"},{"title":"Countries API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/countries","href":"/api-reference/smart-prospect/countries"},{"title":"Company API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/company","href":"/api-reference/smart-prospect/company"},{"title":"Domain API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/domain","href":"/api-reference/smart-prospect/domain"},{"title":"Industries API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/industries","href":"/api-reference/smart-prospect/industries"},{"title":"Sub-Industries API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/sub-industries","href":"/api-reference/smart-prospect/sub-industries"},{"title":"Departments API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/departments","href":"/api-reference/smart-prospect/departments"},{"title":"Levels API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/levels","href":"/api-reference/smart-prospect/levels"},{"title":"Job Title API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/job-title","href":"/api-reference/smart-prospect/job-title"},{"title":"Head Counts API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/head-counts","href":"/api-reference/smart-prospect/head-counts"},{"title":"Revenue API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/revenue","href":"/api-reference/smart-prospect/revenue"},{"title":"Keywords API","api":"GET https://prospect-api.smartlead.ai/api/v1/search-email-leads/keywords","href":"/api-reference/smart-prospect/keywords"},{"title":"Top Up Credits API","api":"POST https://prospect-api.smartlead.ai/api/v1/search-email-leads/billing/topup","href":"/api-reference/smart-prospect/topup"}]}]}]},"basePath":"","title":"Bulk Pause or Resume Leads - SmartLead API","deploymentId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","buildId":"dpl_Ab6nteg7kvyK8iL73naC2n7fmsWK","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-C6Z1vAfX.js","snippetPresets-Bjd6OXRM.js","utils-QL6OhUyF.js","style-to-object-BY3JEAdk.js","utils-Dsq-HLeF.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-CEYfmkoV.js","conditional-requirements-CFM0id0Q.js","cloneDeep-CHgPjMM8.js","_Uint8Array-IXRJ_ueo.js","isObject-FP1Yky1u.js","ApiExamples-pq4ns9YA.js","usePlaygroundInputsStore-D-gnigmo.js","shallow-DIfWGPrf.js","isEqual-DDFuixlH.js","CodeSnippets-8g5rilZj.js","CodeSnippet-C_J7pouP.js","use-playground-group-access-bkOyfPao.js","Page-B_smDgrp.js","api-description-markdown-DtcP2u3s.js","DynamicMarkdown-DOefW1_8.js","SectionHeading-Cg4lfWZw.js","MethodPill-BnqygvYm.js","getPastedJson-BGXYEZ3P.js","Check2Icon-BBeO3TOS.js","axios-CsQoIw0U.js"]}