This endpoint allows you to send a message to initiate a conversation with a contact. It supports both WhatsApp and SMS platforms and automatically handles contact creation and conversation management.
Rate Limiting: You cannot send another bot-initiated message to the same phone number within 30 minutes.
The botIntegrationId in the URL path identifies which channel of which bot the message is sent through. It is not the same as the bot ID.
Identifier
What it is
Where to find it
Bot ID
Identifies the bot itself. A single bot can run on multiple channels (WhatsApp, SMS, web chat).
In the dashboard URL when you open a bot, e.g. …/bots/700/… → bot ID is 700.
Bot Integration ID
Identifies one specific channel connection of a bot (e.g. that bot’s WhatsApp integration, or its SMS integration). Each channel has its own Bot Integration ID.
In the bot’s Integrations settings, open the WhatsApp or Twilio (SMS) integration. The Bot Integration ID is displayed as a read-only field at the top of the integration details.
Because a bot can have both a WhatsApp and an SMS integration, each with its own Bot Integration ID, you use the Bot Integration ID — not the bot ID — to tell this endpoint which channel to send through.
Open your bot → Integrations → WhatsApp or Twilio, and copy the Bot Integration ID shown in the integration details.
ID of calendar integration to use for this conversation
Example:
123
Response
Message sent successfully
The response is of type integer.
Example:
201
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Setter AI Documentation","colors":{"primary":"#6f2eff","light":"#a47aff","dark":"#6f2eff"},"logo":{"light":"https://mintcdn.com/setterai/AV6yna-vayQT6nGM/logo/light.png?fit=max\u0026auto=format\u0026n=AV6yna-vayQT6nGM\u0026q=85\u0026s=60adacc7ac39caaaaef0e42dfdb9bbe7","dark":"https://mintcdn.com/setterai/AV6yna-vayQT6nGM/logo/dark.png?fit=max\u0026auto=format\u0026n=AV6yna-vayQT6nGM\u0026q=85\u0026s=845617a99f8b76264da72fb1adaaf8e6"},"favicon":"https://mintcdn.com/setterai/AV6yna-vayQT6nGM/favicon.png?fit=max\u0026auto=format\u0026n=AV6yna-vayQT6nGM\u0026q=85\u0026s=ade5932ced75bd1f14dda7d8430e2a18","navbar":{"links":[{"href":"mailto:[email protected]","label":"Support"}]},"integrations":{"plausible":{"domain":"docs.trysetter.com"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"setterai","hasAudioNarration":false,"actualSubdomain":"setterai","customDomains":["docs.trysetter.com"],"gitSource":{"type":"github","owner":"trysetter","repo":"ai-chatbot-app","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"entitlements":{},"buildId":"6adb8920e6de455b2093d969","clientVersion":"0.0.4087","searchFilterCounts":[{"language":"default","tag":"API Reference","count":8},{"language":"default","tag":"Guides","count":7},{"language":"default","tag":"Campaigns (WhatsApp)","count":3},{"language":"default","tag":"Set up SMS with Twilio","count":3},{"language":"default","tag":"Calendly Scheduling","count":2},{"language":"default","tag":"Campaigns","count":2},{"language":"default","tag":"Getting Started","count":1},{"language":"default","tag":"Meeting Reminders","count":1}]},"assistantConfig":{},"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":"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":"editor-metadata","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":[],"page":{"pagePath":"setter-ai/api-reference","slug":"/setter-ai/api-reference","pageMetadata":{"title":"Send Message","description":"Send a message to initiate a conversation with a contact","openapi":"POST /api/v1/bot-integrations/{botIntegrationId}/messages/send","href":"/setter-ai/api-reference"},"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 a message to initiate a conversation with a contact\"\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={code:`code`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,Table}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`This endpoint allows you to send a message to initiate a conversation with a contact. It supports both WhatsApp and SMS platforms and automatically handles contact creation and conversation management.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Rate Limiting`}),`: You cannot send another bot-initiated message to the same phone number within 30 minutes.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`bot-integration-id`,children:`Bot Integration ID`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`botIntegrationId`}),` in the URL path identifies `,_jsx(_components.strong,{children:`which channel of which bot`}),` the message is sent through. It is `,_jsx(_components.strong,{children:`not`}),` the same as the bot ID.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Identifier`}),_jsx(_components.th,{children:`What it is`}),_jsx(_components.th,{children:`Where to find it`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Bot ID`})}),_jsx(_components.td,{children:`Identifies the bot itself. A single bot can run on multiple channels (WhatsApp, SMS, web chat).`}),_jsxs(_components.td,{children:[`In the dashboard URL when you open a bot, e.g. `,_jsx(_components.code,{children:`…/bots/700/…`}),` → bot ID is `,_jsx(_components.code,{children:`700`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Bot Integration ID`})}),_jsx(_components.td,{children:`Identifies one specific channel connection of a bot (e.g. that bot’s WhatsApp integration, or its SMS integration). Each channel has its own Bot Integration ID.`}),_jsxs(_components.td,{children:[`In the bot’s `,_jsx(_components.strong,{children:`Integrations`}),` settings, open the `,_jsx(_components.strong,{children:`WhatsApp`}),` or `,_jsx(_components.strong,{children:`Twilio (SMS)`}),` integration. The `,_jsx(_components.strong,{children:`Bot Integration ID`}),` is displayed as a read-only field at the top of the integration details.`]})]})]})]}),`\n`,_jsx(_components.p,{children:`Because a bot can have both a WhatsApp and an SMS integration, each with its own Bot Integration ID, you use the Bot Integration ID — not the bot ID — to tell this endpoint which channel to send through.`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`Open your bot → `,_jsx(_components.strong,{children:`Integrations`}),` → `,_jsx(_components.strong,{children:`WhatsApp`}),` or `,_jsx(_components.strong,{children:`Twilio`}),`, and copy the `,_jsx(_components.strong,{children:`Bot Integration ID`}),` shown in the integration details.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`platform-support`,children:`Platform Support`}),`\n`,_jsx(Heading,{level:`3`,id:`whatsapp`,children:`WhatsApp`}),`\n`,_jsx(_components.p,{children:`For WhatsApp integrations, you’ll need to specify:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`templateName`}),` - The approved WhatsApp message template`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`language`}),` - Language code (e.g., “en_US”)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`bodyParameters`}),` - Parameters to fill template placeholders`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`sms-twilio`,children:`SMS (Twilio)`}),`\n`,_jsx(_components.p,{children:`For SMS integrations, you’ll need to specify:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`message`}),` - The text message to send`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`important-notes`,children:`Important Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Authentication`}),`: All requests require a Bearer token in the Authorization header`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Phone Format`}),`: Always use international format (e.g., 1234567890)`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Contact Management`}),`: Contacts are automatically created or updated`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Conversation Tracking`}),`: Conversations are automatically created and linked`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Calendar Integration`}),`: Optionally link conversations to specific calendar integrations`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`getting-your-api-key`,children:`Getting Your API Key`}),`\n`,_jsxs(_components.p,{children:[`API keys can be generated from your Setter AI dashboard under `,_jsx(_components.strong,{children:`Settings > API Keys`}),`. Keep your API key secure and never expose it in client-side code.`]})]})}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 Message","description":"Send a message to initiate a conversation with a contact","openapi":"POST /api/v1/bot-integrations/{botIntegrationId}/messages/send","href":"/setter-ai/api-reference"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Bot Integration ID","slug":"bot-integration-id","depth":2,"children":[]},{"title":"Platform Support","slug":"platform-support","depth":2,"children":[{"title":"WhatsApp","slug":"whatsapp","depth":3,"children":[]},{"title":"SMS (Twilio)","slug":"sms-twilio","depth":3,"children":[]}]},{"title":"Important Notes","slug":"important-notes","depth":2,"children":[]},{"title":"Getting Your API Key","slug":"getting-your-api-key","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Send Message","description":"Send a message to initiate a conversation with a contact","operationId":"sendMessage","tags":["Messages"],"parameters":["e8fee645-e34c-4ca2-adcf-909556fd6744"],"requestBody":"b42a03b7-7887-4306-b233-72d05e2f8c34","responses":{"201":"2da504de-5159-4b38-ac8c-bc04c139b3fa","400":"320becbe-e692-4361-a0be-6082e812ff85","401":"3a229d0c-9944-4d66-b4ad-0837ccec04b4","403":"ba932490-ff4a-44cd-99a9-f0546992553a","429":"a04f7c4a-edb7-491c-a977-7df50dab8bfe","500":"7437a663-58c0-4cb5-80f9-6dffe4e204ec"},"method":"post","type":"path","servers":["2d03048b-47b7-448b-8503-4011f80932ab"],"security":["b8057cbe-359e-4550-af0a-b53da9fd22f9"],"path":"/api/v1/bot-integrations/{botIntegrationId}/messages/send","baseUrlOptions":["https://chat.trysetter.com"],"title":"Send Message","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"e8fee645-e34c-4ca2-adcf-909556fd6744":{"name":"botIntegrationId","in":"path","required":true,"schema":{"type":"integer","isRequired":true,"description":"The ID of your bot integration","uniqueKey":"","typeLabel":"integer"},"description":"The ID of your bot integration","example":123}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"Contact's phone number in international format","example":"1234567890","isRequired":true,"uniqueKey":"phoneNumber","typeLabel":"string"},"templateName":{"type":"string","description":"Name of the WhatsApp message template (WhatsApp only)","example":"hello_world","uniqueKey":"templateName","typeLabel":"string"},"language":{"type":"string","description":"Language code for the template (WhatsApp only)","example":"en_US","uniqueKey":"language","typeLabel":"string"},"bodyParameters":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["text"],"description":"Type of parameter","isRequired":true,"uniqueKey":"bodyParameters.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Text content for the parameter","isRequired":true,"uniqueKey":"bodyParameters.items.[INDEX].text","typeLabel":"string"},"parameter_name":{"type":"string","description":"Optional parameter name for template placeholder","uniqueKey":"bodyParameters.items.[INDEX].parameter_name","typeLabel":"string"}},"required":["type","text"],"uniqueKey":"bodyParameters.items.[INDEX]","typeLabel":"object"},"description":"Parameters to fill template placeholders (WhatsApp only)","uniqueKey":"bodyParameters","typeLabel":"object[]"},"message":{"type":"string","description":"The message text to send (SMS/Twilio only)","example":"Hello! I'm here to help you schedule an appointment.","uniqueKey":"message","typeLabel":"string"},"email":{"type":"string","format":"email","description":"Contact's email address","example":"[email protected]","uniqueKey":"email","typeLabel":"string\u003cemail>"},"firstName":{"type":"string","description":"Contact's first name","example":"John","uniqueKey":"firstName","typeLabel":"string"},"lastName":{"type":"string","description":"Contact's last name","example":"Doe","uniqueKey":"lastName","typeLabel":"string"},"fullName":{"type":"string","description":"Contact's full name","example":"John Doe","uniqueKey":"fullName","typeLabel":"string"},"timeZone":{"type":"string","description":"Contact's timezone","example":"America/New_York","uniqueKey":"timeZone","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":{"type":"string","uniqueKey":"metadata.additionalProperties","typeLabel":"string"},"description":"Custom key-value pairs to store with the contact","example":{"source":"website","campaign":"summer2024"},"uniqueKey":"metadata","typeLabel":"object"},"calendarIntegrationId":{"type":"integer","description":"ID of calendar integration to use for this conversation","example":123,"uniqueKey":"calendarIntegrationId","typeLabel":"integer"}},"required":["phoneNumber"],"uniqueKey":"","typeLabel":"object"},"examples":{"whatsapp":{"title":"whatsapp","value":{"phoneNumber":"1234567890","templateName":"appointment_booking","language":"en_US","bodyParameters":[{"type":"text","text":"John","parameter_name":"customer_name"}],"email":"[email protected]","firstName":"John","lastName":"Doe","timeZone":"America/New_York"}},"sms":{"title":"sms","value":{"phoneNumber":"1234567890","message":"Hi! I'm your AI assistant. How can I help you schedule an appointment today?","email":"[email protected]","firstName":"Jane","lastName":"Smith","timeZone":"America/Los_Angeles","metadata":{"source":"website_form","page":"/contact"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"2da504de-5159-4b38-ac8c-bc04c139b3fa":{"description":"Message sent successfully","content":{"application/json":{"schema":{"type":"integer","example":201,"uniqueKey":"","typeLabel":"integer"},"examples":{"Example":{"title":"Example","value":201}},"exampleType":"generated"}},"exampleType":"generated"},"320becbe-e692-4361-a0be-6082e812ff85":{"description":"Bad Request","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error message","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"missing_phone":{"title":"missing_phone","value":{"message":"Missing phone number"}},"missing_message":{"title":"missing_message","value":{"message":"Bad Request - message is required"}}},"exampleType":"examples"}},"exampleType":"examples"},"3a229d0c-9944-4d66-b4ad-0837ccec04b4":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error message","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Unauthorized"},"examples":{"Example":{"title":"Example","value":{"message":"Unauthorized"}}},"exampleType":"examples"}},"exampleType":"examples"},"ba932490-ff4a-44cd-99a9-f0546992553a":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error message","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Forbidden"},"examples":{"Example":{"title":"Example","value":{"message":"Forbidden"}}},"exampleType":"examples"}},"exampleType":"examples"},"a04f7c4a-edb7-491c-a977-7df50dab8bfe":{"description":"Rate limit exceeded","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"Error message","uniqueKey":"message","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"message":"Error: Bot initiated message was already sent in the last 30 minutes"},"examples":{"Example":{"title":"Example","value":{"message":"Error: Bot initiated message was already sent in the last 30 minutes"}}},"exampleType":"examples"}},"exampleType":"examples"},"7437a663-58c0-4cb5-80f9-6dffe4e204ec":{"description":"Internal Server Error","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"},"error":{"type":"string","example":"Internal server error occurred","uniqueKey":"error","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"success":false,"error":"Internal server error occurred"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"b8057cbe-359e-4550-af0a-b53da9fd22f9":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Bearer token authentication using your API key","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"2d03048b-47b7-448b-8503-4011f80932ab":{"url":"https://chat.trysetter.com","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"Bearer token authentication using your API key","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer token authentication using your API key","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"setterai","siteName":"Setter AI Documentation","title":"Send Message - Setter AI Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-05-29T09:13:36.868Z","originalFileLocation":"setter-ai/api-reference.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Send a message to initiate a conversation with a contact\">\u003cmeta data-mint-head name=\"application-name\" content=\"Setter AI Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/setterai/0sFTN1yBzEXgSiM4/_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/setterai/0sFTN1yBzEXgSiM4/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/setterai/0sFTN1yBzEXgSiM4/_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/setterai/0sFTN1yBzEXgSiM4/_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/setterai/0sFTN1yBzEXgSiM4/_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/setterai/0sFTN1yBzEXgSiM4/_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/setterai/0sFTN1yBzEXgSiM4/_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/setterai/0sFTN1yBzEXgSiM4/_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/setterai/0sFTN1yBzEXgSiM4/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send Message - Setter AI Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send a message to initiate a conversation with a contact\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Setter AI Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.trysetter.com/setter-ai/api-reference\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://setterai.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Send+Message\u0026amp;description=Send+a+message+to+initiate+a+conversation+with+a+contact\u0026amp;theme=4c15eb72fe2291ade3053db9\u0026amp;signature=5a6cb787a87de53b79aea289afdbdd9c92ddb0097d440a94e597b1cb4ae7b6bb\">\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 Message - Setter AI Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send a message to initiate a conversation with a contact\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://setterai.mintlify.site/_mintlify/api/og/v2?division=API+Reference\u0026amp;title=Send+Message\u0026amp;description=Send+a+message+to+initiate+a+conversation+with+a+contact\u0026amp;theme=4c15eb72fe2291ade3053db9\u0026amp;signature=5a6cb787a87de53b79aea289afdbdd9c92ddb0097d440a94e597b1cb4ae7b6bb\">\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/setterai/0sFTN1yBzEXgSiM4/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Setter AI Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6f2eff\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.trysetter.com/setter-ai/api-reference\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/setter-ai/api-reference.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.trysetter.com/#organization\",\"name\":\"Setter AI Documentation\",\"url\":\"https://docs.trysetter.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/setterai/AV6yna-vayQT6nGM/logo/light.png?fit=max\u0026auto=format\u0026n=AV6yna-vayQT6nGM\u0026q=85\u0026s=60adacc7ac39caaaaef0e42dfdb9bbe7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.trysetter.com#website\",\"name\":\"Setter AI Documentation\",\"url\":\"https://docs.trysetter.com\",\"publisher\":{\"@id\":\"https://docs.trysetter.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.trysetter.com/setter-ai/api-reference#webpage\",\"url\":\"https://docs.trysetter.com/setter-ai/api-reference\",\"name\":\"Send Message\",\"description\":\"Send a message to initiate a conversation with a contact\",\"dateModified\":\"2026-05-29T09:13:36.868Z\",\"isPartOf\":{\"@id\":\"https://docs.trysetter.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.trysetter.com/setter-ai/api-reference#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.trysetter.com/setter-ai/api-reference#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Setter AI Documentation\",\"item\":\"https://docs.trysetter.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send Message\",\"item\":\"https://docs.trysetter.com/setter-ai/api-reference\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.trysetter.com/setter-ai/api-reference#apireference\",\"headline\":\"Send Message\",\"name\":\"Send Message\",\"description\":\"Send a message to initiate a conversation with a contact\",\"url\":\"https://docs.trysetter.com/setter-ai/api-reference\",\"mainEntityOfPage\":{\"@id\":\"https://docs.trysetter.com/setter-ai/api-reference#webpage\"},\"dateModified\":\"2026-05-29T09:13:36.868Z\",\"publisher\":{\"@id\":\"https://docs.trysetter.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.trysetter.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Setter AI Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Setter AI Documentation","nav":{"global":null,"groups":[{"group":"Getting Started","pages":[{"title":"Introduction","href":"/index"}]},{"group":"Guides","icon":"book-open","pages":[{"group":"Set up SMS with Twilio","pages":[{"title":"SMS Integration Overview","href":"/sms-integration/introduction"},{"title":"Twilio SMS Setup","href":"/sms-integration/twilio-setup"},{"title":"A2P 10DLC Registration Guide","href":"/sms-integration/a2p-registration"}]},{"group":"Meeting Reminders","pages":[{"title":"WhatsApp Meeting Reminders Setup","href":"/whatsapp-reminders/setup"}]},{"group":"Campaigns (WhatsApp)","pages":[{"title":"Campaigns","href":"/campaigns/overview"},{"title":"Audience Filtering","href":"/campaigns/audience-filtering"},{"title":"Lead Events","description":"Stream per-phone events into Setter so future sends can include or exclude leads based on what they did","href":"/campaigns/lead-events"}]}]},{"group":"API Reference","icon":"code","pages":[{"title":"Send Message","openapi":"POST /api/v1/bot-integrations/{botIntegrationId}/messages/send","href":"/setter-ai/api-reference"},{"title":"Get Conversation History","description":"Retrieve the full message history of a conversation programmatically","openapi":"GET /api/v1/bot-integrations/{botIntegrationId}/conversations","href":"/setter-ai/conversation-history"},{"title":"Update Contact","openapi":"PUT /api/v1/contacts","href":"/setter-ai/update-contact"},{"title":"Create Booking","openapi":"POST /api/v1/bookings","href":"/setter-ai/bookings"},{"title":"Cancel Booking","openapi":"POST /api/v1/bookings/{id}/cancel","href":"/setter-ai/cancel-booking"},{"title":"Webhooks","href":"/setter-ai/webhooks"},{"group":"Campaigns","pages":[{"title":"Filter Send Audience","openapi":"POST /api/v1/webhooks/campaigns/audience-filter","href":"/campaigns/filter-audience"},{"title":"Send Lead Event","openapi":"POST /api/v1/webhooks/lead-events","href":"/campaigns/send-lead-event"}]}]},{"group":"Calendly Scheduling","icon":"calendar","pages":[{"title":"Introduction","href":"/calendly-scheduling/introduction"},{"title":"Create Event","openapi":"POST /api/scheduled_events","href":"/calendly-scheduling/api-reference/create-event/post"}]}]},"basePath":"","title":"Send Message - Setter AI Documentation","buildId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","deploymentId":"dpl_FWZhTb2vab28gFGFH4ojka6qEznQ","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CBsVopKK.js","utils-DZAk68jJ.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-D32AYZrP.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-D_A5_cny.js","snippetPresets-xNRfS9th.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BIB25-tq.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CydJ4w4j.js","shallow-CYPBeQSG.js","getApiPlaygroundDisplay-A5xJVBOu.js","CodeSnippet-BVRTgi3m.js","CodeSnippets-DjD6BSlt.js","Page-Dr40SSJq.js","getPastedJson-D4V4JyrR.js","icon-uhcnG22T.js","MethodPill-CM-ZQdGH.js","DuplicateIcon-B_WnOiNf.js","createIcon-CJsb8utt.js","DynamicMarkdown-D-2HDKEp.js","SectionHeading-KP5xmMgQ.js","axios-vUo_bRtp.js","Markdown-D_k0dg6k.js","clsx-DK3K4Z1S.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DE3EVdvd.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-fN9H9n9g.js"]}