Your own lead id from your CRM (string or number). Returned unchanged in the response, in error responses and in call webhooks, so you can map every Ondial reply to your lead. Also accepted as metadata.leadId.
Used when a lead leaves a field out. Typical: { "channel": "call", "consent": { "outboundCall": true, "source": "crm" } }. A value on the lead wins. metadata is merged.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"OnDial API","description":"Ondial Public API v1 - leads, contacts, outbound campaign lookup, events, inbound agents. Campaigns are created in the dashboard.","colors":{"primary":"#510DFD","light":"#7C4DFF","dark":"#3D0BC4"},"logo":{"light":"https://mintcdn.com/on-dial/QgFvVquZ2FQ-S25l/logo/ondial.png?fit=max\u0026auto=format\u0026n=QgFvVquZ2FQ-S25l\u0026q=85\u0026s=6665208ccae8f58e216b214592d0f412","dark":"https://mintcdn.com/on-dial/QgFvVquZ2FQ-S25l/logo/ondial-dark.png?fit=max\u0026auto=format\u0026n=QgFvVquZ2FQ-S25l\u0026q=85\u0026s=fd6173037cefd07060062ece0b9fa41f","href":"https://www.ondial.ai"},"favicon":"https://mintcdn.com/on-dial/QgFvVquZ2FQ-S25l/logo/favicon.svg?fit=max\u0026auto=format\u0026n=QgFvVquZ2FQ-S25l\u0026q=85\u0026s=87b48c3f18f53ab75aa01dbcb3f619cd","api":{"openapi":"openapi.json","params":{"expanded":"all"},"playground":{"display":"interactive","proxy":false},"examples":{"defaults":"all","languages":["curl","javascript","python","php","java","csharp","go"],"prefill":true,"autogenerate":false},"url":"full"},"appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"https://dashboard.ondial.ai","label":"Dashboard"}],"primary":{"type":"button","label":"Get API key","href":"https://dashboard.ondial.ai/dashboard/settings"}},"footer":{"socials":{"website":"https://ondial.ai"}},"search":{"prompt":"Search API \u0026 guides…"},"seo":{"metatags":{"og:image":"/logo/ondial.png"}},"fonts":{"family":"Inter"},"icons":{"library":"lucide"},"styling":{"eyebrows":"breadcrumbs","codeblocks":"system","latex":false},"contextual":{"options":[],"display":"header"},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"on-dial","hasAudioNarration":false,"actualSubdomain":"on-dial","customDomains":["docs.ondial.ai"],"gitSource":{"type":"github","owner":"web3-kriraai","repo":"ondial-api-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"latestBuiltDeploymentHistoryId":"6ad98f6e0692ca83e0559c6d","collectionId":"561e3158-63d0-47b6-9b8e-9ef5dc16ad5b","liveDeploymentHistoryId":"6ad98f6e0692ca83e0559c6d","schemaVersion":"v3"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad98f6e0692ca83e0559c6d","clientVersion":"0.0.4006","searchFilterCounts":[{"language":"default","tag":"API","count":59},{"language":"default","tag":"Guides","count":21},{"language":"default","tag":"Inbound agents","count":10},{"language":"default","tag":"Send leads","count":8},{"language":"default","tag":"Track contacts","count":7},{"language":"default","tag":"Concepts","count":6},{"language":"default","tag":"Companies","count":5},{"language":"default","tag":"Knowledge bases","count":5},{"language":"default","tag":"Basics","count":5},{"language":"default","tag":"Calls and recordings","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"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":"editor-v7-file-tree","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":"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","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":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","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":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"@keyframes ondial-spin{to{transform:rotate(360deg)}}@keyframes ondial-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}header a img{height:32px!important;width:auto!important;max-width:160px!important;object-fit:contain!important}:root{--ondial-ink:#0f1221;--ondial-muted:#5b6178;--ondial-line:#e6e8f0;--ondial-surface:#f7f8fc;--ondial-accent:#510dfd;--ondial-accent-soft:rgba(81, 13, 253, 0.08)}[data-sidebar],aside,aside nav,div[class*=Sidebar],nav[aria-label*=Sidebar i]{visibility:visible!important;opacity:1!important}@media (min-width:1024px){#navbar,#navbar>div,header,header>div{max-width:none!important}#navbar>div,header>div{width:100%!important;margin-inline:0!important;padding-left:1.25rem!important;padding-right:1.25rem!important}#navbar+div,#navbar+div:has(>#sidebar),#navbar.is-not-custom.is-not-center+div:has(>#sidebar){max-width:none!important;width:100%!important;margin-inline:0!important;padding-left:0!important;padding-right:0!important}#sidebar{margin-left:0!important}#content-area,#content-container,main{max-width:none!important;width:100%!important;margin-inline:0!important}#table-of-contents,#table-of-contents-layout{margin-right:0!important}}.nd-prose{max-width:none}#api-playground-input [role=tablist],.api-playground-input [role=tablist],field [role=tablist]{flex-wrap:wrap!important;overflow-x:hidden!important;overflow-y:visible!important;scrollbar-width:none!important;-ms-overflow-style:none!important}#api-playground-input [role=tablist]::-webkit-scrollbar,field [role=tablist]::-webkit-scrollbar{display:none!important;height:0!important;width:0!important}#api-playground-input [role=tab],field [role=tab]{white-space:nowrap}h2,h3{letter-spacing:-.01em;font-weight:600}.nd-prose li,.nd-prose p{color:var(--ondial-muted)}.nd-prose strong{color:var(--ondial-ink)}.nd-prose table{border-collapse:collapse;width:100%;font-size:.925rem}.nd-prose td,.nd-prose th{border-bottom:1px solid var(--ondial-line)}.nd-prose th{background:var(--ondial-surface);color:var(--ondial-ink);font-weight:600}.nd-prose td{vertical-align:top}.nd-prose blockquote{border-left:3px solid var(--ondial-accent);background:var(--ondial-accent-soft);border-radius:0 8px 8px 0}.nd-prose figure[data-rehype-pretty-code-figure] pre,.nd-prose pre{background:#f4f5f9!important;color:var(--ondial-ink)!important;border:1px solid var(--ondial-line)!important;border-radius:8px!important;box-shadow:none!important;overflow-x:auto!important;max-width:100%!important}.nd-prose code:not(pre code){background:#eef0f6!important;color:var(--ondial-ink)!important;border:1px solid var(--ondial-line);border-radius:4px;padding:.1em .35em}#request-example,#response-example{width:100%!important;overflow:visible!important}#request-example,#request-example>*,#response-example,#response-example>*{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}#request-example .code-block,#request-example [data-code-block],#request-example code-block,#request-example pre,#response-example .code-block,#response-example [data-code-block],#response-example code-block,#response-example pre{width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:auto!important;box-sizing:border-box!important;border:0!important;box-shadow:none!important;background:0 0!important}#request-example pre code,#response-example pre code{white-space:pre!important;display:block!important;width:max-content!important;min-width:100%!important;box-sizing:border-box!important}#request-example [role=tablist],#response-example [role=tablist]{flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:visible!important}.mantine-Modal-content,[cmdk-dialog],[role=dialog],div[class*=Search]{color-scheme:light}.ondial-hero{border:1px solid var(--ondial-line);background:linear-gradient(180deg,#fff 0%,var(--ondial-surface) 100%);border-radius:12px;padding:1.5rem 1.75rem;margin-bottom:2rem}.ondial-hero h1{margin:0 0 .5rem;font-size:1.85rem;color:var(--ondial-ink)}.ondial-hero p{margin:0;color:var(--ondial-muted);max-width:40rem;line-height:1.55}.ondial-kicker{display:inline-block;font-size:.75rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--ondial-accent);margin-bottom:.65rem}.ondial-path-grid{display:grid;grid-template-columns:1fr;gap:.75rem;margin:1.25rem 0 2rem}@media (min-width:720px){.ondial-path-grid{grid-template-columns:1fr 1fr}}.ondial-path{border:1px solid var(--ondial-line);border-radius:10px;padding:1rem 1.1rem;background:#fff;text-decoration:none!important;transition:border-color 120ms ease,background 120ms ease}.ondial-path:hover{border-color:var(--ondial-accent);background:var(--ondial-accent-soft)}.ondial-path strong{display:block;color:var(--ondial-ink);margin-bottom:.25rem}.ondial-path span{display:block;color:var(--ondial-muted);font-size:.9rem;line-height:1.45}.ondial-meta{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin-top:1rem;font-size:.85rem;color:var(--ondial-muted)}.ondial-meta code{font-size:.8rem}[data-testid=playground-send]{--tw-ring-color:var(--ondial-accent)}[data-testid=playground-send].ondial-send-loading,[data-testid=playground-send][data-ondial-loading='1']{display:inline-flex!important;align-items:center!important;gap:.5rem!important;pointer-events:none!important;opacity:.88!important;cursor:wait!important}.ondial-send-spinner{width:.9rem;height:.9rem;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:ondial-spin .7s linear infinite;flex-shrink:0}.ondial-response-loading{position:relative;min-height:4.5rem}.ondial-response-loading::after{content:'';position:absolute;inset:2.5rem .75rem .75rem;border-radius:8px;background:linear-gradient(90deg,#f4f2ff 0,#ebe7ff 40%,#f4f2ff 80%);background-size:200% 100%;animation:ondial-shimmer 1.1s ease-in-out infinite;pointer-events:none;opacity:.9}.ondial-response-time{display:inline-flex;align-items:center;gap:.35rem;margin:0 0 .65rem;padding:.28rem .6rem;border-radius:999px;border:1px solid var(--ondial-line);background:#faf9ff;color:var(--ondial-muted);font-size:.75rem;font-weight:500;line-height:1.2}.ondial-response-time[data-state=loading]{border-color:#ddd6fe;color:var(--ondial-accent);background:var(--ondial-accent-soft)}.ondial-response-time[data-state=done]{border-color:#bbf7d0;color:#166534;background:#f0fdf4}#page-context-menu,#page-context-menu-button{display:none!important}.ondial-server-dd{position:relative;display:inline-flex;align-items:center;max-width:min(100%,22rem);vertical-align:middle;z-index:30}.ondial-server-dd__native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;opacity:0!important;pointer-events:none!important;appearance:none!important}.ondial-server-dd__trigger{display:inline-flex!important;align-items:center!important;gap:.45rem!important;max-width:100%!important;min-height:2.15rem!important;margin:0!important;padding:.35rem .7rem!important;border:1px solid var(--ondial-line)!important;border-radius:8px!important;background:#fff!important;color:var(--ondial-ink)!important;box-shadow:none!important;cursor:pointer!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;font-size:.78rem!important;line-height:1.25!important;transition:border-color 120ms ease,box-shadow 120ms ease,background-color 120ms ease}.ondial-server-dd__trigger:hover{border-color:#c4b5fd!important;background:#faf9ff!important}.ondial-server-dd[data-open=true] .ondial-server-dd__trigger,.ondial-server-dd__trigger:focus-visible{outline:0!important;border-color:var(--ondial-accent)!important;box-shadow:0 0 0 3px var(--ondial-accent-soft)!important}.ondial-server-dd__label{flex:0 0 auto;font-weight:650;color:var(--ondial-accent);letter-spacing:.01em}.ondial-server-dd__url{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ondial-muted)}.ondial-server-dd__chevron{flex:0 0 auto;display:inline-flex;color:var(--ondial-accent);transition:transform 120ms ease}.ondial-server-dd[data-open=true] .ondial-server-dd__chevron{transform:rotate(180deg)}.ondial-server-dd__menu{position:absolute;top:calc(100% + .35rem);left:0;min-width:max(100%,18rem);padding:.35rem!important;border:1px solid var(--ondial-line)!important;border-radius:10px!important;background:#fff!important;box-shadow:0 14px 36px rgba(15,18,33,.14)!important;z-index:80}.ondial-server-dd__item{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:.15rem!important;width:100%!important;margin:0!important;padding:.55rem .7rem!important;border:0!important;border-radius:7px!important;background:0 0!important;color:var(--ondial-ink)!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important}.ondial-server-dd__item:focus-visible,.ondial-server-dd__item:hover{background:var(--ondial-accent-soft)!important;outline:0!important}.ondial-server-dd__item.is-active{background:var(--ondial-accent-soft)!important}.ondial-server-dd__item-label{font-size:.8125rem;font-weight:650;color:var(--ondial-ink)}.ondial-server-dd__item.is-active .ondial-server-dd__item-label{color:var(--ondial-accent)}.ondial-server-dd__item-url{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:.72rem;color:var(--ondial-muted)}#api-playground-input select:not(.ondial-server-dd__native),.api-section select:not(.ondial-server-dd__native),.option-dropdown select:not(.ondial-server-dd__native){appearance:none!important;-webkit-appearance:none!important;color-scheme:light;accent-color:var(--ondial-accent);background-color:#fff!important;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23510DFD' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E\")!important;background-repeat:no-repeat!important;background-position:right .65rem center!important;background-size:.9rem!important;color:var(--ondial-ink)!important;border:1px solid var(--ondial-line)!important;border-radius:8px!important;padding:.45rem 2rem .45rem .75rem!important;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace!important;font-size:.8125rem!important;line-height:1.35!important;min-height:2.25rem!important;box-shadow:none!important;cursor:pointer!important}.ondial-method{display:inline-block;min-width:3.9rem;padding:2px 8px;border-radius:6px;text-align:center;font:600 11px/1.6 \"IBM Plex Mono\",ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.04em}.ondial-method-get{background:#e8f7ee;color:#127a3d}.ondial-method-post{background:#e8efff;color:#2145c9}.ondial-method-put{background:#fff4e0;color:#a15c00}.ondial-method-patch{background:#f1eaff;color:#6a2fd6}.ondial-method-delete{background:#ffe9ea;color:#c2272d}.prose table,article table{border-collapse:separate;border-spacing:0;border:1px solid var(--ondial-line);border-radius:10px;overflow:hidden}.prose table thead th,article table thead th{background:var(--ondial-surface);color:var(--ondial-muted);font-size:12px;font-weight:600;letter-spacing:.03em;text-transform:uppercase}.prose table tbody tr:nth-child(even) td,article table tbody tr:nth-child(even) td{background:rgba(15,18,33,.02)}.prose table td,.prose table th,article table td,article table th{padding:10px 14px;vertical-align:top}.prose pre,article pre{border-radius:12px}.prose :not(pre)>code,article :not(pre)>code{border-radius:5px;padding:1px 5px;font-weight:500;font-size:.875em}a.card,div[class*=card] a[href]{transition:box-shadow .15s ease,transform .15s ease,border-color .15s ease}a.card:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(81,13,253,.12);border-color:var(--ondial-accent)}.prose h2,article h2{margin-top:2.25rem;padding-bottom:.4rem;border-bottom:1px solid var(--ondial-line)}[class*=update]{scroll-margin-top:6rem}:root{--od-font-body:15px;--od-font-small:13px;--od-font-code:13px}#content-area,.prose,[data-page-content]{font-size:var(--od-font-body);line-height:1.65;letter-spacing:-.003em}#content-area li,#content-area p{font-size:var(--od-font-body)}#content-area td,#content-area th{font-size:var(--od-font-small);line-height:1.55}#page-title,h1{font-size:1.75rem;line-height:1.25;font-weight:650;letter-spacing:-.02em}#content-area h2{font-size:1.35rem;line-height:1.3;font-weight:650;letter-spacing:-.015em}#content-area h3{font-size:1.1rem;line-height:1.35;font-weight:600}#content-area h4{font-size:.975rem;font-weight:600}#sidebar,#sidebar a,#sidebar li{font-size:13.5px;line-height:1.45}#table-of-contents,#table-of-contents a{font-size:12.5px}code,pre,pre code{font-size:var(--od-font-code);line-height:1.6}:not(pre)>code{font-size:.86em}.field,[data-component-part=field]{font-size:var(--od-font-small)}@media (max-width:640px){#page-title,h1{font-size:1.5rem}}.nd-prose code:not(pre code),.prose :not(pre)>code,article :not(pre)>code{background:rgba(100,116,139,.12)!important;color:inherit!important;border:0!important}.dark .prose :not(pre)>code,:root[data-theme=dark] .prose :not(pre)>code{background:rgba(148,163,184,.18)!important}"}],"page":{"pagePath":"api-reference/endpoint/core/create-leads-bulk","slug":"/api-reference/endpoint/core/create-leads-bulk","pageMetadata":{"title":"Create leads (bulk)","description":"Send many leads in one request. One result per lead.","deprecated":null,"version":null,"sidebarTitle":"Create leads (bulk)","openapi":"/openapi.json post /api/v1/leads/bulk","href":"/api-reference/endpoint/core/create-leads-bulk","autogeneratedByOpenApi":true},"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: \"Send many leads in one request. One result per lead.\"\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{jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,..._provideComponents(),...props.components};return _jsxs(_components.p,{children:[`First: `,_jsx(_components.a,{href:`/api-reference/endpoint/outbound/lead-setup`,children:`Lead setup`}),` with your `,_jsx(_components.code,{children:`campaignId`}),`. Full guide with every result code: `,_jsx(_components.a,{href:`/get-started/guides/bulk-leads`,children:`Bulk leads`}),`.`]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Create leads (bulk)","description":"Send many leads in one request. One result per lead.","deprecated":null,"version":null,"sidebarTitle":"Create leads (bulk)","openapi":"/openapi.json post /api/v1/leads/bulk","href":"/api-reference/endpoint/core/create-leads-bulk","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/on-dial/62cb5928b3bd1766/ondial-server-dropdown.js","/_mintlify/custom/on-dial/cdb07e0ea2ebc3bc/ondial-playground-loading.js"],"openApiReferenceData":{"operation":{"tags":["Core"],"summary":"Create leads in bulk","description":"Send many leads in one request. One result per lead.","operationId":"createLeadsBulk","x-mint":{"href":"/api-reference/endpoint/core/create-leads-bulk","metadata":{"title":"Create leads (bulk)","sidebarTitle":"Create leads (bulk)","description":"Send many leads in one request. One result per lead."},"content":"First: [Lead setup](/api-reference/endpoint/outbound/lead-setup) with your `campaignId`. Full guide with every result code: [Bulk leads](/get-started/guides/bulk-leads)."},"parameters":["53e5ef60-656f-4dbf-9688-655b10e2f88d"],"requestBody":"2ad3b50a-c502-403c-8018-ef8f542bf8cc","x-codeSamples":[{"lang":"bash","label":"cURL","source":"curl -sS -X POST \"https://dashboard.ondial.ai/api/v1/leads/bulk\" \\\n -H \"Authorization: Bearer $ONDIAL_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Idempotency-Key: crm-12345\" \\\n -d '{\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": true,\n \"source\": \"crm\"\n }\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\"\n }\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\"\n }\n ]\n}'"},{"lang":"javascript","label":"JavaScript","source":"const res = await fetch(\"https://dashboard.ondial.ai/api/v1/leads/bulk\", {\n method: \"POST\",\n headers: {\n \"Authorization\": `Bearer ${process.env.ONDIAL_API_KEY}`,\n \"Content-Type\": \"application/json\",\n \"Idempotency-Key\": \"crm-12345\",\n },\n body: JSON.stringify({\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": true,\n \"source\": \"crm\"\n }\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\"\n }\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\"\n }\n ]\n }),\n});\nconst data = await res.json();\nconsole.log(res.status, data);"},{"lang":"python","label":"Python","source":"import os\nimport requests\n\nres = requests.request(\n \"POST\",\n \"https://dashboard.ondial.ai/api/v1/leads/bulk\",\n headers={\n \"Authorization\": f\"Bearer {os.environ['ONDIAL_API_KEY']}\",\n \"Idempotency-Key\": \"crm-12345\",\n },\n json={\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": True,\n \"source\": \"crm\",\n },\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\",\n },\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\",\n },\n ],\n },\n timeout=30,\n)\nprint(res.status_code, res.json())"},{"lang":"php","label":"PHP","source":"\u003c?php\n\n$ch = curl_init(\"https://dashboard.ondial.ai/api/v1/leads/bulk\");\ncurl_setopt_array($ch, [\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \" . getenv(\"ONDIAL_API_KEY\"),\n \"Content-Type: application/json\",\n \"Idempotency-Key: crm-12345\",\n ],\n CURLOPT_POSTFIELDS => json_encode([\n 'campaignId' => '6a7afae1e1cf2999568febc4',\n 'defaults' => [\n 'channel' => 'call',\n 'consent' => [\n 'outboundCall' => true,\n 'source' => 'crm',\n ],\n ],\n 'leads' => [\n [\n 'clientRef' => 'CRM-1',\n 'phone' => '+919876543210',\n 'name' => 'Asha',\n 'metadata' => [\n 'leadId' => 'CRM-1',\n ],\n ],\n [\n 'clientRef' => 'CRM-2',\n 'phone' => '+919812345678',\n 'name' => 'Ravi',\n 'priority' => 'high',\n ],\n ],\n ]),\n]);\n\n$response = curl_exec($ch);\n$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);\ncurl_close($ch);\n\necho $status . \" \" . $response;"},{"lang":"java","label":"Java","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://dashboard.ondial.ai/api/v1/leads/bulk\"))\n .header(\"Authorization\", \"Bearer \" + System.getenv(\"ONDIAL_API_KEY\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Idempotency-Key\", \"crm-12345\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"\"\"\n{\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": true,\n \"source\": \"crm\"\n }\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\"\n }\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\"\n }\n ]\n}\n\"\"\"))\n .build();\n\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n System.out.println(response.statusCode() + \" \" + response.body());\n }\n}"},{"lang":"csharp","label":"C#","source":"using System;\nusing System.Net.Http;\nusing System.Text;\n\nusing var client = new HttpClient();\nvar request = new HttpRequestMessage(HttpMethod.Post, \"https://dashboard.ondial.ai/api/v1/leads/bulk\");\nrequest.Headers.Add(\"Authorization\", \"Bearer \" + Environment.GetEnvironmentVariable(\"ONDIAL_API_KEY\"));\nrequest.Headers.Add(\"Idempotency-Key\", \"crm-12345\");\nrequest.Content = new StringContent(\"\"\"\n{\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": true,\n \"source\": \"crm\"\n }\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\"\n }\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\"\n }\n ]\n}\n\"\"\", Encoding.UTF8, \"application/json\");\n\nvar response = await client.SendAsync(request);\nConsole.WriteLine((int)response.StatusCode + \" \" + await response.Content.ReadAsStringAsync());"},{"lang":"go","label":"Go","source":"package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n\t\"os\"\n)\n\nfunc main() {\n\tbody := []byte(`{\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": true,\n \"source\": \"crm\"\n }\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\"\n }\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\"\n }\n ]\n}`)\n\treq, _ := http.NewRequest(\"POST\", \"https://dashboard.ondial.ai/api/v1/leads/bulk\", bytes.NewBuffer(body))\n\treq.Header.Set(\"Authorization\", \"Bearer \"+os.Getenv(\"ONDIAL_API_KEY\"))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\treq.Header.Set(\"Idempotency-Key\", \"crm-12345\")\n\n\tres, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer res.Body.Close()\n\n\tout, _ := io.ReadAll(res.Body)\n\tfmt.Println(res.StatusCode, string(out))\n}"}],"responses":{"200":"de77e488-d039-4a31-8492-91b2e2e30187","201":"27c6b275-175d-4fc5-bf0d-a44d38ada97b","207":"67b563e9-6a58-40f7-8e39-d27412c8dc28","400":"6ff37db8-3807-401b-ab5b-7306fd06e373","401":"4ed492d6-a665-4da1-a583-f8da62b9f18e","404":"63f19f4b-205c-4cbe-b336-9f7356ac33fe","409":"d8738876-e27c-45ce-aef7-0014e09c3ec8","413":"bad280ba-1cda-49f0-a800-7a485bae9c0f","422":"dc466cf6-260b-4491-88e1-f04f1ea4e45f","429":"4c7c409e-929a-4955-a9ff-66d249a75402","503":"b843b6bb-3569-45fb-825d-cf22aba32e4c"},"method":"post","type":"path","servers":["eb3a4261-ceef-42ff-9f3f-3bd66e95f65c"],"security":["b215d335-7809-4fcd-9b28-2d3d3c163e7d"],"path":"/api/v1/leads/bulk","baseUrlOptions":["https://dashboard.ondial.ai"],"title":"Create leads in bulk","codeSamples":[{"label":"cURL","lang":"bash","source":"curl -sS -X POST \"https://dashboard.ondial.ai/api/v1/leads/bulk\" \\\n -H \"Authorization: Bearer $ONDIAL_API_KEY\" \\\n -H \"Content-Type: application/json\" \\\n -H \"Idempotency-Key: crm-12345\" \\\n -d '{\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": true,\n \"source\": \"crm\"\n }\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\"\n }\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\"\n }\n ]\n}'"},{"label":"JavaScript","lang":"javascript","source":"const res = await fetch(\"https://dashboard.ondial.ai/api/v1/leads/bulk\", {\n method: \"POST\",\n headers: {\n \"Authorization\": `Bearer ${process.env.ONDIAL_API_KEY}`,\n \"Content-Type\": \"application/json\",\n \"Idempotency-Key\": \"crm-12345\",\n },\n body: JSON.stringify({\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": true,\n \"source\": \"crm\"\n }\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\"\n }\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\"\n }\n ]\n }),\n});\nconst data = await res.json();\nconsole.log(res.status, data);"},{"label":"Python","lang":"python","source":"import os\nimport requests\n\nres = requests.request(\n \"POST\",\n \"https://dashboard.ondial.ai/api/v1/leads/bulk\",\n headers={\n \"Authorization\": f\"Bearer {os.environ['ONDIAL_API_KEY']}\",\n \"Idempotency-Key\": \"crm-12345\",\n },\n json={\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": True,\n \"source\": \"crm\",\n },\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\",\n },\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\",\n },\n ],\n },\n timeout=30,\n)\nprint(res.status_code, res.json())"},{"label":"PHP","lang":"php","source":"\u003c?php\n\n$ch = curl_init(\"https://dashboard.ondial.ai/api/v1/leads/bulk\");\ncurl_setopt_array($ch, [\n CURLOPT_CUSTOMREQUEST => \"POST\",\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_HTTPHEADER => [\n \"Authorization: Bearer \" . getenv(\"ONDIAL_API_KEY\"),\n \"Content-Type: application/json\",\n \"Idempotency-Key: crm-12345\",\n ],\n CURLOPT_POSTFIELDS => json_encode([\n 'campaignId' => '6a7afae1e1cf2999568febc4',\n 'defaults' => [\n 'channel' => 'call',\n 'consent' => [\n 'outboundCall' => true,\n 'source' => 'crm',\n ],\n ],\n 'leads' => [\n [\n 'clientRef' => 'CRM-1',\n 'phone' => '+919876543210',\n 'name' => 'Asha',\n 'metadata' => [\n 'leadId' => 'CRM-1',\n ],\n ],\n [\n 'clientRef' => 'CRM-2',\n 'phone' => '+919812345678',\n 'name' => 'Ravi',\n 'priority' => 'high',\n ],\n ],\n ]),\n]);\n\n$response = curl_exec($ch);\n$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);\ncurl_close($ch);\n\necho $status . \" \" . $response;"},{"label":"Java","lang":"java","source":"import java.net.URI;\nimport java.net.http.HttpClient;\nimport java.net.http.HttpRequest;\nimport java.net.http.HttpResponse;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n HttpClient client = HttpClient.newHttpClient();\n HttpRequest request = HttpRequest.newBuilder()\n .uri(URI.create(\"https://dashboard.ondial.ai/api/v1/leads/bulk\"))\n .header(\"Authorization\", \"Bearer \" + System.getenv(\"ONDIAL_API_KEY\"))\n .header(\"Content-Type\", \"application/json\")\n .header(\"Idempotency-Key\", \"crm-12345\")\n .method(\"POST\", HttpRequest.BodyPublishers.ofString(\"\"\"\n{\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": true,\n \"source\": \"crm\"\n }\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\"\n }\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\"\n }\n ]\n}\n\"\"\"))\n .build();\n\n HttpResponse\u003cString> response = client.send(request, HttpResponse.BodyHandlers.ofString());\n System.out.println(response.statusCode() + \" \" + response.body());\n }\n}"},{"label":"C#","lang":"csharp","source":"using System;\nusing System.Net.Http;\nusing System.Text;\n\nusing var client = new HttpClient();\nvar request = new HttpRequestMessage(HttpMethod.Post, \"https://dashboard.ondial.ai/api/v1/leads/bulk\");\nrequest.Headers.Add(\"Authorization\", \"Bearer \" + Environment.GetEnvironmentVariable(\"ONDIAL_API_KEY\"));\nrequest.Headers.Add(\"Idempotency-Key\", \"crm-12345\");\nrequest.Content = new StringContent(\"\"\"\n{\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": true,\n \"source\": \"crm\"\n }\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\"\n }\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\"\n }\n ]\n}\n\"\"\", Encoding.UTF8, \"application/json\");\n\nvar response = await client.SendAsync(request);\nConsole.WriteLine((int)response.StatusCode + \" \" + await response.Content.ReadAsStringAsync());"},{"label":"Go","lang":"go","source":"package main\n\nimport (\n\t\"bytes\"\n\t\"fmt\"\n\t\"io\"\n\t\"net/http\"\n\t\"os\"\n)\n\nfunc main() {\n\tbody := []byte(`{\n \"campaignId\": \"6a7afae1e1cf2999568febc4\",\n \"defaults\": {\n \"channel\": \"call\",\n \"consent\": {\n \"outboundCall\": true,\n \"source\": \"crm\"\n }\n },\n \"leads\": [\n {\n \"clientRef\": \"CRM-1\",\n \"phone\": \"+919876543210\",\n \"name\": \"Asha\",\n \"metadata\": {\n \"leadId\": \"CRM-1\"\n }\n },\n {\n \"clientRef\": \"CRM-2\",\n \"phone\": \"+919812345678\",\n \"name\": \"Ravi\",\n \"priority\": \"high\"\n }\n ]\n}`)\n\treq, _ := http.NewRequest(\"POST\", \"https://dashboard.ondial.ai/api/v1/leads/bulk\", bytes.NewBuffer(body))\n\treq.Header.Set(\"Authorization\", \"Bearer \"+os.Getenv(\"ONDIAL_API_KEY\"))\n\treq.Header.Set(\"Content-Type\", \"application/json\")\n\treq.Header.Set(\"Idempotency-Key\", \"crm-12345\")\n\n\tres, err := http.DefaultClient.Do(req)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tdefer res.Body.Close()\n\n\tout, _ := io.ReadAll(res.Body)\n\tfmt.Println(res.StatusCode, string(out))\n}"}],"requestExampleLanguages":["bash","javascript","python","php","java","csharp","go"],"requiredOnlyExamples":false,"disableCodeSampleGeneration":true,"requestExampleType":"codeSamples","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.oneOf.0.campaignId":"6a7afae1e1cf2999568febc4","body.oneOf.0.leads.items.0.phone":"+919876543210","body.oneOf.0.leads.items.0.clientRef":"CRM-1","body.oneOf.0.leads.items.0.name":"Asha","body.oneOf.0.leads.items.0.metadata":{"leadId":"CRM-1"},"body.oneOf.0.leads.items.1.phone":"+919812345678","body.oneOf.0.leads.items.1.clientRef":"CRM-2","body.oneOf.0.leads.items.1.name":"Ravi","body.oneOf.0.leads.items.1.priority":"high","body.oneOf.0.defaults":{"channel":"call","consent":{"outboundCall":true,"source":"crm"}}},{"body.oneOf.1.campaignId":"6a7afae1e1cf2999568febc4","body.oneOf.1.leads.items.0.email":"asha@example.com","body.oneOf.1.leads.items.0.clientRef":"CRM-1","body.oneOf.1.leads.items.0.name":"Asha","body.oneOf.1.leads.items.0.templateVariables.contact_name":"Asha","body.oneOf.1.leads.items.0.templateVariables.product":"Home loan","body.oneOf.1.leads.items.1.email":"ravi@example.com","body.oneOf.1.leads.items.1.clientRef":"CRM-2","body.oneOf.1.leads.items.1.name":"Ravi","body.oneOf.1.leads.items.1.templateVariables.contact_name":"Ravi","body.oneOf.1.leads.items.1.templateVariables.product":"Car loan","body.oneOf.1.defaults":{"channel":"email","emailProfileId":"YOUR_EMAIL_PROFILE_ID","emailTemplateId":"YOUR_EMAIL_TEMPLATE_ID"}},{"body.oneOf.0.campaignId":"6a7afae1e1cf2999568febc4","body.oneOf.0.leads.items.0.phone":"+919876543210","body.oneOf.0.leads.items.0.clientRef":"CRM-1","body.oneOf.0.leads.items.0.name":"Asha","body.oneOf.0.leads.items.1.phone":"+919812345678","body.oneOf.0.leads.items.1.clientRef":"CRM-2","body.oneOf.0.leads.items.1.name":"Ravi","body.oneOf.0.defaults":{"channel":"whatsapp","whatsappProfileId":"YOUR_WHATSAPP_PROFILE_ID","whatsappTemplateId":"YOUR_WHATSAPP_TEMPLATE_ID"}},{"body.oneOf.0.campaignId":"6a7afae1e1cf2999568febc4","body.oneOf.0.leads.items.0.phone":"+919876543210","body.oneOf.0.leads.items.0.clientRef":"CRM-1","body.oneOf.0.defaults":{"channel":"call","consent":{"outboundCall":true,"source":"crm"}},"body.oneOf.0.dryRun":true}],"disableProxy":true,"urlDisplay":"full"},"dependencies":{"parameters":{"53e5ef60-656f-4dbf-9688-655b10e2f88d":{"in":"header","name":"Idempotency-Key","schema":{"type":"string","description":"Optional. Same key + same body returns the same response (`idempotentReplay: true`); same key + different body → 409.","uniqueKey":"","typeLabel":"string"},"description":"Optional. Same key + same body returns the same response (`idempotentReplay: true`); same key + different body → 409."}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"type":"object","title":"Call","required":["campaignId","leads"],"properties":{"campaignId":{"type":"string","example":"6a7afae1e1cf2999568febc4","description":"All leads in one request go to this campaign.","isRequired":true,"uniqueKey":"oneOf.0.campaignId","typeLabel":"string"},"leads":{"type":"array","minItems":1,"items":{"type":"object","required":["phone"],"properties":{"phone":{"type":"string","example":"+919876543210","isRequired":true,"uniqueKey":"oneOf.0.leads.items.[INDEX].phone","typeLabel":"string"},"leadId":{"oneOf":[{"type":"string","description":"Your own lead id from your CRM (string or number). Returned unchanged in the response, in error responses and in call webhooks, so you can map every Ondial reply to your lead. Also accepted as `metadata.leadId`.","maxLength":200,"example":177,"uniqueKey":"oneOf.0.leads.items.[INDEX].leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id from your CRM (string or number). Returned unchanged in the response, in error responses and in call webhooks, so you can map every Ondial reply to your lead. Also accepted as `metadata.leadId`.","example":177,"uniqueKey":"oneOf.0.leads.items.[INDEX].leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"oneOf.0.leads.items.[INDEX].leadId","typeLabel":"string | number"},"channel":{"type":"string","enum":["call"],"default":"call","description":"Dial only. Can be set once in `defaults`.","uniqueKey":"oneOf.0.leads.items.[INDEX].channel","typeLabel":"enum\u003cstring>"},"clientRef":{"type":"string","maxLength":100,"description":"Your own id for this lead. Returned in the result.","example":"CRM-1","uniqueKey":"oneOf.0.leads.items.[INDEX].clientRef","typeLabel":"string"},"name":{"type":"string","example":"Asha","uniqueKey":"oneOf.0.leads.items.[INDEX].name","typeLabel":"string"},"consent":{"type":"object","required":["outboundCall"],"properties":{"outboundCall":{"type":"boolean","default":true,"description":"Must be true to place a dial. Not used for email or WhatsApp.","isRequired":true,"uniqueKey":"oneOf.0.leads.items.[INDEX].consent.outboundCall","typeLabel":"boolean"},"source":{"type":"string","example":"crm","uniqueKey":"oneOf.0.leads.items.[INDEX].consent.source","typeLabel":"string"}},"uniqueKey":"oneOf.0.leads.items.[INDEX].consent","typeLabel":"object"},"priority":{"type":"string","enum":["high","normal"],"uniqueKey":"oneOf.0.leads.items.[INDEX].priority","typeLabel":"enum\u003cstring>"},"scheduledAt":{"type":"string","format":"date-time","description":"When to dial. Defaults to now.","uniqueKey":"oneOf.0.leads.items.[INDEX].scheduledAt","typeLabel":"string\u003cdate-time>"},"requeue":{"type":"boolean","description":"Re-arm a finished contact.","uniqueKey":"oneOf.0.leads.items.[INDEX].requeue","typeLabel":"boolean"},"metadata":{"type":"object","additionalProperties":true,"example":{"leadId":"CRM-1"},"uniqueKey":"oneOf.0.leads.items.[INDEX].metadata","typeLabel":"object"}},"uniqueKey":"oneOf.0.leads.items.[INDEX]","typeLabel":"object"},"description":"Up to 100 leads per request by default; the limit can be raised for your API key (maximum 500). Over the limit returns 413 bulk_limit_exceeded.","isRequired":true,"uniqueKey":"oneOf.0.leads","typeLabel":"object[]"},"defaults":{"type":"object","additionalProperties":true,"description":"Used when a lead leaves a field out. Typical: `{ \"channel\": \"call\", \"consent\": { \"outboundCall\": true, \"source\": \"crm\" } }`. A value on the lead wins. `metadata` is merged.","uniqueKey":"oneOf.0.defaults","typeLabel":"object"},"dryRun":{"type":"boolean","default":false,"description":"Validate every lead and create nothing.","uniqueKey":"oneOf.0.dryRun","typeLabel":"boolean"},"atomic":{"type":"boolean","default":false,"description":"Create nothing unless every lead is valid (`422 bulk_atomic_rejected`).","uniqueKey":"oneOf.0.atomic","typeLabel":"boolean"}},"uniqueKey":"oneOf.0","typeLabel":"Call · object"},{"type":"object","title":"Email","required":["campaignId","leads"],"properties":{"campaignId":{"type":"string","example":"6a7afae1e1cf2999568febc4","description":"All leads in one request go to this campaign.","isRequired":true,"uniqueKey":"oneOf.1.campaignId","typeLabel":"string"},"leads":{"type":"array","minItems":1,"items":{"type":"object","required":["email"],"properties":{"email":{"type":"string","format":"email","example":"asha@example.com","isRequired":true,"uniqueKey":"oneOf.1.leads.items.[INDEX].email","typeLabel":"string\u003cemail>"},"leadId":{"oneOf":[{"type":"string","description":"Your own lead id from your CRM (string or number). Returned unchanged in the response, in error responses and in call webhooks, so you can map every Ondial reply to your lead. Also accepted as `metadata.leadId`.","maxLength":200,"example":177,"uniqueKey":"oneOf.1.leads.items.[INDEX].leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id from your CRM (string or number). Returned unchanged in the response, in error responses and in call webhooks, so you can map every Ondial reply to your lead. Also accepted as `metadata.leadId`.","example":177,"uniqueKey":"oneOf.1.leads.items.[INDEX].leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"oneOf.1.leads.items.[INDEX].leadId","typeLabel":"string | number"},"channel":{"type":"string","enum":["email"],"default":"email","description":"Email only. Can be set once in `defaults`.","uniqueKey":"oneOf.1.leads.items.[INDEX].channel","typeLabel":"enum\u003cstring>"},"clientRef":{"type":"string","maxLength":100,"description":"Your own id for this lead. Returned in the result.","example":"CRM-1","uniqueKey":"oneOf.1.leads.items.[INDEX].clientRef","typeLabel":"string"},"name":{"type":"string","example":"Asha","uniqueKey":"oneOf.1.leads.items.[INDEX].name","typeLabel":"string"},"emailProfileId":{"type":"string","description":"From Lead setup. Can be set once in `defaults`.","uniqueKey":"oneOf.1.leads.items.[INDEX].emailProfileId","typeLabel":"string"},"emailTemplateId":{"type":"string","description":"From Lead setup. Can be set once in `defaults`.","uniqueKey":"oneOf.1.leads.items.[INDEX].emailTemplateId","typeLabel":"string"},"templateVariables":{"title":"templateVariables","type":"object","description":"Required. **Keys are dynamic** - use only the `{{placeholders}}` from **your** selected email template (copy from Lead setup `email.lead.templateVariables` or the template subject/body).\n\n- Do **not** assume every template has `contact_name`, `company_name`, or `agent_name`.\n- Add each key with **+ Add new property**: key = placeholder name (without `{{ }}`), value = string to insert.\n- If the template has **no** `{{keys}}`, send `{}`.\n\nExample below is illustrative only.","additionalProperties":{"type":"string","description":"Value for one `{{key}}` from the selected template. Property name = the key (e.g. `city` for `{{city}}`).","uniqueKey":"oneOf.1.leads.items.[INDEX].templateVariables.additionalProperties","typeLabel":"string"},"example":{"contact_name":"Asha","product":"Home loan"},"default":{},"uniqueKey":"oneOf.1.leads.items.[INDEX].templateVariables","typeLabel":"templateVariables · object"},"emailScheduledAt":{"type":"string","format":"date-time","description":"When to send. Defaults to now.","uniqueKey":"oneOf.1.leads.items.[INDEX].emailScheduledAt","typeLabel":"string\u003cdate-time>"},"requeue":{"type":"boolean","description":"Re-arm a finished contact.","uniqueKey":"oneOf.1.leads.items.[INDEX].requeue","typeLabel":"boolean"},"metadata":{"type":"object","additionalProperties":true,"example":{"leadId":"CRM-1"},"uniqueKey":"oneOf.1.leads.items.[INDEX].metadata","typeLabel":"object"}},"uniqueKey":"oneOf.1.leads.items.[INDEX]","typeLabel":"object"},"description":"Up to 100 leads per request by default; the limit can be raised for your API key (maximum 500). Over the limit returns 413 bulk_limit_exceeded.","isRequired":true,"uniqueKey":"oneOf.1.leads","typeLabel":"object[]"},"defaults":{"type":"object","additionalProperties":true,"description":"Used when a lead leaves a field out. Typical: `{ \"channel\": \"email\", \"emailProfileId\": \"...\", \"emailTemplateId\": \"...\" }`. Consent is not required for email. A value on the lead wins. `metadata` is merged.","uniqueKey":"oneOf.1.defaults","typeLabel":"object"},"dryRun":{"type":"boolean","default":false,"description":"Validate every lead and create nothing.","uniqueKey":"oneOf.1.dryRun","typeLabel":"boolean"},"atomic":{"type":"boolean","default":false,"description":"Create nothing unless every lead is valid (`422 bulk_atomic_rejected`).","uniqueKey":"oneOf.1.atomic","typeLabel":"boolean"}},"uniqueKey":"oneOf.1","typeLabel":"Email · object"},{"type":"object","title":"WhatsApp","required":["campaignId","leads"],"properties":{"campaignId":{"type":"string","example":"6a7afae1e1cf2999568febc4","description":"All leads in one request go to this campaign.","isRequired":true,"uniqueKey":"oneOf.2.campaignId","typeLabel":"string"},"leads":{"type":"array","minItems":1,"items":{"type":"object","required":["phone"],"properties":{"phone":{"type":"string","example":"+919876543210","isRequired":true,"uniqueKey":"oneOf.2.leads.items.[INDEX].phone","typeLabel":"string"},"leadId":{"oneOf":[{"type":"string","description":"Your own lead id from your CRM (string or number). Returned unchanged in the response, in error responses and in call webhooks, so you can map every Ondial reply to your lead. Also accepted as `metadata.leadId`.","maxLength":200,"example":177,"uniqueKey":"oneOf.2.leads.items.[INDEX].leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id from your CRM (string or number). Returned unchanged in the response, in error responses and in call webhooks, so you can map every Ondial reply to your lead. Also accepted as `metadata.leadId`.","example":177,"uniqueKey":"oneOf.2.leads.items.[INDEX].leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"oneOf.2.leads.items.[INDEX].leadId","typeLabel":"string | number"},"channel":{"type":"string","enum":["whatsapp"],"default":"whatsapp","description":"WhatsApp only. Can be set once in `defaults`.","uniqueKey":"oneOf.2.leads.items.[INDEX].channel","typeLabel":"enum\u003cstring>"},"clientRef":{"type":"string","maxLength":100,"description":"Your own id for this lead. Returned in the result.","example":"CRM-1","uniqueKey":"oneOf.2.leads.items.[INDEX].clientRef","typeLabel":"string"},"name":{"type":"string","example":"Asha","uniqueKey":"oneOf.2.leads.items.[INDEX].name","typeLabel":"string"},"whatsappProfileId":{"type":"string","description":"From Lead setup. Can be set once in `defaults`.","uniqueKey":"oneOf.2.leads.items.[INDEX].whatsappProfileId","typeLabel":"string"},"whatsappTemplateId":{"type":"string","description":"From Lead setup. Can be set once in `defaults`.","uniqueKey":"oneOf.2.leads.items.[INDEX].whatsappTemplateId","typeLabel":"string"},"whatsappParams":{"title":"whatsappParams","type":"array","description":"Required. Ordered string values for WhatsApp template placeholders.\n\n| Index | Maps to | Typical `paramLabels` | Example |\n|-------|---------|------------------------|---------|\n| `[0]` | `{{1}}` | Name | `Asha` |\n| `[1]` | `{{2}}` | Order ID | `CRM-99` |\n| `[2]` | `{{3}}` | Product | `Home loan` |\n| `[3]` | `{{4}}` | Amount | `₹5000` |\n| `[4]` | `{{5}}` | Expected Delivery | `30 Sep 2026` |\n| `[5]` | `{{6}}` | Tracking URL | `https://track.example/abc` |\n\nCopy exact length from Lead setup `paramLabels` / `whatsapp.lead.whatsappParams`. Add or remove array items to match your template. Use `[]` only when the template has **no** variables.","items":{"type":"string","description":"Value for the next `{{n}}` slot (see `paramLabels` order).","uniqueKey":"oneOf.2.leads.items.[INDEX].whatsappParams.items.[INDEX]","typeLabel":"string"},"minItems":0,"example":["Asha","CRM-99","Home loan","₹5000","30 Sep 2026","https://track.example/abc"],"default":["Asha","CRM-99","Home loan","₹5000","30 Sep 2026","https://track.example/abc"],"uniqueKey":"oneOf.2.leads.items.[INDEX].whatsappParams","typeLabel":"string[]"},"whatsappScheduledAt":{"type":"string","format":"date-time","description":"When to send. Defaults to now.","uniqueKey":"oneOf.2.leads.items.[INDEX].whatsappScheduledAt","typeLabel":"string\u003cdate-time>"},"requeue":{"type":"boolean","description":"Re-arm a finished contact.","uniqueKey":"oneOf.2.leads.items.[INDEX].requeue","typeLabel":"boolean"},"metadata":{"type":"object","additionalProperties":true,"example":{"leadId":"CRM-1"},"uniqueKey":"oneOf.2.leads.items.[INDEX].metadata","typeLabel":"object"}},"uniqueKey":"oneOf.2.leads.items.[INDEX]","typeLabel":"object"},"description":"Up to 100 leads per request by default; the limit can be raised for your API key (maximum 500). Over the limit returns 413 bulk_limit_exceeded.","isRequired":true,"uniqueKey":"oneOf.2.leads","typeLabel":"object[]"},"defaults":{"type":"object","additionalProperties":true,"description":"Used when a lead leaves a field out. Typical: `{ \"channel\": \"whatsapp\", \"whatsappProfileId\": \"...\", \"whatsappTemplateId\": \"...\" }`. Consent is not required for WhatsApp. A value on the lead wins. `metadata` is merged.","uniqueKey":"oneOf.2.defaults","typeLabel":"object"},"dryRun":{"type":"boolean","default":false,"description":"Validate every lead and create nothing.","uniqueKey":"oneOf.2.dryRun","typeLabel":"boolean"},"atomic":{"type":"boolean","default":false,"description":"Create nothing unless every lead is valid (`422 bulk_atomic_rejected`).","uniqueKey":"oneOf.2.atomic","typeLabel":"boolean"}},"uniqueKey":"oneOf.2","typeLabel":"WhatsApp · object"}],"uniqueKey":"","typeLabel":"Call · object | Email · object | WhatsApp · object"},"examples":{"call":{"title":"call","value":{"campaignId":"6a7afae1e1cf2999568febc4","defaults":{"channel":"call","consent":{"outboundCall":true,"source":"crm"}},"leads":[{"clientRef":"CRM-1","phone":"+919876543210","name":"Asha","metadata":{"leadId":"CRM-1"}},{"clientRef":"CRM-2","phone":"+919812345678","name":"Ravi","priority":"high"}]}},"email":{"title":"email","value":{"campaignId":"6a7afae1e1cf2999568febc4","defaults":{"channel":"email","emailProfileId":"YOUR_EMAIL_PROFILE_ID","emailTemplateId":"YOUR_EMAIL_TEMPLATE_ID"},"leads":[{"clientRef":"CRM-1","email":"asha@example.com","name":"Asha","templateVariables":{"contact_name":"Asha","product":"Home loan"}},{"clientRef":"CRM-2","email":"ravi@example.com","name":"Ravi","templateVariables":{"contact_name":"Ravi","product":"Car loan"}}]}},"whatsapp":{"title":"whatsapp","value":{"campaignId":"6a7afae1e1cf2999568febc4","defaults":{"channel":"whatsapp","whatsappProfileId":"YOUR_WHATSAPP_PROFILE_ID","whatsappTemplateId":"YOUR_WHATSAPP_TEMPLATE_ID"},"leads":[{"clientRef":"CRM-1","phone":"+919876543210","name":"Asha","whatsappParams":["Asha","CRM-1","Home loan","Rs 5000","30 Sep 2026","https://track.example/abc"]},{"clientRef":"CRM-2","phone":"+919812345678","name":"Ravi","whatsappParams":["Ravi","CRM-2","Car loan","Rs 7000","30 Sep 2026","https://track.example/def"]}]}},"dryRun":{"title":"dryRun","value":{"campaignId":"6a7afae1e1cf2999568febc4","dryRun":true,"defaults":{"channel":"call","consent":{"outboundCall":true,"source":"crm"}},"leads":[{"clientRef":"CRM-1","phone":"+919876543210"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"de77e488-d039-4a31-8492-91b2e2e30187":{"description":"Dry run (`dryRun: true`): validation result per lead, nothing created. Always `200`, even when every lead is invalid - read `results[].status`.","content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":"string","uniqueKey":"batchId","typeLabel":"string"},"campaignId":{"type":"string","uniqueKey":"campaignId","typeLabel":"string"},"mode":{"type":"string","enum":["live","sandbox"],"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"dryRun":{"type":"boolean","uniqueKey":"dryRun","typeLabel":"boolean"},"idempotentReplay":{"type":"boolean","uniqueKey":"idempotentReplay","typeLabel":"boolean"},"summary":{"type":"object","properties":{"received":{"type":"integer","uniqueKey":"summary.received","typeLabel":"integer"},"accepted":{"type":"integer","uniqueKey":"summary.accepted","typeLabel":"integer"},"rejected":{"type":"integer","uniqueKey":"summary.rejected","typeLabel":"integer"},"duplicates":{"type":"integer","description":"Leads that were duplicates (in the request or already in the campaign).","uniqueKey":"summary.duplicates","typeLabel":"integer"},"queuedPaused":{"type":"integer","description":"Accepted while the campaign is paused; they dial after resume.","uniqueKey":"summary.queuedPaused","typeLabel":"integer"}},"uniqueKey":"summary","typeLabel":"object"},"results":{"type":"array","items":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"results.items.[INDEX].leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it. Omitted when you did not send one.","example":177,"uniqueKey":"results.items.[INDEX].leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"results.items.[INDEX].leadId","typeLabel":"string | number"},"index":{"type":"integer","description":"Position of the lead in your `leads` array (starts at 0).","uniqueKey":"results.items.[INDEX].index","typeLabel":"integer"},"clientRef":{"type":"string","uniqueKey":"results.items.[INDEX].clientRef","typeLabel":"string"},"status":{"type":"string","enum":["accepted","queued_paused","sandbox_accepted","registered","rejected","valid","not_processed"],"uniqueKey":"results.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"contactId":{"type":"string","uniqueKey":"results.items.[INDEX].contactId","typeLabel":"string"},"action":{"type":"string","enum":["created","updated","requeued"],"uniqueKey":"results.items.[INDEX].action","typeLabel":"enum\u003cstring>"},"reasonCode":{"oneOf":[{"type":"string","description":"Why a lead was rejected, or `duplicate_no_requeue` when it already existed and was not redialed.","uniqueKey":"results.items.[INDEX].reasonCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why a lead was rejected, or `duplicate_no_requeue` when it already existed and was not redialed.","uniqueKey":"results.items.[INDEX].reasonCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].reasonCode","typeLabel":"string | null"},"error":{"type":"string","description":"Human-readable reason for a rejection.","uniqueKey":"results.items.[INDEX].error","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"results.items.[INDEX].details","typeLabel":"object"},"channels":{"type":"array","items":{"type":"string","uniqueKey":"results.items.[INDEX].channels.items.[INDEX]","typeLabel":"string"},"uniqueKey":"results.items.[INDEX].channels","typeLabel":"string[]"},"scheduledAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"results.items.[INDEX].scheduledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"results.items.[INDEX].scheduledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].scheduledAt","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"results","typeLabel":"object[]"},"warnings":{"type":"array","items":{"type":"string","uniqueKey":"warnings.items.[INDEX]","typeLabel":"string"},"uniqueKey":"warnings","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"batchId":"\u003cstring>","campaignId":"\u003cstring>","mode":"live","dryRun":true,"idempotentReplay":true,"summary":{"received":123,"accepted":123,"rejected":123,"duplicates":123,"queuedPaused":123},"results":[{"leadId":177,"index":123,"clientRef":"\u003cstring>","status":"accepted","contactId":"\u003cstring>","action":"created","reasonCode":"\u003cstring>","error":"\u003cstring>","details":{},"channels":["\u003cstring>"],"scheduledAt":"2023-11-07T05:31:56Z"}],"warnings":["\u003cstring>"]}}},"exampleType":"generated"}},"exampleType":"generated"},"27c6b275-175d-4fc5-bf0d-a44d38ada97b":{"description":"Every lead accepted","content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":"string","uniqueKey":"batchId","typeLabel":"string"},"campaignId":{"type":"string","uniqueKey":"campaignId","typeLabel":"string"},"mode":{"type":"string","enum":["live","sandbox"],"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"dryRun":{"type":"boolean","uniqueKey":"dryRun","typeLabel":"boolean"},"idempotentReplay":{"type":"boolean","uniqueKey":"idempotentReplay","typeLabel":"boolean"},"summary":{"type":"object","properties":{"received":{"type":"integer","uniqueKey":"summary.received","typeLabel":"integer"},"accepted":{"type":"integer","uniqueKey":"summary.accepted","typeLabel":"integer"},"rejected":{"type":"integer","uniqueKey":"summary.rejected","typeLabel":"integer"},"duplicates":{"type":"integer","description":"Leads that were duplicates (in the request or already in the campaign).","uniqueKey":"summary.duplicates","typeLabel":"integer"},"queuedPaused":{"type":"integer","description":"Accepted while the campaign is paused; they dial after resume.","uniqueKey":"summary.queuedPaused","typeLabel":"integer"}},"uniqueKey":"summary","typeLabel":"object"},"results":{"type":"array","items":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"results.items.[INDEX].leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it. Omitted when you did not send one.","example":177,"uniqueKey":"results.items.[INDEX].leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"results.items.[INDEX].leadId","typeLabel":"string | number"},"index":{"type":"integer","description":"Position of the lead in your `leads` array (starts at 0).","uniqueKey":"results.items.[INDEX].index","typeLabel":"integer"},"clientRef":{"type":"string","uniqueKey":"results.items.[INDEX].clientRef","typeLabel":"string"},"status":{"type":"string","enum":["accepted","queued_paused","sandbox_accepted","registered","rejected","valid","not_processed"],"uniqueKey":"results.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"contactId":{"type":"string","uniqueKey":"results.items.[INDEX].contactId","typeLabel":"string"},"action":{"type":"string","enum":["created","updated","requeued"],"uniqueKey":"results.items.[INDEX].action","typeLabel":"enum\u003cstring>"},"reasonCode":{"oneOf":[{"type":"string","description":"Why a lead was rejected, or `duplicate_no_requeue` when it already existed and was not redialed.","uniqueKey":"results.items.[INDEX].reasonCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why a lead was rejected, or `duplicate_no_requeue` when it already existed and was not redialed.","uniqueKey":"results.items.[INDEX].reasonCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].reasonCode","typeLabel":"string | null"},"error":{"type":"string","description":"Human-readable reason for a rejection.","uniqueKey":"results.items.[INDEX].error","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"results.items.[INDEX].details","typeLabel":"object"},"channels":{"type":"array","items":{"type":"string","uniqueKey":"results.items.[INDEX].channels.items.[INDEX]","typeLabel":"string"},"uniqueKey":"results.items.[INDEX].channels","typeLabel":"string[]"},"scheduledAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"results.items.[INDEX].scheduledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"results.items.[INDEX].scheduledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].scheduledAt","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"results","typeLabel":"object[]"},"warnings":{"type":"array","items":{"type":"string","uniqueKey":"warnings.items.[INDEX]","typeLabel":"string"},"uniqueKey":"warnings","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"batchId":"1f0c2f4e-8e0a-4b1d-9a63-0f3c8a5f2b11","campaignId":"6a7afae1e1cf2999568febc4","mode":"live","summary":{"received":2,"accepted":2,"rejected":0,"duplicates":0,"queuedPaused":0},"results":[{"index":0,"clientRef":"CRM-1","status":"accepted","contactId":"6a7acd39a82e957a556ff6b3","action":"created","reasonCode":null,"channels":["call"],"scheduledAt":null},{"index":1,"clientRef":"CRM-2","status":"accepted","contactId":"6a7acd39a82e957a556ff6b4","action":"created","reasonCode":null,"channels":["call"],"scheduledAt":null}],"warnings":[]},"examples":{"Example":{"title":"Example","value":{"batchId":"1f0c2f4e-8e0a-4b1d-9a63-0f3c8a5f2b11","campaignId":"6a7afae1e1cf2999568febc4","mode":"live","summary":{"received":2,"accepted":2,"rejected":0,"duplicates":0,"queuedPaused":0},"results":[{"index":0,"clientRef":"CRM-1","status":"accepted","contactId":"6a7acd39a82e957a556ff6b3","action":"created","reasonCode":null,"channels":["call"],"scheduledAt":null},{"index":1,"clientRef":"CRM-2","status":"accepted","contactId":"6a7acd39a82e957a556ff6b4","action":"created","reasonCode":null,"channels":["call"],"scheduledAt":null}],"warnings":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"67b563e9-6a58-40f7-8e39-d27412c8dc28":{"description":"Some leads accepted, some rejected - read each result","content":{"application/json":{"schema":{"type":"object","properties":{"batchId":{"type":"string","uniqueKey":"batchId","typeLabel":"string"},"campaignId":{"type":"string","uniqueKey":"campaignId","typeLabel":"string"},"mode":{"type":"string","enum":["live","sandbox"],"uniqueKey":"mode","typeLabel":"enum\u003cstring>"},"dryRun":{"type":"boolean","uniqueKey":"dryRun","typeLabel":"boolean"},"idempotentReplay":{"type":"boolean","uniqueKey":"idempotentReplay","typeLabel":"boolean"},"summary":{"type":"object","properties":{"received":{"type":"integer","uniqueKey":"summary.received","typeLabel":"integer"},"accepted":{"type":"integer","uniqueKey":"summary.accepted","typeLabel":"integer"},"rejected":{"type":"integer","uniqueKey":"summary.rejected","typeLabel":"integer"},"duplicates":{"type":"integer","description":"Leads that were duplicates (in the request or already in the campaign).","uniqueKey":"summary.duplicates","typeLabel":"integer"},"queuedPaused":{"type":"integer","description":"Accepted while the campaign is paused; they dial after resume.","uniqueKey":"summary.queuedPaused","typeLabel":"integer"}},"uniqueKey":"summary","typeLabel":"object"},"results":{"type":"array","items":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"results.items.[INDEX].leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it. Omitted when you did not send one.","example":177,"uniqueKey":"results.items.[INDEX].leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"results.items.[INDEX].leadId","typeLabel":"string | number"},"index":{"type":"integer","description":"Position of the lead in your `leads` array (starts at 0).","uniqueKey":"results.items.[INDEX].index","typeLabel":"integer"},"clientRef":{"type":"string","uniqueKey":"results.items.[INDEX].clientRef","typeLabel":"string"},"status":{"type":"string","enum":["accepted","queued_paused","sandbox_accepted","registered","rejected","valid","not_processed"],"uniqueKey":"results.items.[INDEX].status","typeLabel":"enum\u003cstring>"},"contactId":{"type":"string","uniqueKey":"results.items.[INDEX].contactId","typeLabel":"string"},"action":{"type":"string","enum":["created","updated","requeued"],"uniqueKey":"results.items.[INDEX].action","typeLabel":"enum\u003cstring>"},"reasonCode":{"oneOf":[{"type":"string","description":"Why a lead was rejected, or `duplicate_no_requeue` when it already existed and was not redialed.","uniqueKey":"results.items.[INDEX].reasonCode.oneOf.0","typeLabel":"string"},{"type":"null","description":"Why a lead was rejected, or `duplicate_no_requeue` when it already existed and was not redialed.","uniqueKey":"results.items.[INDEX].reasonCode.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].reasonCode","typeLabel":"string | null"},"error":{"type":"string","description":"Human-readable reason for a rejection.","uniqueKey":"results.items.[INDEX].error","typeLabel":"string"},"details":{"type":"object","additionalProperties":true,"uniqueKey":"results.items.[INDEX].details","typeLabel":"object"},"channels":{"type":"array","items":{"type":"string","uniqueKey":"results.items.[INDEX].channels.items.[INDEX]","typeLabel":"string"},"uniqueKey":"results.items.[INDEX].channels","typeLabel":"string[]"},"scheduledAt":{"oneOf":[{"type":"string","format":"date-time","uniqueKey":"results.items.[INDEX].scheduledAt.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","format":"date-time","uniqueKey":"results.items.[INDEX].scheduledAt.oneOf.1","typeLabel":"null"}],"uniqueKey":"results.items.[INDEX].scheduledAt","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"results.items.[INDEX]","typeLabel":"object"},"uniqueKey":"results","typeLabel":"object[]"},"warnings":{"type":"array","items":{"type":"string","uniqueKey":"warnings.items.[INDEX]","typeLabel":"string"},"uniqueKey":"warnings","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"batchId":"1f0c2f4e-8e0a-4b1d-9a63-0f3c8a5f2b12","campaignId":"6a7afae1e1cf2999568febc4","mode":"live","summary":{"received":3,"accepted":1,"rejected":2,"duplicates":1,"queuedPaused":0},"results":[{"index":0,"clientRef":"CRM-1","status":"accepted","contactId":"6a7acd39a82e957a556ff6b3","action":"created","reasonCode":null,"channels":["call"],"scheduledAt":null},{"index":1,"clientRef":"CRM-2","status":"rejected","reasonCode":"invalid_phone","error":"Invalid phone number"},{"index":2,"clientRef":"CRM-3","status":"rejected","reasonCode":"duplicate_in_request","error":"Same phone/email as lead #0 in this request","details":{"firstIndex":0}}],"warnings":[]},"examples":{"Example":{"title":"Example","value":{"batchId":"1f0c2f4e-8e0a-4b1d-9a63-0f3c8a5f2b12","campaignId":"6a7afae1e1cf2999568febc4","mode":"live","summary":{"received":3,"accepted":1,"rejected":2,"duplicates":1,"queuedPaused":0},"results":[{"index":0,"clientRef":"CRM-1","status":"accepted","contactId":"6a7acd39a82e957a556ff6b3","action":"created","reasonCode":null,"channels":["call"],"scheduledAt":null},{"index":1,"clientRef":"CRM-2","status":"rejected","reasonCode":"invalid_phone","error":"Invalid phone number"},{"index":2,"clientRef":"CRM-3","status":"rejected","reasonCode":"duplicate_in_request","error":"Same phone/email as lead #0 in this request","details":{"firstIndex":0}}],"warnings":[]}}},"exampleType":"examples"}},"exampleType":"examples"},"6ff37db8-3807-401b-ab5b-7306fd06e373":{"description":"Body is not valid JSON, `leads` missing / empty / not an array","content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","example":177,"uniqueKey":"leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"leadId","typeLabel":"string | number"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"reasonCode":{"type":"string","uniqueKey":"reasonCode","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"missing","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"\"leads\" must be an array","reasonCode":"bulk_invalid_body"},"examples":{"Example":{"title":"Example","value":{"error":"\"leads\" must be an array","reasonCode":"bulk_invalid_body"}}},"exampleType":"examples"}},"exampleType":"examples"},"4ed492d6-a665-4da1-a583-f8da62b9f18e":{"description":"Missing, invalid, or inactive API key","content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","example":177,"uniqueKey":"leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"leadId","typeLabel":"string | number"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"reasonCode":{"type":"string","uniqueKey":"reasonCode","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"missing","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Invalid or inactive API key","reasonCode":"unauthorized"},"examples":{"Example":{"title":"Example","value":{"error":"Invalid or inactive API key","reasonCode":"unauthorized"}}},"exampleType":"examples"}},"exampleType":"examples"},"63f19f4b-205c-4cbe-b336-9f7356ac33fe":{"description":"Campaign not found or not yours","content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","example":177,"uniqueKey":"leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"leadId","typeLabel":"string | number"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"reasonCode":{"type":"string","uniqueKey":"reasonCode","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"missing","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Campaign not found","reasonCode":"campaign_not_found"},"examples":{"Example":{"title":"Example","value":{"error":"Campaign not found","reasonCode":"campaign_not_found"}}},"exampleType":"examples"}},"exampleType":"examples"},"d8738876-e27c-45ce-aef7-0014e09c3ec8":{"description":"Idempotency conflict, or another bulk request for this campaign is still running (`bulk_in_progress`)","content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","example":177,"uniqueKey":"leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"leadId","typeLabel":"string | number"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"reasonCode":{"type":"string","uniqueKey":"reasonCode","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"missing","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Another bulk request for this campaign is still running. Retry in a few seconds.","reasonCode":"bulk_in_progress"},"examples":{"Example":{"title":"Example","value":{"error":"Another bulk request for this campaign is still running. Retry in a few seconds.","reasonCode":"bulk_in_progress"}}},"exampleType":"examples"}},"exampleType":"examples"},"bad280ba-1cda-49f0-a800-7a485bae9c0f":{"description":"Too many leads in one request, or body too large","content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","example":177,"uniqueKey":"leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"leadId","typeLabel":"string | number"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"reasonCode":{"type":"string","uniqueKey":"reasonCode","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"missing","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Too many leads in one request (max 100). Split the list into several requests.","reasonCode":"bulk_limit_exceeded","details":{"maxLeads":100,"received":250}},"examples":{"Example":{"title":"Example","value":{"error":"Too many leads in one request (max 100). Split the list into several requests.","reasonCode":"bulk_limit_exceeded","details":{"maxLeads":100,"received":250}}}},"exampleType":"examples"}},"exampleType":"examples"},"dc466cf6-260b-4491-88e1-f04f1ea4e45f":{"description":"Campaign cannot accept leads, no lead accepted (`bulk_all_rejected`), or `atomic` batch rejected (`bulk_atomic_rejected`)","content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","example":177,"uniqueKey":"leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"leadId","typeLabel":"string | number"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"reasonCode":{"type":"string","uniqueKey":"reasonCode","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"missing","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"No lead in this request was accepted","reasonCode":"bulk_all_rejected"},"examples":{"Example":{"title":"Example","value":{"error":"No lead in this request was accepted","reasonCode":"bulk_all_rejected"}}},"exampleType":"examples"}},"exampleType":"examples"},"4c7c409e-929a-4955-a9ff-66d249a75402":{"description":"Either the 60 requests/min limit or the lead budget (default 600 leads/min) was exceeded. Nothing was processed; retry after `Retry-After` seconds. `details.limitPerMinute` is present only for the lead budget.","content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","example":177,"uniqueKey":"leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"leadId","typeLabel":"string | number"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"reasonCode":{"type":"string","uniqueKey":"reasonCode","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"missing","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"error":"Lead rate limit exceeded (600 leads per minute for this API key)","reasonCode":"rate_limited","details":{"limitPerMinute":600,"leadsRemaining":0,"retryAfterSec":23}},"examples":{"Example":{"title":"Example","value":{"error":"Lead rate limit exceeded (600 leads per minute for this API key)","reasonCode":"rate_limited","details":{"limitPerMinute":600,"leadsRemaining":0,"retryAfterSec":23}}}},"exampleType":"examples"}},"exampleType":"examples"},"b843b6bb-3569-45fb-825d-cf22aba32e4c":{"description":"Global kill switch or insufficient credits","content":{"application/json":{"schema":{"type":"object","properties":{"leadId":{"oneOf":[{"type":"string","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","maxLength":200,"example":177,"uniqueKey":"leadId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Your own lead id, exactly as you sent it, so a failed lead can be matched in your CRM. Omitted when you did not send one.","example":177,"uniqueKey":"leadId.oneOf.1","typeLabel":"number"}],"uniqueKey":"leadId","typeLabel":"string | number"},"error":{"type":"string","uniqueKey":"error","typeLabel":"string"},"reasonCode":{"type":"string","uniqueKey":"reasonCode","typeLabel":"string"},"missing":{"type":"array","items":{"type":"string","uniqueKey":"missing.items.[INDEX]","typeLabel":"string"},"uniqueKey":"missing","typeLabel":"string[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"killSwitch":{"title":"killSwitch","value":{"error":"API temporarily disabled","reasonCode":"api_globally_disabled"}},"credits":{"title":"credits","value":{"error":"Insufficient credits","reasonCode":"insufficient_credits"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"b215d335-7809-4fcd-9b28-2d3d3c163e7d":{"BearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"ond_live | ond_test","description":"Paste only your API key (`ond_live_…` or `ond_test_…`). Do not type the word Bearer - the playground adds it.","scopes":[],"schemeName":"BearerAuth"}}},"servers":{"eb3a4261-ceef-42ff-9f3f-3bd66e95f65c":{"url":"https://dashboard.ondial.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"ond_live | ond_test","description":"Paste only your API key (`ond_live_…` or `ond_test_…`). Do not type the word Bearer - the playground adds it.","scopes":[],"schemeName":"BearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Paste only your API key (`ond_live_…` or `ond_test_…`). Do not type the word Bearer - the playground adds it.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"BearerAuth","name":"Authorization"}],"title":"BearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"on-dial","siteName":"OnDial API","title":"Create leads (bulk) - OnDial API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-22T04:22:12.112Z","originalFileLocation":"api-reference/endpoint/core/create-leads-bulk.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";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=\"light\"}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=\"Send many leads in one request. One result per lead.\">\u003cmeta data-mint-head name=\"application-name\" content=\"OnDial 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/on-dial/yyxX663bgEGnvito/_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/on-dial/yyxX663bgEGnvito/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/on-dial/yyxX663bgEGnvito/_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/on-dial/yyxX663bgEGnvito/_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/on-dial/yyxX663bgEGnvito/_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/on-dial/yyxX663bgEGnvito/_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/on-dial/yyxX663bgEGnvito/_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/on-dial/yyxX663bgEGnvito/_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/on-dial/yyxX663bgEGnvito/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create leads (bulk) - OnDial API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send many leads in one request. One result per lead.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"OnDial API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.ondial.ai/api-reference/endpoint/core/create-leads-bulk\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://on-dial.mintlify.app/logo/ondial.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=\"Create leads (bulk) - OnDial API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send many leads in one request. One result per lead.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://on-dial.mintlify.app/logo/ondial.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/on-dial/yyxX663bgEGnvito/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"OnDial API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#510DFD\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.ondial.ai/api-reference/endpoint/core/create-leads-bulk\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/endpoint/core/create-leads-bulk.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.ondial.ai/#organization\",\"name\":\"OnDial API\",\"url\":\"https://docs.ondial.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/on-dial/QgFvVquZ2FQ-S25l/logo/ondial.png?fit=max\u0026auto=format\u0026n=QgFvVquZ2FQ-S25l\u0026q=85\u0026s=6665208ccae8f58e216b214592d0f412\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.ondial.ai#website\",\"name\":\"OnDial API\",\"url\":\"https://docs.ondial.ai\",\"publisher\":{\"@id\":\"https://docs.ondial.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.ondial.ai/api-reference/endpoint/core/create-leads-bulk#webpage\",\"url\":\"https://docs.ondial.ai/api-reference/endpoint/core/create-leads-bulk\",\"name\":\"Create leads (bulk)\",\"description\":\"Send many leads in one request. One result per lead.\",\"dateModified\":\"2026-10-22T04:22:12.112Z\",\"isPartOf\":{\"@id\":\"https://docs.ondial.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.ondial.ai/api-reference/endpoint/core/create-leads-bulk#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.ondial.ai/api-reference/endpoint/core/create-leads-bulk#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Send leads\",\"item\":\"https://docs.ondial.ai/api-reference/overview/send-leads\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create leads (bulk)\",\"item\":\"https://docs.ondial.ai/api-reference/endpoint/core/create-leads-bulk\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.ondial.ai/api-reference/endpoint/core/create-leads-bulk#apireference\",\"headline\":\"Create leads (bulk)\",\"name\":\"Create leads (bulk)\",\"description\":\"Send many leads in one request. One result per lead.\",\"url\":\"https://docs.ondial.ai/api-reference/endpoint/core/create-leads-bulk\",\"mainEntityOfPage\":{\"@id\":\"https://docs.ondial.ai/api-reference/endpoint/core/create-leads-bulk#webpage\"},\"image\":\"https://docs.ondial.ai/logo/ondial.png\",\"dateModified\":\"2026-10-22T04:22:12.112Z\",\"publisher\":{\"@id\":\"https://docs.ondial.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.ondial.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"OnDial API\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"OnDial API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API","groups":[{"group":"Basics","icon":"book-open","pages":[{"title":"Quick start","href":"/api-reference/quick-start/guide"},{"title":"Authentication","href":"/api-reference/quick-start/authentication"},{"title":"API overview","href":"/api-reference/quick-start/api-overview"},{"title":"Errors","href":"/api-reference/quick-start/errors"},{"title":"All endpoints","icon":"list","href":"/api-reference/quick-start/endpoints"}]},{"group":"Set up and test","icon":"plug","pages":[{"title":"Ping","openapi":"GET /api/v1/ping","href":"/api-reference/endpoint/core/ping"},{"title":"List Omni templates","openapi":"GET /api/v1/omni/templates","href":"/api-reference/endpoint/core/list-omni-templates"}]},{"group":"Send leads","icon":"send","pages":[{"title":"Send leads overview","href":"/api-reference/overview/send-leads"},{"title":"List campaigns","deprecated":null,"version":null,"sidebarTitle":"List campaigns","openapi":"/openapi.json get /api/v1/campaigns","href":"/api-reference/endpoint/outbound/list-campaigns"},{"title":"Get campaign","deprecated":null,"version":null,"sidebarTitle":"Get campaign","openapi":"/openapi.json get /api/v1/campaigns/{campaignId}","href":"/api-reference/endpoint/outbound/get-campaign"},{"title":"Lead setup","deprecated":null,"version":null,"sidebarTitle":"Lead setup","openapi":"/openapi.json get /api/v1/campaigns/{campaignId}/lead-setup","href":"/api-reference/endpoint/outbound/lead-setup"},{"title":"Validate lead (dry run)","deprecated":null,"version":null,"sidebarTitle":"Validate lead (dry run)","openapi":"/openapi.json post /api/v1/leads/validate","href":"/api-reference/endpoint/outbound/validate-lead"},{"title":"Create lead","description":"Pick a channel tab in Try it - only that channel’s fields appear.","deprecated":null,"version":null,"sidebarTitle":"Create lead","openapi":"/openapi.json post /api/v1/leads","href":"/api-reference/endpoint/core/create-lead"},{"title":"Create leads (bulk)","deprecated":null,"version":null,"sidebarTitle":"Create leads (bulk)","openapi":"/openapi.json post /api/v1/leads/bulk","href":"/api-reference/endpoint/core/create-leads-bulk"},{"title":"List campaign contacts","description":"Paginated contacts for a campaign - not campaign CRUD.","deprecated":null,"version":null,"sidebarTitle":"List campaign contacts","openapi":"/openapi.json get /api/v1/campaigns/{campaignId}/contacts","href":"/api-reference/endpoint/contacts/list-campaign-contacts"}]},{"group":"Track contacts","icon":"users","pages":[{"title":"Track contacts overview","href":"/api-reference/overview/track-contacts"},{"title":"Get contact","openapi":"openapi.json GET /api/v1/contacts/{id}","href":"/api-reference/endpoint/contacts/get-contact"},{"title":"List contact calls","openapi":"openapi.json GET /api/v1/contacts/{id}/calls","href":"/api-reference/endpoint/contacts/list-contact-calls"},{"title":"Get contact call","openapi":"openapi.json GET /api/v1/contacts/{id}/calls/{callId}","href":"/api-reference/endpoint/contacts/get-contact-call"},{"title":"Schedule follow-up","openapi":"POST /api/v1/contacts/{id}/followups","href":"/api-reference/endpoint/contacts/schedule-followup"},{"title":"Cancel contact","openapi":"POST /api/v1/contacts/{id}/cancel","href":"/api-reference/endpoint/contacts/cancel-contact"},{"title":"Delete contact","openapi":"DELETE /api/v1/contacts/{id}","href":"/api-reference/endpoint/contacts/delete-contact"}]},{"group":"Calls and recordings","icon":"phone-call","pages":[{"title":"List calls","openapi":"openapi.json GET /api/v1/calls","href":"/api-reference/endpoint/calls/list-calls"},{"title":"List active calls","openapi":"openapi.json GET /api/v1/calls/active","href":"/api-reference/endpoint/calls/list-active-calls"},{"title":"Get call","openapi":"openapi.json GET /api/v1/calls/{id}","href":"/api-reference/endpoint/calls/get-call"},{"title":"Get call recording","openapi":"openapi.json GET /api/v1/calls/{id}/recording","href":"/api-reference/endpoint/calls/get-call-recording"}]},{"group":"Webhooks","icon":"webhook","pages":[{"title":"Manage webhooks","openapi":"openapi.json GET /api/v1/webhooks","href":"/api-reference/endpoint/webhooks/manage-webhooks"},{"title":"Webhook events","href":"/api-reference/endpoint/webhooks/webhook-events"}]},{"group":"Events","icon":"zap","pages":[{"title":"Post event","openapi":"POST /api/v1/events","href":"/api-reference/endpoint/events/post-event"},{"title":"List event routes","openapi":"GET /api/v1/event-routes","href":"/api-reference/endpoint/events/list-event-routes"},{"title":"Upsert event route","openapi":"POST /api/v1/event-routes","href":"/api-reference/endpoint/events/upsert-event-route"},{"title":"Delete event route","openapi":"DELETE /api/v1/event-routes","href":"/api-reference/endpoint/events/delete-event-route"}]},{"group":"Credits and analytics","icon":"chart-column","pages":[{"title":"Get credits","openapi":"openapi.json GET /api/v1/credits","href":"/api-reference/endpoint/inbound-agents/get-credits"},{"title":"List credit transactions","openapi":"openapi.json GET /api/v1/credits/transactions","href":"/api-reference/endpoint/credits/list-credit-transactions"},{"title":"Call analytics","openapi":"openapi.json GET /api/v1/analytics/calls","href":"/api-reference/endpoint/analytics/get-call-analytics"}]},{"group":"Inbound agents","icon":"bot","pages":[{"title":"Inbound agents overview","href":"/api-reference/overview/inbound-agents"},{"title":"List inbound agents","openapi":"openapi.json GET /api/v1/inbound-agents","href":"/api-reference/endpoint/inbound-agents/list-inbound-agents"},{"title":"Create inbound agent","openapi":"openapi.json POST /api/v1/inbound-agents","href":"/api-reference/endpoint/inbound-agents/create-inbound-agent"},{"title":"Get inbound agent","openapi":"openapi.json GET /api/v1/inbound-agents/{id}","href":"/api-reference/endpoint/inbound-agents/get-inbound-agent"},{"title":"Update inbound agent","openapi":"openapi.json PATCH /api/v1/inbound-agents/{id}","href":"/api-reference/endpoint/inbound-agents/update-inbound-agent"},{"title":"Generate inbound script","openapi":"openapi.json POST /api/v1/inbound-agents/{id}/generate-script","href":"/api-reference/endpoint/inbound-agents/generate-inbound-script"},{"title":"Activate inbound agent","openapi":"openapi.json POST /api/v1/inbound-agents/{id}/activate","href":"/api-reference/endpoint/inbound-agents/activate-inbound-agent"},{"title":"Sync inbound doctors","openapi":"openapi.json POST /api/v1/inbound-agents/{id}/sync-doctors","href":"/api-reference/endpoint/inbound-agents/sync-inbound-doctors"},{"title":"Inbound CRM lookup","openapi":"openapi.json POST /api/v1/inbound-agents/{id}/crm/lookup","href":"/api-reference/endpoint/inbound-agents/inbound-crm-lookup"},{"title":"Delete inbound agent","openapi":"openapi.json DELETE /api/v1/inbound-agents/{id}","href":"/api-reference/endpoint/inbound-agents/delete-inbound-agent"}]},{"group":"Numbers and voices","icon":"phone","pages":[{"title":"List voices","openapi":"openapi.json GET /api/v1/voices","href":"/api-reference/endpoint/inbound-agents/list-voices"},{"title":"List owned numbers","openapi":"openapi.json GET /api/v1/numbers","href":"/api-reference/endpoint/inbound-agents/list-owned-numbers"},{"title":"List available numbers","openapi":"openapi.json GET /api/v1/numbers/available","href":"/api-reference/endpoint/inbound-agents/list-available-numbers"},{"title":"Purchase numbers","openapi":"openapi.json POST /api/v1/numbers/purchase","href":"/api-reference/endpoint/inbound-agents/purchase-numbers"}]},{"group":"Companies","icon":"building-2","pages":[{"title":"List companies","openapi":"openapi.json GET /api/v1/companies","href":"/api-reference/endpoint/companies/list-companies"},{"title":"Create company","openapi":"openapi.json POST /api/v1/companies","href":"/api-reference/endpoint/companies/create-company"},{"title":"Get company","openapi":"openapi.json GET /api/v1/companies/{id}","href":"/api-reference/endpoint/companies/get-company"},{"title":"Update company","openapi":"openapi.json PATCH /api/v1/companies/{id}","href":"/api-reference/endpoint/companies/update-company"},{"title":"Delete company","openapi":"openapi.json DELETE /api/v1/companies/{id}","href":"/api-reference/endpoint/companies/delete-company"}]},{"group":"Knowledge bases","icon":"library","pages":[{"title":"List knowledge documents","openapi":"openapi.json GET /api/v1/knowledge-bases/documents","href":"/api-reference/endpoint/knowledge-bases/list-documents"},{"title":"Upload billing info","openapi":"openapi.json GET /api/v1/knowledge-bases/upload-billing-info","href":"/api-reference/endpoint/knowledge-bases/upload-billing-info"},{"title":"Upload knowledge document","openapi":"openapi.json POST /api/v1/knowledge-bases/documents","href":"/api-reference/endpoint/knowledge-bases/upload-document"},{"title":"Get document metadata","openapi":"openapi.json GET /api/v1/knowledge-bases/documents/{fileId}","href":"/api-reference/endpoint/knowledge-bases/get-document"},{"title":"Delete knowledge document","openapi":"openapi.json DELETE /api/v1/knowledge-bases/documents/{fileId}","href":"/api-reference/endpoint/knowledge-bases/delete-document"}]}]}]},"title":"Create leads (bulk) - OnDial API","buildId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","deploymentId":"dpl_2xiSHD9XEvLsPGPcfoMtkLTB3dy9","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DmVyH30O.js","utils-BHQqGGOd.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CD-E4BIt.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-Bp5Lq9Ds.js","snippetPresets-C4xAVCFP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-CgXVLxUC.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BF8I5oUf.js","shallow-Byd0lWnC.js","getApiPlaygroundDisplay-BGOZG1OK.js","CodeSnippet-CpvQL0CY.js","CodeSnippets-B8wkBKXa.js","Page-CBCH2P7b.js","getPastedJson-Ry3scI3Y.js","icon-D7a9HcdD.js","MethodPill-CJ8pmHhz.js","DuplicateIcon-rh1HJF0t.js","createIcon-DvGznqYs.js","DynamicMarkdown-Cc6AuSHS.js","SectionHeading-B4A0S-ep.js","axios-vUo_bRtp.js","Markdown-Cc16CX65.js","clsx-Cs6nMGht.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-zbf22OZA.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-C_fs-y5n.js"]}