{ "message": "The campaign was queued", "id": "1251072", "batch_id": "acaab9ea-8754-4d6a-98b1-ace451c7d930", "launch_request_id": "59d7ef01-4518-444f-816e-1c45c1748974", "status_url": "/v2/send-campaign/59d7ef01-4518-444f-816e-1c45c1748974"}
{
"detail": "poll_id is required, either in the URL or the body"
}
{
"detail": "Invalid API key"
}
{
"detail": "There is no poll for this company"
}
API
Send a campaign (recommended)
This is the recommended way to deploy a conversation to a list of users, replacing the legacy /deployment/api/poll/{poll_id} endpoint (going away soon, turns off November 15, 2026). The request body is unchanged: only the URL is different.
The campaign is queued immediately and processed asynchronously — this endpoint returns 202 Accepted right away, before users have actually been messaged. Poll the status_url from the response (or call GET /v2/send-campaign/{launch_request_id}) to check progress.
{ "message": "The campaign was queued", "id": "1251072", "batch_id": "acaab9ea-8754-4d6a-98b1-ace451c7d930", "launch_request_id": "59d7ef01-4518-444f-816e-1c45c1748974", "status_url": "/v2/send-campaign/59d7ef01-4518-444f-816e-1c45c1748974"}
{
"detail": "poll_id is required, either in the URL or the body"
}
{
"detail": "Invalid API key"
}
{
"detail": "There is no poll for this company"
}
Remember that to use this endpoint, you must have obtained your API key in the Developers section of the Treble platform.
This replaces the legacy Deploy a conversation flow endpoint, which will stop working on November 15, 2026. The request body is the same — only the URL changes.
This endpoint responds 202 Accepted as soon as the campaign is queued, before any user has actually been messaged. Use the status_url from the response, or call Get a campaign’s status, to check how it’s progressing.
Select which number deploys (multichannel companies)
For multichannel companies, you can select which cellphone will deploy the user with user_session_keys. If you want the first number to make the deployment, you can just add the key deployment_squad and the corresponding value will be DS_[CELLPHONE]. You may add several deployment squads so several numbers can deploy.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Home","colors":{"primary":"#6464FF","light":"#F7F8FF","dark":"#6464FF"},"logo":{"light":"https://mintcdn.com/trebleai/5XNOo1Uq3QVPV6lD/logo/treble-light.svg?fit=max\u0026auto=format\u0026n=5XNOo1Uq3QVPV6lD\u0026q=85\u0026s=0f7f2dba2b6ef63a34fe90483601df50","dark":"https://mintcdn.com/trebleai/5XNOo1Uq3QVPV6lD/logo/dark.svg?fit=max\u0026auto=format\u0026n=5XNOo1Uq3QVPV6lD\u0026q=85\u0026s=fe4efb4ec225da5a3af57d9b539341c2"},"favicon":"https://mintcdn.com/trebleai/N7qFKPzh9cWmkY9Y/favicon-treble.svg?fit=max\u0026auto=format\u0026n=N7qFKPzh9cWmkY9Y\u0026q=85\u0026s=97fb999775e0a3d4632062af00a6dd3f","appearance":{"default":"light","strict":true},"navbar":{"links":[{"href":"https://wa.me/12058834230","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.treble.ai"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/treble-ai"}},"integrations":{"amplitude":{"apiKey":"73db3d1720f71527cf6882e5063e25b6"},"intercom":{"appId":"uye4idh4"}},"styling":{"latex":true},"navigation":{"languages":[{"language":"es","default":true,"href":"es/home"},{"language":"en","href":"en/home"},{"language":"pt","href":"pt/home"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"trebleai","hasAudioNarration":false,"actualSubdomain":"trebleai","customDomains":["help.treble.ai"],"gitSource":{"type":"github","owner":"treble-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae38e87cb3179e2a1a061d0","collectionId":"27b62e64-68af-41cf-8a76-7004f2a89c77","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae38e87cb3179e2a1a061d0"},"feedback":{"thumbs":true,"edits":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae38e87cb3179e2a1a061d0","clientVersion":"0.0.4076","searchFilterCounts":[{"language":"en","tag":"Documentation","count":197},{"language":"es","tag":"Documentación","count":197},{"language":"pt","tag":"Documentação","count":197},{"language":"en","tag":"User Guide","count":165},{"language":"es","tag":"Guía de usuario","count":165},{"language":"pt","tag":"Guia do usuário","count":165},{"language":"en","tag":"Integrations","count":53},{"language":"es","tag":"Integraciones","count":53},{"language":"pt","tag":"Integrações","count":53},{"language":"en","tag":"API Reference","count":31},{"language":"es","tag":"Referencia de API","count":31},{"language":"pt","tag":"Referência da API","count":31},{"language":"en","tag":"Main Platform","count":22},{"language":"es","tag":"Plataforma Principal","count":22},{"language":"pt","tag":"Plataforma Principal","count":22},{"language":"en","tag":"Build with Treble","count":20},{"language":"en","tag":"Analytics Warehouse","count":20},{"language":"es","tag":"Construye con Treble","count":20},{"language":"es","tag":"Analytics Warehouse","count":20},{"language":"pt","tag":"Construa com o Treble","count":20},{"language":"pt","tag":"Analytics Warehouse","count":20},{"language":"en","tag":"Blocks","count":19},{"language":"en","tag":"HubSpot","count":19},{"language":"en","tag":"Salesforce","count":19},{"language":"es","tag":"Bloques","count":19},{"language":"es","tag":"HubSpot","count":19},{"language":"es","tag":"Salesforce","count":19},{"language":"pt","tag":"Blocos","count":19},{"language":"pt","tag":"HubSpot","count":19},{"language":"pt","tag":"Salesforce","count":19}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"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":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"comment-mode","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":":root{--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif}.hero-container{text-align:center;padding:4rem 1rem;background-color:#fafafa}.hero-title{font-size:3rem;font-weight:600;margin-bottom:1rem;color:#111827}.hero-description{font-size:1.125rem;color:#4b5563;margin-bottom:2rem;max-width:600px;margin-left:auto;margin-right:auto}.search-input{width:100%;max-width:500px;padding:0.75rem 1rem;border:1px solid #e5e7eb;border-radius:0.5rem;font-size:1rem;margin-bottom:2rem;cursor:pointer;background-color:white;transition:all 0.2s ease}.search-input:hover{border-color:#d1d5db;background-color:#f9fafb;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1)}.search-input:focus{outline:none;border-color:#d1d5db;box-shadow:0 1px 3px rgba(0, 0, 0, 0.1)}.explore-link{color:#111827;text-decoration:none;font-weight:500}.explore-link:hover{text-decoration:underline}.section-title{text-align:center;font-size:2rem;font-weight:600;color:#111827;margin:4rem 0 2rem}.tools-guides-container{margin:6rem auto 8rem;max-width:70rem;padding-left:1.25rem;padding-right:1.25rem}.tools-guides-header{text-align:center;margin-bottom:3rem}.tools-guides-grid{width:100%}.hr{border-color:rgb(var(--gray-100));border-top-width:1px;margin-top:3em;margin-bottom:3em}.loom-video{position:relative;padding-bottom:62.5%;height:0}.loom-video iframe{position:absolute;top:0;left:0;width:100%;height:100%}a.article-link{color:var(--tw-prose-links);text-decoration:none;font-weight:600;border-bottom:2px solid rgb(var(--primary-dark));transition:border-color 0.2s ease;position:relative;display:inline-flex;align-items:center}a.article-link p{margin:0}a.article-link svg{width:14px!important;height:14px!important;margin-left:4px}a.article-link:hover{color:rgb(var(--primary-dark));border-color:transparent;background-color:rgba(var(--primary-dark), 0.1);transition:color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease}.interactive-guide .step-container{margin-bottom:2rem;padding:1.5rem;border:1px solid #e5e7eb;border-radius:0.5rem;display:none;opacity:0;transform:translateY(10px);transition:opacity 0.3s ease, transform 0.3s ease}.interactive-guide .step-container h3{margin-top:0}.interactive-guide .step-container.active{display:block}.interactive-guide .step-container.current{opacity:1;transform:translateY(0)}.interactive-guide .step-container.completed{border-color:#10B981}.interactive-guide .step-navigation{display:flex;justify-content:flex-start;margin-bottom:2rem;gap:0.5rem}.interactive-guide .step-indicator{width:2rem;height:2rem;border-radius:50%;background-color:#f3f4f6;border:2px solid #e5e7eb;display:flex;align-items:center;justify-content:center;font-size:0.875rem;font-weight:500;color:#6b7280;cursor:pointer;transition:all 0.2s ease}.interactive-guide .step-indicator:hover{border-color:#d1d5db;background-color:#e5e7eb}.interactive-guide .step-indicator.current{background-color:#10B981;border-color:#059669;color:white}.interactive-guide .step-indicator.completed{background-color:#D1FAE5;border-color:#10B981;color:#059669}.interactive-guide .step-indicator.completed:hover{background-color:#A7F3D0}.interactive-guide .choice-buttons{display:flex;gap:1rem;margin-top:1rem}.interactive-guide .choice-button{padding:0.5rem 1rem;border:1px solid #e5e7eb;border-radius:0.25rem;background-color:white;cursor:pointer;transition:all 0.2s}.interactive-guide .choice-button:hover{background-color:#f9fafb;border-color:#d1d5db}.interactive-guide .choice-button.yes{background-color:#10B981;color:white;border-color:#059669}.interactive-guide .choice-button.no{background-color:#EF4444;color:white;border-color:#DC2626}.interactive-guide .choice-button.yes:hover{background-color:#059669}.interactive-guide .choice-button.no:hover{background-color:#DC2626}.interactive-guide .result-message{margin-top:1rem;padding:1rem;border-radius:0.25rem;display:none}.interactive-guide .result-message.success{background-color:#D1FAE5;color:#065F46;display:block}.interactive-guide .result-message.error{background-color:#FEE2E2;color:#991B1B;display:block}.interactive-guide .sub-steps{margin-top:1rem;display:none}.interactive-guide .sub-steps.active{display:block}.interactive-guide .checkbox-item{display:flex;flex-direction:column;margin-bottom:1rem;padding:0.75rem;border-radius:0.25rem;border:1px solid #e5e7eb;transition:all 0.2s}.interactive-guide .checkbox-item:hover{border-color:#d1d5db}.interactive-guide .checkbox-row{display:flex;align-items:center;justify-content:space-between}.interactive-guide .checkbox-label{display:flex;align-items:center;gap:0.75rem}.interactive-guide .toggle-buttons{display:flex;gap:0.5rem}.interactive-guide .toggle-button{padding:0.25rem 0.75rem;border:1px solid #e5e7eb;border-radius:0.25rem;background-color:white;font-size:0.875rem;cursor:pointer;transition:all 0.2s}.interactive-guide .toggle-button.selected{background-color:#10B981;color:white;border-color:#059669}.interactive-guide .toggle-button.selected.no{background-color:#EF4444;border-color:#DC2626}.interactive-guide .sub-step-help{display:none;margin-top:0.5rem;padding:0.75rem;background-color:#FEF3C7;border-radius:0.25rem;color:#92400E}.interactive-guide .sub-step-help.active{display:block}.interactive-guide .sub-step-help a{color:#92400E}.interactive-guide .sub-step-help a:hover{color:#78350F}.interactive-guide .progress-indicator{margin-top:1rem;height:0.5rem;background-color:#e5e7eb;border-radius:0.25rem;overflow:hidden}.interactive-guide .progress-bar{height:100%;background-color:#10B981;transition:width 0.3s ease;width:0%}.interactive-guide .sub-steps-summary{margin-top:1rem;padding:0.75rem;border-radius:0.25rem;background-color:#f9fafb;display:none}.interactive-guide .sub-steps-summary.complete{display:block;background-color:#D1FAE5;color:#065F46}"}],"page":{"pagePath":"en/api-reference/endpoints/send-campaign","slug":"/en/api-reference/endpoints/send-campaign","pageMetadata":{"title":"Send a campaign (recommended)","openapi":"open-api-files/treble-api-en.json POST /v2/send-campaign/{poll_id}","description":"This is the recommended way to deploy a conversation to a list of users, replacing the legacy `/deployment/api/poll/{poll_id}` endpoint (going away soon, turns off November 15, 2026). The request body is unchanged: only the URL is different.\n\nThe campaign is queued immediately and processed asynchronously — this endpoint returns `202 Accepted` right away, before users have actually been messaged. Poll the `status_url` from the response (or call `GET /v2/send-campaign/{launch_request_id}`) to check progress.","href":"/en/api-reference/endpoints/send-campaign"},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"This is the recommended way to deploy a conversation to a list of users, replacing the legacy \", _jsx(_components.code, {\n children: \"/deployment/api/poll/{poll_id}\"\n }), \" endpoint (going away soon, turns off November 15, 2026). The request body is unchanged: only the URL is different.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"The campaign is queued immediately and processed asynchronously — this endpoint returns \", _jsx(_components.code, {\n children: \"202 Accepted\"\n }), \" right away, before users have actually been messaged. Poll the \", _jsx(_components.code, {\n children: \"status_url\"\n }), \" from the response (or call \", _jsx(_components.code, {\n children: \"GET /v2/send-campaign/{launch_request_id}\"\n }), \") to check progress.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Info,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Warning,{children:_jsxs(_components.p,{children:[`Remember that to use this endpoint, you must have obtained your API key in the `,_jsx(_components.strong,{children:`Developers`}),` section of the Treble platform.`]})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[`This replaces the legacy `,_jsx(_components.a,{href:`/en/api-reference/endpoints/deploy`,children:`Deploy a conversation flow`}),` endpoint, which will stop working on `,_jsx(_components.strong,{children:`November 15, 2026`}),`. The request body is the same — only the URL changes.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`asynchronous-processing`,children:`Asynchronous processing`}),`\n`,_jsxs(_components.p,{children:[`This endpoint responds `,_jsx(_components.code,{children:`202 Accepted`}),` as soon as the campaign is queued, before any user has actually been messaged. Use the `,_jsx(_components.code,{children:`status_url`}),` from the response, or call `,_jsx(_components.a,{href:`/en/api-reference/endpoints/send-campaign-status`,children:`Get a campaign’s status`}),`, to check how it’s progressing.`]}),`\n`,_jsx(Heading,{level:`2`,id:`select-which-number-deploys-multichannel-companies`,children:`Select which number deploys (multichannel companies)`}),`\n`,_jsxs(_components.p,{children:[`For multichannel companies, you can select which cellphone will deploy the user with `,_jsx(_components.code,{children:`user_session_keys`}),`. If you want the first number to make the deployment, you can just add the key `,_jsx(_components.code,{children:`deployment_squad`}),` and the corresponding value will be `,_jsx(_components.code,{children:`DS_[CELLPHONE]`}),`. You may add several deployment squads so several numbers can deploy.`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`6`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"user_session_keys\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deployment_squad\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"DS_[CELLPHONE]\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Send a campaign (recommended)","openapi":"open-api-files/treble-api-en.json POST /v2/send-campaign/{poll_id}","description":"This is the recommended way to deploy a conversation to a list of users, replacing the legacy `/deployment/api/poll/{poll_id}` endpoint (going away soon, turns off November 15, 2026). The request body is unchanged: only the URL is different.\n\nThe campaign is queued immediately and processed asynchronously — this endpoint returns `202 Accepted` right away, before users have actually been messaged. Poll the `status_url` from the response (or call `GET /v2/send-campaign/{launch_request_id}`) to check progress.","href":"/en/api-reference/endpoints/send-campaign"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Asynchronous processing","slug":"asynchronous-processing","depth":2,"children":[]},{"title":"Select which number deploys (multichannel companies)","slug":"select-which-number-deploys-multichannel-companies","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/trebleai/e8b64c48fcecfaa0/script.js"],"openApiReferenceData":{"operation":{"summary":"Send a campaign (recommended)","description":"This is the recommended way to deploy a conversation to a list of users, replacing the legacy `/deployment/api/poll/{poll_id}` endpoint (going away soon, turns off November 15, 2026). The request body is unchanged: only the URL is different.\n\nThe campaign is queued immediately and processed asynchronously — this endpoint returns `202 Accepted` right away, before users have actually been messaged. Poll the `status_url` from the response (or call `GET /v2/send-campaign/{launch_request_id}`) to check progress.","parameters":["2b56c903-8157-4ba7-adf7-3b0071f49e00","dd9ce0be-1cf6-4913-80ba-5e1285bc7923"],"requestBody":"46214b9a-ce13-4127-a7d9-fd31f1c7ec7e","responses":{"202":"0f77eb94-13ce-49b6-8621-370af3f2b1b0","400":"41f31f24-4db4-4759-bde7-a04877452aab","401":"d9f61807-aa5c-4fc4-80f2-0a76b1b27641","404":"42752c0e-efbc-4ce8-b01b-9bef55c5e11a"},"method":"post","type":"path","servers":["1934ae50-d09c-4aa6-a668-289d4bbe9d67"],"security":[],"path":"/v2/send-campaign/{poll_id}","baseUrlOptions":["https://campaign-orchestration.treble.ai"],"title":"Send a campaign (recommended)","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"2b56c903-8157-4ba7-adf7-3b0071f49e00":{"name":"poll_id","in":"path","required":true,"description":"ID of the poll you want to deploy","schema":{"type":"string","isRequired":true,"description":"ID of the poll you want to deploy","uniqueKey":"","typeLabel":"string"}},"dd9ce0be-1cf6-4913-80ba-5e1285bc7923":{"name":"Authorization","in":"header","required":true,"description":"Authorization API Key. Can be obtained at https://app.treble.ai/en/dashboard/settings/developers","schema":{"type":"string","isRequired":true,"description":"Authorization API Key. Can be obtained at https://app.treble.ai/en/dashboard/settings/developers","uniqueKey":"","typeLabel":"string"},"example":"API_KEY"}},"requestBody":{"description":"Information of the users to whom the poll will be deployed","required":true,"content":{"application/json":{"schema":{"type":"object","required":["users"],"properties":{"users":{"type":"array","description":"List of users to whom the poll will be deployed","items":{"type":"object","required":["cellphone","country_code","user_session_keys"],"properties":{"cellphone":{"type":"string","description":"User's phone number without the country code (e.g., '3051234567')","isRequired":true,"uniqueKey":"users.items.[INDEX].cellphone","typeLabel":"string"},"country_code":{"type":"string","description":"Country code with the + symbol (e.g., '+57')","isRequired":true,"uniqueKey":"users.items.[INDEX].country_code","typeLabel":"string"},"user_session_keys":{"type":"array","description":"Variables that can be replaced in question texts or delivered when a webhook is called. For multi-channel companies, you can include the 'deployment_squad' key to select which phone number will perform the deployment.","items":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","description":"Name of the variable. Special values include 'deployment_squad' to select which phone number will perform the deployment.","isRequired":true,"uniqueKey":"users.items.[INDEX].user_session_keys.items.[INDEX].key","typeLabel":"string"},"value":{"type":"string","description":"Value of the variable. For 'deployment_squad', the value must be 'DS_[CELLPHONE]'.","isRequired":true,"uniqueKey":"users.items.[INDEX].user_session_keys.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"users.items.[INDEX].user_session_keys.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"users.items.[INDEX].user_session_keys","typeLabel":"object[]"},"deployment_eta":{"type":"integer","description":"UNIX UTC timestamp to schedule the deployment for a future date (optional). Example: 1615823201 (March 15, 2021, 3:46:41 PM UTC)","uniqueKey":"users.items.[INDEX].deployment_eta","typeLabel":"integer"}},"uniqueKey":"users.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"users","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Basic example":{"title":"Basic example","value":{"users":[{"cellphone":"3051234567","country_code":"+57","user_session_keys":[{"key":"name","value":"John"},{"key":"TransID","value":"12345"},{"key":"schoolname","value":"Redschool"}]}]}},"Example with deployment_eta":{"title":"Example with deployment_eta","value":{"users":[{"cellphone":"3051234567","country_code":"+57","user_session_keys":[{"key":"name","value":"Jhon"}],"deployment_eta":1615823201}]}},"Example with deployment_squad":{"title":"Example with deployment_squad","value":{"users":[{"cellphone":"3051234567","country_code":"+57","user_session_keys":[{"key":"name","value":"Jhon"},{"key":"deployment_squad","value":"DS_[CELLPHONE]"}]}]}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"0f77eb94-13ce-49b6-8621-370af3f2b1b0":{"description":"The campaign was queued for processing","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Confirmation message","uniqueKey":"message","typeLabel":"string"},"id":{"type":"string","description":"Poll ID","uniqueKey":"id","typeLabel":"string"},"batch_id":{"type":"string","description":"Idempotency / batch key for this submission","uniqueKey":"batch_id","typeLabel":"string"},"launch_request_id":{"type":"string","description":"ID to track this submission's progress","uniqueKey":"launch_request_id","typeLabel":"string"},"status_url":{"type":"string","description":"Path to poll for this submission's status","uniqueKey":"status_url","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"The campaign was queued","id":"1251072","batch_id":"acaab9ea-8754-4d6a-98b1-ace451c7d930","launch_request_id":"59d7ef01-4518-444f-816e-1c45c1748974","status_url":"/v2/send-campaign/59d7ef01-4518-444f-816e-1c45c1748974"},"examples":{"Example":{"title":"Example","value":{"message":"The campaign was queued","id":"1251072","batch_id":"acaab9ea-8754-4d6a-98b1-ace451c7d930","launch_request_id":"59d7ef01-4518-444f-816e-1c45c1748974","status_url":"/v2/send-campaign/59d7ef01-4518-444f-816e-1c45c1748974"}}},"exampleType":"examples"}},"exampleType":"examples"},"41f31f24-4db4-4759-bde7-a04877452aab":{"description":"Error in the request","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error description","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":"poll_id is required, either in the URL or the body"},"examples":{"Example":{"title":"Example","value":{"detail":"poll_id is required, either in the URL or the body"}}},"exampleType":"examples"}},"exampleType":"examples"},"d9f61807-aa5c-4fc4-80f2-0a76b1b27641":{"description":"Unauthorized. Invalid or missing API Key, or invalid/expired session token.","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error description","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":"Invalid API key"},"examples":{"Example":{"title":"Example","value":{"detail":"Invalid API key"}}},"exampleType":"examples"}},"exampleType":"examples"},"42752c0e-efbc-4ce8-b01b-9bef55c5e11a":{"description":"There is no poll for this company","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error description","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"detail":"There is no poll for this company"},"examples":{"Example":{"title":"Example","value":{"detail":"There is no poll for this company"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{},"servers":{"1934ae50-d09c-4aa6-a668-289d4bbe9d67":{"url":"https://campaign-orchestration.treble.ai","description":"Campaign Orchestration server"}}},"originalFileLocation":"open-api-files/treble-api-en.json"},"subdomain":"trebleai","siteName":"Home","title":"Send a campaign (recommended) - Home","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"es":{"href":"/es/api-reference/endpoints/send-campaign","matchLevel":1},"en":{"href":"/en/api-reference/endpoints/send-campaign","matchLevel":0},"pt":{"href":"/pt/api-reference/endpoints/send-campaign","matchLevel":1}}},"lastModified":"2026-10-22T15:13:39.900Z","originalFileLocation":"en/api-reference/endpoints/send-campaign.mdx","locale":"en"},"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=\"This is the recommended way to deploy a conversation to a list of users, replacing the legacy /deployment/api/poll/{poll_id} endpoint (going away soon, turns off November 15, 2026). The request body is unchanged: only the URL is different. The campaign is queued immediately and processed asynchronously — this endpoint returns 202 Accepted right away, before users have actually been messaged. Poll the status_url from the response (or call GET /v2/send-campaign/{launch_request_id}) to check progress.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Home\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/trebleai/HNsHU13Wcqq09jY3/_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/trebleai/HNsHU13Wcqq09jY3/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/trebleai/HNsHU13Wcqq09jY3/_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/trebleai/HNsHU13Wcqq09jY3/_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/trebleai/HNsHU13Wcqq09jY3/_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/trebleai/HNsHU13Wcqq09jY3/_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/trebleai/HNsHU13Wcqq09jY3/_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/trebleai/HNsHU13Wcqq09jY3/_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/trebleai/HNsHU13Wcqq09jY3/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send a campaign (recommended) - Home\">\u003cmeta data-mint-head property=\"og:description\" content=\"This is the recommended way to deploy a conversation to a list of users, replacing the legacy /deployment/api/poll/{poll_id} endpoint (going away soon, turns off November 15, 2026). The request body is unchanged: only the URL is different. The campaign is queued immediately and processed asynchronously — this endpoint returns 202 Accepted right away, before users have actually been messaged. Poll the status_url from the response (or call GET /v2/send-campaign/{launch_request_id}) to check progress.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Home\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.treble.ai/en/api-reference/endpoints/send-campaign\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://trebleai.mintlify.site/_mintlify/api/og/v2?division=API\u0026amp;title=Send+a+campaign+%28recommended%29\u0026amp;description=This+is+the+recommended+way+to+deploy+a+conversation+to+a+list+of+users%2C+replacing+the+legacy+%60%2Fdeployment%2Fapi%2Fpoll%2F%7Bpoll_id%7D%60+endpoint+%28going+away+soon%2C+turns+\u0026amp;theme=3f682625aa372d8383525fb3\u0026amp;signature=9ee5b0da3e982db2ed12e8475f27b8fcea4a09079b7f491a6be327750ab51457\">\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=\"Send a campaign (recommended) - Home\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"This is the recommended way to deploy a conversation to a list of users, replacing the legacy /deployment/api/poll/{poll_id} endpoint (going away soon, turns off November 15, 2026). The request body is unchanged: only the URL is different. The campaign is queued immediately and processed asynchronously — this endpoint returns 202 Accepted right away, before users have actually been messaged. Poll the status_url from the response (or call GET /v2/send-campaign/{launch_request_id}) to check progress.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://trebleai.mintlify.site/_mintlify/api/og/v2?division=API\u0026amp;title=Send+a+campaign+%28recommended%29\u0026amp;description=This+is+the+recommended+way+to+deploy+a+conversation+to+a+list+of+users%2C+replacing+the+legacy+%60%2Fdeployment%2Fapi%2Fpoll%2F%7Bpoll_id%7D%60+endpoint+%28going+away+soon%2C+turns+\u0026amp;theme=3f682625aa372d8383525fb3\u0026amp;signature=9ee5b0da3e982db2ed12e8475f27b8fcea4a09079b7f491a6be327750ab51457\">\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/trebleai/HNsHU13Wcqq09jY3/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Home\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6464FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.treble.ai/en/api-reference/endpoints/send-campaign\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/en/api-reference/endpoints/send-campaign.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://help.treble.ai/en/api-reference/endpoints/send-campaign\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://help.treble.ai/es/api-reference/endpoints/send-campaign\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"pt\" href=\"https://help.treble.ai/pt/api-reference/endpoints/send-campaign\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://help.treble.ai/es/api-reference/endpoints/send-campaign\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help.treble.ai/#organization\",\"name\":\"Home\",\"url\":\"https://help.treble.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/trebleai/5XNOo1Uq3QVPV6lD/logo/treble-light.svg?fit=max\u0026auto=format\u0026n=5XNOo1Uq3QVPV6lD\u0026q=85\u0026s=0f7f2dba2b6ef63a34fe90483601df50\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help.treble.ai#website\",\"name\":\"Home\",\"url\":\"https://help.treble.ai\",\"publisher\":{\"@id\":\"https://help.treble.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.treble.ai/en/api-reference/endpoints/send-campaign#webpage\",\"url\":\"https://help.treble.ai/en/api-reference/endpoints/send-campaign\",\"name\":\"Send a campaign (recommended)\",\"description\":\"This is the recommended way to deploy a conversation to a list of users, replacing the legacy /deployment/api/poll/{poll_id} endpoint (going away soon, turns off November 15, 2026). The request body is unchanged: only the URL is different. The campaign is queued immediately and processed asynchronously — this endpoint returns 202 Accepted right away, before users have actually been messaged. Poll the status_url from the response (or call GET /v2/send-campaign/{launch_request_id}) to check progress.\",\"dateModified\":\"2026-10-22T15:13:39.900Z\",\"isPartOf\":{\"@id\":\"https://help.treble.ai#website\"},\"breadcrumb\":{\"@id\":\"https://help.treble.ai/en/api-reference/endpoints/send-campaign#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.treble.ai/en/api-reference/endpoints/send-campaign#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https://help.treble.ai\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send a campaign (recommended)\",\"item\":\"https://help.treble.ai/en/api-reference/endpoints/send-campaign\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://help.treble.ai/en/api-reference/endpoints/send-campaign#apireference\",\"headline\":\"Send a campaign (recommended)\",\"name\":\"Send a campaign (recommended)\",\"description\":\"This is the recommended way to deploy a conversation to a list of users, replacing the legacy /deployment/api/poll/{poll_id} endpoint (going away soon, turns off November 15, 2026). The request body is unchanged: only the URL is different. The campaign is queued immediately and processed asynchronously — this endpoint returns 202 Accepted right away, before users have actually been messaged. Poll the status_url from the response (or call GET /v2/send-campaign/{launch_request_id}) to check progress.\",\"url\":\"https://help.treble.ai/en/api-reference/endpoints/send-campaign\",\"mainEntityOfPage\":{\"@id\":\"https://help.treble.ai/en/api-reference/endpoints/send-campaign#webpage\"},\"dateModified\":\"2026-10-22T15:13:39.900Z\",\"publisher\":{\"@id\":\"https://help.treble.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://help.treble.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Home\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Home","nav":{"global":null,"languages":[{"language":"es","default":true,"pages":[{"title":"es","href":"/es/api-reference/endpoints/send-campaign"}]},{"language":"en","anchors":[{"anchor":"Documentation","icon":"book-open","tabs":[{"tab":"Welcome","pages":[{"title":"Welcome","href":"/en/home"}]},{"tab":"User Guide","pages":[{"title":"User Guide","href":"/en/docs/welcome"}]},{"tab":"API Reference","groups":[{"group":"Introduction to API","pages":[{"title":"Introduction","href":"/en/api-reference/intro/intro"},{"title":"API Key and Webhook Headers","description":"To interact with the Treble API, you will need an API key. This key will allow you to authenticate your requests to the API and access the available endpoints. Learn how to obtain your API key in this article.","href":"/en/api-reference/intro/api-key"}]},{"group":"API","pages":[{"title":"Send a campaign (recommended)","openapi":"open-api-files/treble-api-en.json POST /v2/send-campaign/{poll_id}","href":"/en/api-reference/endpoints/send-campaign"},{"title":"Get a campaign's status","openapi":"open-api-files/treble-api-en.json GET /v2/send-campaign/{launch_request_id}","description":"Check how a campaign submitted to `POST /v2/send-campaign` is progressing: whether it's still pending, has been claimed for processing, or is done, along with the status of each individual deployment it expanded into.","href":"/en/api-reference/endpoints/send-campaign-status"},{"title":"Deploy a conversation flow","openapi":"open-api-files/treble-api-en.json POST /deployment/api/poll/{poll_id}","href":"/en/api-reference/endpoints/deploy"},{"title":"Get all conversations","openapi":"open-api-files/treble-api-en.json GET /poll/api/all","href":"/en/api-reference/endpoints/get-convos"},{"title":"Get all sessions","openapi":"open-api-files/treble-api-en.json GET /devapi/poll/{poll_id}/sessions","href":"/en/api-reference/endpoints/get-sessions"},{"title":"Get session history","openapi":"open-api-files/treble-api-en.json GET /devapi/session/{session_id}/history","href":"/en/api-reference/endpoints/get-session-history"},{"title":"Update a session","openapi":"open-api-files/treble-api-en.json POST /session/{session_external_id}/update","href":"/en/api-reference/endpoints/session-update"},{"title":"Get your company's agents","openapi":"open-api-files/treble-api-en.json GET /agent/company/agents","href":"/en/api-reference/endpoints/get-agents"}]},{"group":"Webhooks","pages":[{"title":"Introduction to webhooks","href":"/en/api-reference/webhooks/intro"},{"group":"Conversation Editor","pages":[{"title":"Message Read and Delivery Webhooks","href":"/en/api-reference/webhooks/conversation-editor/delivered-read"},{"title":"Message Delivery Webhook Request Body","openapi":"open-api-files/treble-api-en.json POST /webhooks/on-delivered","href":"/en/api-reference/webhooks/conversation-editor/delivered-api"},{"title":"Message Read Webhook Request Body","openapi":"open-api-files/treble-api-en.json POST /webhooks/on-read","href":"/en/api-reference/webhooks/conversation-editor/read-api"},{"title":"Message Response Webhook","href":"/en/api-reference/webhooks/conversation-editor/message-response"},{"title":"Stop Treble conversation and wait for your server response","href":"/en/api-reference/webhooks/conversation-editor/request-trigger"},{"title":"Message Response Webhook Request Body","openapi":"open-api-files/treble-api-en.json POST /webhooks/on-response","href":"/en/api-reference/webhooks/conversation-editor/message-response-api"},{"title":"Condition Node Webhook Request Body","openapi":"open-api-files/treble-api-en.json POST /webhooks/on-condition","href":"/en/api-reference/webhooks/conversation-editor/condition-node-api"},{"title":"Timeout Webhook Request Body (Alternate Flow)","openapi":"open-api-files/treble-api-en.json POST /webhooks/on-timeout","href":"/en/api-reference/webhooks/conversation-editor/timeout-api"},{"title":"Opt-out Webhook","href":"/en/api-reference/webhooks/conversation-editor/opt-out"},{"title":"Opt-out Webhook Request Body","openapi":"open-api-files/treble-api-en.json POST /webhooks/on-optout","href":"/en/api-reference/webhooks/conversation-editor/opt-out-api"}]},{"group":"Webhook Center","pages":[{"title":"Introduction to Webhooks","href":"/en/api-reference/webhooks/webhook-center/intro"},{"title":"HSM Template State Change Webhook","href":"/en/api-reference/webhooks/webhook-center/hsm-change-state"},{"title":"Conversation Close Webhook","href":"/en/api-reference/webhooks/webhook-center/conversation-closed"},{"title":"Deployment Failure Webhook","href":"/en/api-reference/webhooks/webhook-center/deployment-failure"},{"title":"Webhook Request Examples","openapi":"open-api-files/treble-api-en.json POST /treble-webhooks","href":"/en/api-reference/webhooks/webhook-center/api-example"}]},{"group":"API Assignment","pages":[{"title":"Agent assignment webhook","href":"/en/api-reference/webhooks/api-assignation/intro"},{"title":"Assignment webhook reference","openapi":"open-api-files/treble-api-en.json POST /webhooks/on-agent-assignation","href":"/en/api-reference/webhooks/api-assignation/reference"}]}]},{"group":"Editor","pages":[{"title":"Multimedia Variable","href":"/en/api-reference/editor/media"},{"title":"Location Variable","href":"/en/api-reference/editor/location"}]},{"group":"Guides and Tutorials","pages":[{"title":"Integrate Your Own AI in Treble","href":"/en/api-reference/guides/your-ai"}]}]}]},{"anchor":"Community","icon":"slack","href":"https://trebleai.slack.com"},{"anchor":"Blog","icon":"newspaper","href":"https://blog.treble.ai"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt/api-reference/endpoints/send-campaign"}]}]},"basePath":"","title":"Send a campaign (recommended) - Home","buildId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","deploymentId":"dpl_8LJbrAiZvr1K98WQNZXCyY5AvT34","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-i2a3QZ8E.js","utils-ChLwp8m0.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DRktVTDc.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-CA2pEs4T.js","snippetPresets-ClQ6XrKD.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-Ct_Lv36y.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-Cn2PYw9e.js","shallow-rkyymjXQ.js","getApiPlaygroundDisplay-BB9vkXtE.js","CodeSnippet-Bm5RU7m1.js","CodeSnippets-BgU9Deuz.js","Page-BUDYNlhG.js","getPastedJson-BD-6NNum.js","icon-8Z6tud2e.js","MethodPill-Tuzr4g3V.js","DuplicateIcon-0ceWFYhN.js","createIcon-FBXow_ST.js","DynamicMarkdown-CD8713Yy.js","SectionHeading-7zgzQbH-.js","axios-vUo_bRtp.js","Markdown-D7Ofw1oz.js","clsx-eKJ4rcii.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CwjSCXIK.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-9EK5IAXV.js"]}