{
"error": "media[1]: File caption is unsupported for document media type!",
"success": false
}
{
"error": "Chat not found",
"success": false
}
Messages
Send a Message to Chat
Send a session message to an existing chat. Messages can include text, media (image, video, document, audio), interactive buttons, list menus, contact cards and locations.
{
"error": "media[1]: File caption is unsupported for document media type!",
"success": false
}
{
"error": "Chat not found",
"success": false
}
Required token scopes:Send session message⚠ Important: session messages are subject to WhatsApp’s 24-hour window. If the contact has not sent a message in the last 24 hours, WhatsApp blocks session messages and the request fails. In that case, you can only send a Template Message.Session messages can only be sent to existing chats - sending to a chat that doesn’t exist returns an error.Don’t have a chatId? Use Send a Message by Recipient to address the recipient by channel + account + phone number directly.All status values, type enums and the ID cheat sheet: Enums & Common Fields.
הרשאות
Authorization
string
header
נדרש
API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.
פרמטרי נתיב
chatId
string
נדרש
The unique identifier of the chat. You can obtain this value by using the Search Chats endpoint with the contact's phone number. Must be a 24-character hex string (MongoDB ObjectId)
Pattern: ^[a-f0-9]{24}$
גוף
application/json
The message contents. type selects the message structure; each type has its own required fields. All types also accept the generic context and tmpSendId options
type
enum<string>
נדרש
Defines the message structure and required fields
אפשרויות זמינות:
text,
media,
buttons,
list,
contacts,
location,
special
context
string
Reply to a specific message. Use the provider message ID (e.g. wamid...) from message.channelInfo.id
tmpSendId
string
A custom client-side ID for tracking the message
text
string
The message text. Required for text, buttons and list. For text messages: up to 4096 characters; for buttons messages the WhatsApp limit drops to 640 characters
Minimum string length: 1
media
object[]
Array of media items. Required for media. Each item needs mediaType plus either a public url (Texter downloads and stores the file) or a fileId of a file already stored in Texter. WhatsApp media limits enforced by the API: image image/jpeg/image/png up to 5 MB; video video/mp4/video/3gp up to 16 MB; audio audio/aac/audio/mp4/audio/mpeg/audio/amr/audio/ogg up to 16 MB; document any MIME type up to 100 MB; sticker image/webp up to 100 KB. Violations return 400
Required array length: 1 - 10 elements
Show child attributes
buttons
object[]
Reply buttons. Required for buttons. Max 3 buttons (WhatsApp limit)
Required array length: 1 - 3 elements
Show child attributes
list
object
List menu configuration. Required for list. WhatsApp limits enforced by the API: max 10 sections, max 10 rows per section, max 10 rows total across all sections
Show child attributes
contacts
object[]
Contact cards to share. Required for contacts
Minimum array length: 1
Show child attributes
location
object
Location to share. Required for location
Show child attributes
special
object
Channel-specific special message payload. Required for special. The object shape is defined by the channel provider and validated by the channel adapter - unsupported payloads return 400. May be combined with text
metadata
object
Optional free-form object stored on the message record (returned on the message as metadata). Not shown to the recipient
תגובה
A confirmation object containing the sent message(s). Field-by-field reference: The Message object
success
boolean
דוגמה:
true
messages
object[]
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Texterchat","colors":{"primary":"#5B5FCF","light":"#7B7FE0","dark":"#7B7FE0"},"logo":"https://mintcdn.com/texter/u1h4IZ0dqx4BZ6zi/assets/favicon.svg?fit=max\u0026auto=format\u0026n=u1h4IZ0dqx4BZ6zi\u0026q=85\u0026s=5fbab3f5dc54b8e49a9f2e9f64e307b5","favicon":"https://mintcdn.com/texter/u1h4IZ0dqx4BZ6zi/assets/favicon.svg?fit=max\u0026auto=format\u0026n=u1h4IZ0dqx4BZ6zi\u0026q=85\u0026s=5fbab3f5dc54b8e49a9f2e9f64e307b5","api":{"params":{"expanded":"closed"},"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["bash","javascript","python"],"prefill":true},"url":"full"},"appearance":{"default":"light","strict":true},"footer":{"socials":{"facebook":"https://www.facebook.com/texterchat","website":"https://texterchat.com","instagram":"https://www.instagram.com/texterchatil","linkedin":"https://www.linkedin.com/company/whatsper"}},"search":{"prompt":"Search the Texter docs \u0026 API..."},"fonts":{"family":"Heebo"},"icons":{"library":"lucide"},"contextual":{"options":["copy","view","chatgpt","claude","mcp","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"he","default":true,"navbar":{"links":[],"primary":{"type":"button","label":"תמיכה","href":"https://wa.me/972586640430"}},"href":"guides/welcome"},{"language":"en","navbar":{"links":[],"primary":{"type":"button","label":"Support","href":"https://wa.me/972586640430"}},"href":"en/guides/welcome"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"texter","hasAudioNarration":false,"actualSubdomain":"texter","customDomains":["help.texterchat.com"],"gitSource":{"type":"github","owner":"whatsper","repo":"helpcenter","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af49dae5854fd9188272437","clientVersion":"0.0.4131","searchFilterCounts":[{"language":"en","tag":"API Reference","count":90},{"language":"he","tag":"API Reference","count":90},{"language":"en","tag":"Endpoints","count":57},{"language":"he","tag":"Endpoints","count":57},{"language":"en","tag":"Webhooks","count":21},{"language":"he","tag":"Webhooks","count":21},{"language":"en","tag":"Scenarios (Advanced)","count":13},{"language":"he","tag":"Scenarios (Advanced)","count":13},{"language":"en","tag":"Chat Events","count":11},{"language":"he","tag":"Chat Events","count":11},{"language":"en","tag":"Objects","count":9},{"language":"he","tag":"מדריכים","count":9},{"language":"he","tag":"Objects","count":9},{"language":"en","tag":"Guides","count":8},{"language":"en","tag":"Chats","count":7},{"language":"en","tag":"Manage Templates","count":7},{"language":"en","tag":"Message Events","count":7},{"language":"he","tag":"Chats","count":7},{"language":"he","tag":"Manage Templates","count":7},{"language":"he","tag":"Message Events","count":7}]},"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":"custom-rbac-roles","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":"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":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"html #topbar-cta-button a>span:first-child{background-color:#22c55e!important}html #topbar-cta-button a:hover>span:first-child{background-color:#16a34a!important;opacity:1!important}html #topbar-cta-button a>div{color:#052e16;column-gap:0!important;gap:0!important;margin-left:0!important;margin-right:0!important}html #topbar-cta-button{margin-right:-1rem!important}html #topbar-cta-button a{padding-left:1rem!important;padding-right:1rem!important}html #topbar-cta-button a>div>:not([hidden]){margin-left:0!important;margin-right:0!important}html #topbar-cta-button a>div span{color:#052e16!important}html #topbar-cta-button a>div svg{color:#052e16!important}html #topbar-cta-button a>div>svg{display:none!important}html #topbar-cta-button a:hover>div,html #topbar-cta-button a:hover>div span,html #topbar-cta-button a:hover>div svg{color:#031f0f!important}html #topbar-cta-button a>div::before{background-color:currentColor;content:\"\";display:inline-block;height:1rem;margin-right:0.5rem;mask-image:url(\"/assets/whatsapp.svg\");mask-position:center;mask-repeat:no-repeat;mask-size:contain;-webkit-mask-image:url(\"/assets/whatsapp.svg\");-webkit-mask-position:center;-webkit-mask-repeat:no-repeat;-webkit-mask-size:contain;position:relative;transform:translateX(-1px);width:1rem;z-index:10}html #topbar-cta-button a>div::after{content:\"\\203A\";display:inline-block;font-size:1rem;font-weight:600;line-height:1;margin-left:1rem;transform:translate(-3px, -1px);z-index:10}html #topbar-cta-button,html #topbar-cta-button a,html #topbar-cta-button a>div{direction:ltr!important;text-align:left!important;unicode-bidi:isolate}@media (min-width: 64rem){html #localization-select-trigger>svg{height:1.5rem!important;overflow:visible!important;width:0.5rem!important}html #localization-select-trigger>svg path{stroke-width:1.5!important}html #localization-select-trigger>svg[viewBox=\"0 0 18 18\"] path{stroke-width:3.375!important}}html #mobile-nav button[aria-haspopup=\"menu\"]>svg{height:1.5rem!important;overflow:visible!important;width:0.5rem!important}html #mobile-nav button[aria-haspopup=\"menu\"]>svg path{stroke-width:1.5!important}html #mobile-nav button[aria-haspopup=\"menu\"]>svg[viewBox=\"0 0 18 18\"] path{stroke-width:3.375!important}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #page-context-menu{direction:ltr;margin-left:0!important;margin-right:auto!important}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #page-context-menu-button{direction:rtl;unicode-bidi:isolate}html #page-title{font-size:1.5rem!important;font-weight:700!important;line-height:2rem!important}@media (min-width: 40rem){html #page-title{font-size:1.875rem!important;line-height:2.25rem!important}}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) :where(#header,#page-title,#content){direction:rtl;text-align:right}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) :where(#sidebar,aside,nav,[class*=\"sidebar\"i],[class*=\"navigation\"i]){direction:rtl;text-align:right}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) :where(#sidebar,aside,nav,[class*=\"sidebar\"i],[class*=\"navigation\"i]) :where(a,button,[role=\"link\"],[role=\"button\"]){direction:rtl;text-align:right;unicode-bidi:plaintext}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) :where(#header,#content) :where(h1,h2,h3,h4,h5,h6,p,blockquote,callout,table,th,td,field,prompt,api-section-heading,api-section-heading-title,api-section-heading-subtitle){direction:rtl;text-align:right;unicode-bidi:plaintext}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content :where(ul,ol){list-style:none!important;direction:rtl;margin-inline:0;padding-inline:0}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content li{direction:rtl;list-style:none!important;padding-left:0!important;padding-right:1.5rem!important;position:relative;text-align:right}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content li::marker{content:\"\"!important;font-size:0!important}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content ol{counter-reset:texter-rtl-list}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content ul>li::before{content:\"•\";left:auto;position:absolute;right:0}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content ol>li::before{content:counter(texter-rtl-list) \".\";counter-increment:texter-rtl-list;direction:ltr;left:auto;position:absolute;right:0}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content li :where(p,span,strong,a){direction:rtl;text-align:right;unicode-bidi:plaintext}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content blockquote{border-inline-end-width:0!important;border-inline-start-width:0.25rem!important;border-left-width:0!important;border-right-width:0.25rem!important;padding-inline-end:0!important;padding-inline-start:1rem!important;padding-left:0!important;padding-right:1rem!important}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content .callout,html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content .callout :where(div,span,p,ul,ol,li){direction:rtl!important;text-align:right!important}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content :where(kbd,code,pre,code-block,code-group,.code-block,[class*=\"code\"],[class*=\"Code\"],#request-example,#response-example,#api-playground-input,method-pill,method-nav-pill){direction:ltr;text-align:left;unicode-bidi:isolate}html:where(.texter-rtl,[data-current-path=\"/\"],[data-current-path=\"/guides\"],[data-current-path^=\"/guides/\"]) #content :where(input,textarea,iframe,img,video,svg){direction:ltr}"}],"page":{"pagePath":"he/api-reference/messages/send-a-message-to-chat","slug":"/he/api-reference/messages/send-a-message-to-chat","pageMetadata":{"title":"Send a Message to Chat","description":"Send a session message to an existing chat. Messages can include text, media (image, video, document, audio), interactive buttons, list menus, contact cards and locations.","openapi":"he/api-reference/openapi.json POST /messages/send/{chatId}","href":"/he/api-reference/messages/send-a-message-to-chat"},"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 session message to an existing chat. Messages can include text, media (image, video, document, audio), interactive buttons, list menus, contact cards and locations.\"\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`,strong:`strong`,..._provideComponents(),...props.components};return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Required token scopes:`}),` `,_jsx(_components.code,{children:`Send session message`})]}),`\n`,_jsxs(_components.p,{children:[`⚠ `,_jsx(_components.strong,{children:`Important:`}),` session messages are subject to WhatsApp’s 24-hour window. If the contact has not sent a message in the last 24 hours, WhatsApp blocks session messages and the request fails. In that case, you can only send a `,_jsx(_components.strong,{children:`Template Message`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`Session messages can only be sent to `,_jsx(_components.strong,{children:`existing`}),` chats - sending to a chat that doesn’t exist returns an error.`]}),`\n`,_jsxs(_components.p,{children:[`Don’t have a `,_jsx(_components.code,{children:`chatId`}),`? Use `,_jsx(_components.a,{href:`/he/api-reference/messages/send-a-message-by-recipient`,children:`Send a Message by Recipient`}),` to address the recipient by channel + account + phone number directly.`]}),`\n`,_jsxs(_components.p,{children:[`All status values, type enums and the ID cheat sheet: `,_jsx(_components.a,{href:`/he/api-reference/enums`,children:`Enums \u0026 Common Fields`}),`.`]})]})}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":{"config":{},"pageMetadata":{"title":"Send a Message to Chat","description":"Send a session message to an existing chat. Messages can include text, media (image, video, document, audio), interactive buttons, list menus, contact cards and locations.","openapi":"he/api-reference/openapi.json POST /messages/send/{chatId}","href":"/he/api-reference/messages/send-a-message-to-chat"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/texter/04420e0baa494887/rtl.js"],"openApiReferenceData":{"operation":{"operationId":"send-message","tags":["Messages"],"summary":"Send a Message to Chat","description":"Send a session message to an existing chat. Messages can include text, media (image, video, document, audio), interactive buttons, list menus, contact cards and locations.","parameters":["6240fdbb-0b19-45ef-bd12-f0aa0ee072e7"],"requestBody":"11f00841-2bbb-47c5-89a5-14c5d0f62725","responses":{"200":"114d2846-24e8-494a-a82d-a87245337b36","400":"f29c9634-3632-4451-bd1f-e4d52c118584","401":"5dd20395-b8c0-4755-bcd7-662be30976c5","404":"baa14c9d-8e2b-4d0f-bf7a-a9a113c49db4"},"method":"post","type":"path","servers":["13ca4397-67e2-4223-8a1c-2caa6eba4b84"],"security":["749746d5-8688-4afd-9732-71c96019706f"],"path":"/messages/send/{chatId}","baseUrlOptions":["https://{projectID}.texterchat.com/server/api/v2"],"title":"Send a Message to Chat","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.type":"text","body.text":"Hey there!"},{"body.type":"text","body.tmpSendId":"crm-evt-545134","body.text":"Your order is on its way!"},{"body.type":"text","body.context":"wamid.HBgMOTcyNTI3NzYwOTg5FQIAERgSQUY1NTUzQ0RFNzFGNTBEOTc1AA==","body.text":"איך אפשר לעזור?"},{"body.type":"media","body.media.items.0.mediaType":"document","body.media.items.0.url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","body.media.items.0.filename":"Dummy PDF"},{"body.type":"media","body.media.items.0.mediaType":"image","body.media.items.0.url":"https://picsum.photos/536/354","body.media.items.0.caption":"image caption","body.media.items.1.mediaType":"video","body.media.items.1.url":"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerFun.mp4"},{"body.type":"media","body.media.items.0.mediaType":"image","body.media.items.0.fileId":"6900c1eac29d42708adac92f"},{"body.type":"buttons","body.text":"Please select one of the options below","body.buttons.items.0.title":"option 1","body.buttons.items.0.payload":"option_1","body.buttons.items.1.title":"option 2","body.buttons.items.1.payload":"option_2","body.buttons.items.2.title":"option 3","body.buttons.items.2.payload":"option_3"},{"body.type":"list","body.text":"Which representative would you like to be forwarded to?","body.list.button":"All Agents","body.list.sections.items.0.title":"Will be omitted","body.list.sections.items.0.rows.items.0.title":"Ziv","body.list.sections.items.0.rows.items.0.payload":"ziv@texter.com","body.list.sections.items.0.rows.items.0.description":"AI Engineer","body.list.sections.items.0.rows.items.1.title":"Paz","body.list.sections.items.0.rows.items.1.payload":"paz@texter.com","body.list.sections.items.0.rows.items.1.description":"Product Manager","body.list.sections.items.0.rows.items.2.title":"Noam","body.list.sections.items.0.rows.items.2.payload":"noam@texter.com"},{"body.type":"list","body.text":"Welcome to support! How can we assist you today?","body.list.button":"View Menu","body.list.sections.items.0.title":"Order Issues","body.list.sections.items.0.rows.items.0.title":"Track my order","body.list.sections.items.0.rows.items.0.payload":"action_track_order","body.list.sections.items.0.rows.items.0.description":"Check delivery status for recent items","body.list.sections.items.0.rows.items.1.title":"Report missing item","body.list.sections.items.0.rows.items.1.payload":"action_missing_item","body.list.sections.items.0.rows.items.1.description":"Start a claim for incomplete delivery","body.list.sections.items.1.title":"Account Services","body.list.sections.items.1.rows.items.0.title":"Reset Password","body.list.sections.items.1.rows.items.0.payload":"action_reset_pw","body.list.sections.items.1.rows.items.1.title":"Chat with Agent","body.list.sections.items.1.rows.items.1.payload":"action_human_handoff","body.list.sections.items.1.rows.items.1.description":"Wait time: ~2 mins"},{"body.type":"contacts","body.contacts.items.0.name.formatted_name":"John Doe","body.contacts.items.0.name.first_name":"John","body.contacts.items.0.name.last_name":"Doe","body.contacts.items.0.phones.items.0.phone":"+972521234567","body.contacts.items.0.phones.items.0.type":"MOBILE","body.contacts.items.0.emails.items.0.email":"john@example.com","body.contacts.items.0.emails.items.0.type":"WORK","body.contacts.items.0.org.company":"Texter","body.contacts.items.0.org.title":"Account Manager"},{"body.type":"location","body.location.latitude":32.0701,"body.location.longitude":34.7935,"body.location.name":"Head Office","body.location.address":"Tel Aviv, Israel","body.location.url":"https://maps.app.goo.gl/example"}],"urlDisplay":"full"},"dependencies":{"parameters":{"6240fdbb-0b19-45ef-bd12-f0aa0ee072e7":{"name":"chatId","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{24}$","isRequired":true,"description":"The unique identifier of the chat. You can obtain this value by using the Search Chats endpoint with the contact's phone number. Must be a 24-character hex string (MongoDB ObjectId)","uniqueKey":"","typeLabel":"string"},"description":"The unique identifier of the chat. You can obtain this value by using the Search Chats endpoint with the contact's phone number. Must be a 24-character hex string (MongoDB ObjectId)","example":"67a87067aeed4dee1271cb4d"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"The message contents. `type` selects the message structure; each type has its own required fields. All types also accept the generic `context` and `tmpSendId` options","properties":{"type":{"type":"string","enum":["text","media","buttons","list","contacts","location","special"],"description":"Defines the message structure and required fields","isRequired":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"context":{"type":"string","description":"Reply to a specific message. Use the **provider message ID** (e.g. `wamid...`) from `message.channelInfo.id`","uniqueKey":"context","typeLabel":"string"},"tmpSendId":{"type":"string","description":"A custom client-side ID for tracking the message","uniqueKey":"tmpSendId","typeLabel":"string"},"text":{"type":"string","minLength":1,"description":"The message text. Required for `text`, `buttons` and `list`. For `text` messages: up to 4096 characters; for `buttons` messages the WhatsApp limit drops to 640 characters","uniqueKey":"text","typeLabel":"string"},"media":{"type":"array","minItems":1,"maxItems":10,"description":"Array of media items. Required for `media`. Each item needs `mediaType` plus either a public `url` (Texter downloads and stores the file) or a `fileId` of a file already stored in Texter. WhatsApp media limits enforced by the API: image `image/jpeg`/`image/png` up to 5 MB; video `video/mp4`/`video/3gp` up to 16 MB; audio `audio/aac`/`audio/mp4`/`audio/mpeg`/`audio/amr`/`audio/ogg` up to 16 MB; document any MIME type up to 100 MB; sticker `image/webp` up to 100 KB. Violations return 400","items":{"type":"object","properties":{"mediaType":{"type":"string","enum":["image","video","document","audio","sticker"],"description":"Media category. `sticker` is supported for sending on WhatsApp: a `image/webp` file up to 100 KB, no caption","isRequired":true,"uniqueKey":"media.items.[INDEX].mediaType","typeLabel":"enum\u003cstring>"},"url":{"type":"string","description":"Publicly accessible URL of the media file","uniqueKey":"media.items.[INDEX].url","typeLabel":"string"},"fileId":{"type":"string","description":"ID of a file already stored in Texter (alternative to `url`)","uniqueKey":"media.items.[INDEX].fileId","typeLabel":"string"},"caption":{"type":"string","description":"Caption text. Only for `image` and `video` (WhatsApp: max 1024 characters; captions on other media types return 400)","uniqueKey":"media.items.[INDEX].caption","typeLabel":"string"},"filename":{"type":"string","description":"The document's display filename. Meaningful only for `document` media (other types ignore it - a WhatsApp platform convention, not validated by the API)","uniqueKey":"media.items.[INDEX].filename","typeLabel":"string"}},"required":["mediaType"],"uniqueKey":"media.items.[INDEX]","typeLabel":"object"},"uniqueKey":"media","typeLabel":"object[]"},"buttons":{"type":"array","minItems":1,"maxItems":3,"description":"Reply buttons. Required for `buttons`. Max 3 buttons (WhatsApp limit)","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"description":"The text displayed on the button. Max 20 characters","isRequired":true,"uniqueKey":"buttons.items.[INDEX].title","typeLabel":"string"},"payload":{"type":"string","minLength":1,"description":"ID delivered back in the postback when clicked. Max 1000 characters, must be unique across all buttons in the message (WhatsApp)","isRequired":true,"uniqueKey":"buttons.items.[INDEX].payload","typeLabel":"string"}},"required":["title","payload"],"uniqueKey":"buttons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"buttons","typeLabel":"object[]"},"list":{"type":"object","description":"List menu configuration. Required for `list`. WhatsApp limits enforced by the API: max 10 sections, max 10 rows per section, max 10 rows total across all sections","properties":{"button":{"type":"string","minLength":1,"description":"Title of the button that opens the list view. Max 20 characters (a WhatsApp platform limit, not validated by the API)","isRequired":true,"uniqueKey":"list.button","typeLabel":"string"},"sections":{"type":"array","minItems":1,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"description":"Section header title (required; not shown to the recipient when there is only one section). The API accepts up to 80 characters; WhatsApp recommends max 24","isRequired":true,"uniqueKey":"list.sections.items.[INDEX].title","typeLabel":"string"},"rows":{"type":"array","minItems":1,"items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"description":"The main text of the row option. Max 20 characters","isRequired":true,"uniqueKey":"list.sections.items.[INDEX].rows.items.[INDEX].title","typeLabel":"string"},"payload":{"type":"string","minLength":1,"description":"Unique ID delivered back in the postback. Must be unique across all rows in all sections (WhatsApp; violations return 400)","isRequired":true,"uniqueKey":"list.sections.items.[INDEX].rows.items.[INDEX].payload","typeLabel":"string"},"description":{"type":"string","description":"Optional context text displayed below the row title. Max 72 characters (a WhatsApp platform limit, not validated by the API)","uniqueKey":"list.sections.items.[INDEX].rows.items.[INDEX].description","typeLabel":"string"}},"required":["title","payload"],"uniqueKey":"list.sections.items.[INDEX].rows.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"list.sections.items.[INDEX].rows","typeLabel":"object[]"}},"required":["title","rows"],"uniqueKey":"list.sections.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"list.sections","typeLabel":"object[]"}},"required":["button","sections"],"uniqueKey":"list","typeLabel":"object"},"contacts":{"type":"array","minItems":1,"description":"Contact cards to share. Required for `contacts`","items":{"type":"object","properties":{"name":{"type":"object","properties":{"formatted_name":{"type":"string","description":"Full name of the contact","isRequired":true,"uniqueKey":"contacts.items.[INDEX].name.formatted_name","typeLabel":"string"},"first_name":{"type":"string","uniqueKey":"contacts.items.[INDEX].name.first_name","typeLabel":"string"},"last_name":{"type":"string","uniqueKey":"contacts.items.[INDEX].name.last_name","typeLabel":"string"},"middle_name":{"type":"string","uniqueKey":"contacts.items.[INDEX].name.middle_name","typeLabel":"string"},"prefix":{"type":"string","uniqueKey":"contacts.items.[INDEX].name.prefix","typeLabel":"string"},"suffix":{"type":"string","uniqueKey":"contacts.items.[INDEX].name.suffix","typeLabel":"string"}},"required":["formatted_name"],"isRequired":true,"uniqueKey":"contacts.items.[INDEX].name","typeLabel":"object"},"phones":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string","isRequired":true,"uniqueKey":"contacts.items.[INDEX].phones.items.[INDEX].phone","typeLabel":"string"},"type":{"type":"string","description":"e.g. `MOBILE`, `WORK`","uniqueKey":"contacts.items.[INDEX].phones.items.[INDEX].type","typeLabel":"string"}},"required":["phone"],"uniqueKey":"contacts.items.[INDEX].phones.items.[INDEX]","typeLabel":"object"},"uniqueKey":"contacts.items.[INDEX].phones","typeLabel":"object[]"},"emails":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","isRequired":true,"uniqueKey":"contacts.items.[INDEX].emails.items.[INDEX].email","typeLabel":"string"},"type":{"type":"string","uniqueKey":"contacts.items.[INDEX].emails.items.[INDEX].type","typeLabel":"string"}},"required":["email"],"uniqueKey":"contacts.items.[INDEX].emails.items.[INDEX]","typeLabel":"object"},"uniqueKey":"contacts.items.[INDEX].emails","typeLabel":"object[]"},"org":{"type":"object","properties":{"company":{"type":"string","uniqueKey":"contacts.items.[INDEX].org.company","typeLabel":"string"},"department":{"type":"string","uniqueKey":"contacts.items.[INDEX].org.department","typeLabel":"string"},"title":{"type":"string","description":"Job title","uniqueKey":"contacts.items.[INDEX].org.title","typeLabel":"string"}},"uniqueKey":"contacts.items.[INDEX].org","typeLabel":"object"},"urls":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","isRequired":true,"uniqueKey":"contacts.items.[INDEX].urls.items.[INDEX].url","typeLabel":"string"}},"required":["url"],"uniqueKey":"contacts.items.[INDEX].urls.items.[INDEX]","typeLabel":"object"},"uniqueKey":"contacts.items.[INDEX].urls","typeLabel":"object[]"},"birthday":{"type":"string","description":"Birthday as a string (e.g. `1999-01-23`)","uniqueKey":"contacts.items.[INDEX].birthday","typeLabel":"string"},"addresses":{"type":"array","description":"Postal addresses of the contact","items":{"type":"object","properties":{"street":{"type":"string","uniqueKey":"contacts.items.[INDEX].addresses.items.[INDEX].street","typeLabel":"string"},"city":{"type":"string","uniqueKey":"contacts.items.[INDEX].addresses.items.[INDEX].city","typeLabel":"string"},"state":{"type":"string","uniqueKey":"contacts.items.[INDEX].addresses.items.[INDEX].state","typeLabel":"string"},"zip":{"type":"string","uniqueKey":"contacts.items.[INDEX].addresses.items.[INDEX].zip","typeLabel":"string"},"country":{"type":"string","uniqueKey":"contacts.items.[INDEX].addresses.items.[INDEX].country","typeLabel":"string"},"country_code":{"type":"string","uniqueKey":"contacts.items.[INDEX].addresses.items.[INDEX].country_code","typeLabel":"string"},"type":{"type":"string","description":"e.g. `HOME`, `WORK`","uniqueKey":"contacts.items.[INDEX].addresses.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"contacts.items.[INDEX].addresses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"contacts.items.[INDEX].addresses","typeLabel":"object[]"}},"required":["name"],"uniqueKey":"contacts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"contacts","typeLabel":"object[]"},"location":{"type":"object","description":"Location to share. Required for `location`","properties":{"latitude":{"type":"number","minimum":-90,"maximum":90,"isRequired":true,"uniqueKey":"location.latitude","typeLabel":"number"},"longitude":{"type":"number","minimum":-180,"maximum":180,"isRequired":true,"uniqueKey":"location.longitude","typeLabel":"number"},"name":{"type":"string","description":"Location name shown under the pin","uniqueKey":"location.name","typeLabel":"string"},"address":{"type":"string","uniqueKey":"location.address","typeLabel":"string"},"url":{"type":"string","uniqueKey":"location.url","typeLabel":"string"}},"required":["latitude","longitude"],"uniqueKey":"location","typeLabel":"object"},"special":{"type":"object","description":"Channel-specific special message payload. Required for `special`. The object shape is defined by the channel provider and validated by the channel adapter - unsupported payloads return 400. May be combined with `text`","uniqueKey":"special","typeLabel":"object"},"metadata":{"type":"object","description":"Optional free-form object stored on the message record (returned on the message as `metadata`). Not shown to the recipient","uniqueKey":"metadata","typeLabel":"object"}},"required":["type"],"uniqueKey":"","typeLabel":"object"},"examples":{"Text message":{"title":"Text message","value":{"type":"text","text":"Hey there!"}},"Track with your own ID":{"title":"Track with your own ID","value":{"type":"text","text":"Your order is on its way!","tmpSendId":"crm-evt-545134"}},"Reply to a specific message":{"title":"Reply to a specific message","value":{"type":"text","text":"איך אפשר לעזור?","context":"wamid.HBgMOTcyNTI3NzYwOTg5FQIAERgSQUY1NTUzQ0RFNzFGNTBEOTc1AA=="}},"Document attachment":{"title":"Document attachment","value":{"type":"media","media":[{"mediaType":"document","url":"https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf","filename":"Dummy PDF"}]}},"Multiple files":{"title":"Multiple files","value":{"type":"media","media":[{"mediaType":"image","url":"https://picsum.photos/536/354","caption":"image caption"},{"mediaType":"video","url":"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ForBiggerFun.mp4"}]}},"Re-send a stored file by fileId":{"title":"Re-send a stored file by fileId","value":{"type":"media","media":[{"mediaType":"image","fileId":"6900c1eac29d42708adac92f"}]}},"Buttons menu":{"title":"Buttons menu","value":{"type":"buttons","text":"Please select one of the options below","buttons":[{"title":"option 1","payload":"option_1"},{"title":"option 2","payload":"option_2"},{"title":"option 3","payload":"option_3"}]}},"List menu (single section)":{"title":"List menu (single section)","value":{"type":"list","text":"Which representative would you like to be forwarded to?","list":{"button":"All Agents","sections":[{"title":"Will be omitted","rows":[{"title":"Ziv","payload":"ziv@texter.com","description":"AI Engineer"},{"title":"Paz","payload":"paz@texter.com","description":"Product Manager"},{"title":"Noam","payload":"noam@texter.com"}]}]}}},"List menu (multiple sections)":{"title":"List menu (multiple sections)","value":{"type":"list","text":"Welcome to support! How can we assist you today?","list":{"button":"View Menu","sections":[{"title":"Order Issues","rows":[{"title":"Track my order","payload":"action_track_order","description":"Check delivery status for recent items"},{"title":"Report missing item","payload":"action_missing_item","description":"Start a claim for incomplete delivery"}]},{"title":"Account Services","rows":[{"title":"Reset Password","payload":"action_reset_pw"},{"title":"Chat with Agent","payload":"action_human_handoff","description":"Wait time: ~2 mins"}]}]}}},"Contact card":{"title":"Contact card","value":{"type":"contacts","contacts":[{"name":{"formatted_name":"John Doe","first_name":"John","last_name":"Doe"},"phones":[{"phone":"+972521234567","type":"MOBILE"}],"emails":[{"email":"john@example.com","type":"WORK"}],"org":{"company":"Texter","title":"Account Manager"}}]}},"Location":{"title":"Location","value":{"type":"location","location":{"latitude":32.0701,"longitude":34.7935,"name":"Head Office","address":"Tel Aviv, Israel","url":"https://maps.app.goo.gl/example"}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"114d2846-24e8-494a-a82d-a87245337b36":{"description":"A confirmation object containing the sent message(s). Field-by-field reference: [The Message object](/he/api-reference/objects/message)","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","example":true,"uniqueKey":"success","typeLabel":"boolean"},"messages":{"type":"array","items":{"type":"object","description":"A message within a chat. Messages come in two variants: **regular messages** (actual conversation) and **system messages** (`systemMessage: true` - routing/assignment records that only carry `newChatStatus`, `agent`, `assignedToAgent`, `assignedToDepartment` and timestamps; they have no `direction`, `status`, content or reactions)","properties":{"_id":{"type":"string","description":"Unique message ID in Texter","example":"69062b15962e17ab3033f886","uniqueKey":"messages.items.[INDEX]._id","typeLabel":"string"},"systemMessage":{"type":"boolean","description":"Marks a system/control message instead of a normal chat bubble. `true` messages describe routing / assignment / status changes and omit most regular-message fields","uniqueKey":"messages.items.[INDEX].systemMessage","typeLabel":"boolean"},"type":{"type":"string","enum":["text","media","contacts","location","buttons","list","postback","special"],"description":"The content type of the message","uniqueKey":"messages.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"text":{"type":"string","description":"Human-readable body text. Present on most `text`, `buttons`, `list` and `special` messages","uniqueKey":"messages.items.[INDEX].text","typeLabel":"string"},"buttons":{"type":"array","description":"Interactive reply buttons that were sent. Only when `type` is `buttons`","items":{"type":"object","properties":{"title":{"type":"string","uniqueKey":"messages.items.[INDEX].buttons.items.[INDEX].title","typeLabel":"string"},"payload":{"type":"string","uniqueKey":"messages.items.[INDEX].buttons.items.[INDEX].payload","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].buttons.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].buttons","typeLabel":"object[]"},"list":{"type":"object","description":"WhatsApp \"list picker\" that was sent. Only when `type` is `list`","properties":{"button":{"type":"string","uniqueKey":"messages.items.[INDEX].list.button","typeLabel":"string"},"sections":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","uniqueKey":"messages.items.[INDEX].list.sections.items.[INDEX].title","typeLabel":"string"},"rows":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","uniqueKey":"messages.items.[INDEX].list.sections.items.[INDEX].rows.items.[INDEX].title","typeLabel":"string"},"payload":{"type":"string","uniqueKey":"messages.items.[INDEX].list.sections.items.[INDEX].rows.items.[INDEX].payload","typeLabel":"string"},"description":{"type":"string","uniqueKey":"messages.items.[INDEX].list.sections.items.[INDEX].rows.items.[INDEX].description","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].list.sections.items.[INDEX].rows.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].list.sections.items.[INDEX].rows","typeLabel":"object[]"}},"uniqueKey":"messages.items.[INDEX].list.sections.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].list.sections","typeLabel":"object[]"}},"uniqueKey":"messages.items.[INDEX].list","typeLabel":"object"},"postback":{"type":"object","description":"Which list item / button the contact chose. Only when `type` is `postback` (incoming)","properties":{"payload":{"type":"string","uniqueKey":"messages.items.[INDEX].postback.payload","typeLabel":"string"},"title":{"type":"string","uniqueKey":"messages.items.[INDEX].postback.title","typeLabel":"string"},"description":{"type":"string","uniqueKey":"messages.items.[INDEX].postback.description","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].postback","typeLabel":"object"},"media":{"type":"array","description":"Array of media items in this message. Only when `type` is `media`","items":{"type":"object","description":"A media file attached to a message","properties":{"mediaType":{"type":"string","enum":["image","video","document","audio","sticker"],"description":"The kind of file in this media item","uniqueKey":"messages.items.[INDEX].media.items.[INDEX].mediaType","typeLabel":"enum\u003cstring>"},"fileId":{"type":"string","description":"Internal file ID in Texter storage. Use with Generate Public Media URL to download","example":"6900c1eac29d42708adac92f","uniqueKey":"messages.items.[INDEX].media.items.[INDEX].fileId","typeLabel":"string"},"previewId":{"type":"string","description":"Internal preview/thumbnail file ID","uniqueKey":"messages.items.[INDEX].media.items.[INDEX].previewId","typeLabel":"string"},"filename":{"type":"string","description":"Original filename from the sender device","example":"offer_october_2025.pdf","uniqueKey":"messages.items.[INDEX].media.items.[INDEX].filename","typeLabel":"string"},"contentType":{"type":"string","description":"MIME type","example":"application/pdf","uniqueKey":"messages.items.[INDEX].media.items.[INDEX].contentType","typeLabel":"string"},"caption":{"type":"string","description":"Optional caption text attached to the media. Relevant when mediaType is `image` or `video`","uniqueKey":"messages.items.[INDEX].media.items.[INDEX].caption","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"description":"Channel / provider metadata for this attachment","example":{"frequentlyForwarded":false},"uniqueKey":"messages.items.[INDEX].media.items.[INDEX].metadata","typeLabel":"object"},"scanned":{"type":"boolean","description":"Whether the file has been scanned for threats","uniqueKey":"messages.items.[INDEX].media.items.[INDEX].scanned","typeLabel":"boolean"},"deleted":{"type":"object","description":"Present when the media file was removed by scheduled deletion (the message itself remains). The `fileId` no longer resolves","properties":{"timestamp":{"type":"number","description":"When the file was deleted (epoch ms)","uniqueKey":"messages.items.[INDEX].media.items.[INDEX].deleted.timestamp","typeLabel":"number"}},"uniqueKey":"messages.items.[INDEX].media.items.[INDEX].deleted","typeLabel":"object"},"url":{"type":"string","deprecated":true,"description":"Deprecated - use the `fileId` download flow instead","uniqueKey":"messages.items.[INDEX].media.items.[INDEX].url","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].media.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].media","typeLabel":"object[]"},"location":{"type":"object","description":"Shared location data. Only when `type` is `location`","properties":{"latitude":{"type":"number","uniqueKey":"messages.items.[INDEX].location.latitude","typeLabel":"number"},"longitude":{"type":"number","uniqueKey":"messages.items.[INDEX].location.longitude","typeLabel":"number"},"name":{"type":"string","uniqueKey":"messages.items.[INDEX].location.name","typeLabel":"string"},"address":{"type":"string","uniqueKey":"messages.items.[INDEX].location.address","typeLabel":"string"},"url":{"type":"string","uniqueKey":"messages.items.[INDEX].location.url","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].location","typeLabel":"object"},"contacts":{"type":"array","description":"Shared contact cards. Only when `type` is `contacts`","items":{"type":"object","description":"A shared contact card (vCard-style)","properties":{"name":{"type":"object","properties":{"formatted_name":{"type":"string","description":"Full name of the contact","isRequired":true,"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].name.formatted_name","typeLabel":"string"},"first_name":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].name.first_name","typeLabel":"string"},"last_name":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].name.last_name","typeLabel":"string"},"middle_name":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].name.middle_name","typeLabel":"string"},"prefix":{"type":"string","description":"e.g. Mr., Ms., Dr.","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].name.prefix","typeLabel":"string"},"suffix":{"type":"string","description":"e.g. Jr., Sr., III","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].name.suffix","typeLabel":"string"}},"required":["formatted_name"],"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].name","typeLabel":"object"},"phones":{"type":"array","items":{"type":"object","properties":{"phone":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].phones.items.[INDEX].phone","typeLabel":"string"},"type":{"type":"string","description":"e.g. MOBILE, WORK","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].phones.items.[INDEX].type","typeLabel":"string"}},"required":["phone"],"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].phones.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].phones","typeLabel":"object[]"},"emails":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].emails.items.[INDEX].email","typeLabel":"string"},"type":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].emails.items.[INDEX].type","typeLabel":"string"}},"required":["email"],"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].emails.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].emails","typeLabel":"object[]"},"urls":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","isRequired":true,"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].urls.items.[INDEX].url","typeLabel":"string"}},"required":["url"],"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].urls.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].urls","typeLabel":"object[]"},"addresses":{"type":"array","items":{"type":"object","properties":{"street":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].addresses.items.[INDEX].street","typeLabel":"string"},"city":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].addresses.items.[INDEX].city","typeLabel":"string"},"state":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].addresses.items.[INDEX].state","typeLabel":"string"},"zip":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].addresses.items.[INDEX].zip","typeLabel":"string"},"country":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].addresses.items.[INDEX].country","typeLabel":"string"},"country_code":{"type":"string","description":"Two-letter country code","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].addresses.items.[INDEX].country_code","typeLabel":"string"},"type":{"type":"string","description":"HOME or WORK","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].addresses.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].addresses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].addresses","typeLabel":"object[]"},"org":{"type":"object","properties":{"company":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].org.company","typeLabel":"string"},"department":{"type":"string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].org.department","typeLabel":"string"},"title":{"type":"string","description":"Job title","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].org.title","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].org","typeLabel":"object"},"birthday":{"type":"string","description":"YYYY-MM-DD formatted string","uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX].birthday","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].contacts.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].contacts","typeLabel":"object[]"},"special":{"type":"object","additionalProperties":true,"description":"Channel-specific or structured content. Only when `type` is `special`. Known flags: `redacted: true` (contents redacted as sensitive), `deleted: { previousType, timestamp }` (contents removed by scheduled deletion - explains \"empty\" messages), `isEchoMessage: true` (outgoing message sent from another client, not Texter), `isHistoryMessage: true`, `isStatusMessage: true`, `unsupportedByProvider: true`, plus channel-specific keys (`whatsapp`, `messenger`, `instagram`, `email`) such as template send data","uniqueKey":"messages.items.[INDEX].special","typeLabel":"object"},"metadata":{"type":"object","description":"Extra metadata about this message","properties":{"triggeredBot":{"type":"boolean","description":"Whether this incoming message triggered automation/bot logic","uniqueKey":"messages.items.[INDEX].metadata.triggeredBot","typeLabel":"boolean"},"botMsgInfo":{"type":"object","description":"Which bot node generated this outgoing message","properties":{"identifier":{"type":"string","uniqueKey":"messages.items.[INDEX].metadata.botMsgInfo.identifier","typeLabel":"string"},"version":{"type":"number","uniqueKey":"messages.items.[INDEX].metadata.botMsgInfo.version","typeLabel":"number"},"nodeName":{"type":"string","uniqueKey":"messages.items.[INDEX].metadata.botMsgInfo.nodeName","typeLabel":"string"},"hideSummary":{"type":"boolean","uniqueKey":"messages.items.[INDEX].metadata.botMsgInfo.hideSummary","typeLabel":"boolean"}},"uniqueKey":"messages.items.[INDEX].metadata.botMsgInfo","typeLabel":"object"},"bulkSendId":{"type":"string","description":"Bulk / campaign batch ID for this message","uniqueKey":"messages.items.[INDEX].metadata.bulkSendId","typeLabel":"string"},"whatsappTemplate":{"type":"object","description":"Structured template send data for outgoing WhatsApp template messages","properties":{"name":{"type":"string","description":"Template name","uniqueKey":"messages.items.[INDEX].metadata.whatsappTemplate.name","typeLabel":"string"},"localization":{"type":"object","additionalProperties":true,"description":"The localization that was sent","uniqueKey":"messages.items.[INDEX].metadata.whatsappTemplate.localization","typeLabel":"object"},"contents":{"type":"object","additionalProperties":true,"description":"The resolved send contents (header, body values, buttons)","uniqueKey":"messages.items.[INDEX].metadata.whatsappTemplate.contents","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].metadata.whatsappTemplate","typeLabel":"object"}},"additionalProperties":true,"uniqueKey":"messages.items.[INDEX].metadata","typeLabel":"object"},"chatChannelInfo":{"type":"object","description":"Which channel account / contact this message belongs to","properties":{"name":{"type":"string","enum":["whatsapp","messenger","instagram","website_chat","email","sms"],"description":"Messaging channel type","uniqueKey":"messages.items.[INDEX].chatChannelInfo.name","typeLabel":"enum\u003cstring>"},"accountId":{"type":"string","description":"The business account ID connected to Texter. For WhatsApp this is the business phone number","example":"972586640430","uniqueKey":"messages.items.[INDEX].chatChannelInfo.accountId","typeLabel":"string"},"id":{"type":"string","description":"The contact's ID on the channel. For WhatsApp this is the contact's phone number","example":"972521234567","uniqueKey":"messages.items.[INDEX].chatChannelInfo.id","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"description":"Channel-specific metadata, when present","uniqueKey":"messages.items.[INDEX].chatChannelInfo.metadata","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].chatChannelInfo","typeLabel":"object"},"channelInfo":{"type":"object","description":"Provider-side message identifier - use it to correlate with WhatsApp provider / Meta logs. Note: on system messages (`systemMessage: true`) the `id` is an internal placeholder with no provider meaning","properties":{"id":{"type":"string","example":"wamid.HBgMOTcyNTI3NzYwOTg5FQIAERgS...","uniqueKey":"messages.items.[INDEX].channelInfo.id","typeLabel":"string"},"metadata":{"type":"object","additionalProperties":true,"uniqueKey":"messages.items.[INDEX].channelInfo.metadata","typeLabel":"object"}},"uniqueKey":"messages.items.[INDEX].channelInfo","typeLabel":"object"},"direction":{"type":"string","enum":["incoming","outgoing"],"description":"Logical direction of the message. Regular messages only","uniqueKey":"messages.items.[INDEX].direction","typeLabel":"enum\u003cstring>"},"status":{"type":"integer","enum":[0,1,2,3,4,5,6],"description":"Message delivery status: `0` = Sent, `1` = Accepted by provider, `2` = Delivered, `3` = Seen, `4` = Failed, `5` = Channel Failed, `6` = Deleted","uniqueKey":"messages.items.[INDEX].status","typeLabel":"enum\u003cinteger>"},"statusHistory":{"type":"array","description":"Timeline of delivery/read states for this message","items":{"type":"object","properties":{"status":{"type":"integer","enum":[0,1,2,3,4,5,6],"description":"Message delivery status: `0` = Sent, `1` = Accepted by provider, `2` = Delivered, `3` = Seen, `4` = Failed, `5` = Channel Failed, `6` = Deleted","uniqueKey":"messages.items.[INDEX].statusHistory.items.[INDEX].status","typeLabel":"enum\u003cinteger>"},"timestamp":{"type":"number","description":"Epoch milliseconds","uniqueKey":"messages.items.[INDEX].statusHistory.items.[INDEX].timestamp","typeLabel":"number"}},"uniqueKey":"messages.items.[INDEX].statusHistory.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].statusHistory","typeLabel":"object[]"},"reactions":{"type":"array","items":{"type":"string","uniqueKey":"messages.items.[INDEX].reactions.items.[INDEX]","typeLabel":"string"},"description":"Current emoji reactions on the message","uniqueKey":"messages.items.[INDEX].reactions","typeLabel":"string[]"},"reactionsHistory":{"type":"array","description":"Timeline of reaction add/remove events","items":{"type":"object","properties":{"timestamp":{"type":"number","description":"Epoch milliseconds","uniqueKey":"messages.items.[INDEX].reactionsHistory.items.[INDEX].timestamp","typeLabel":"number"},"reaction":{"type":"string","description":"The emoji, when added","uniqueKey":"messages.items.[INDEX].reactionsHistory.items.[INDEX].reaction","typeLabel":"string"},"removed":{"type":"boolean","description":"`true` when this event removed the reaction","uniqueKey":"messages.items.[INDEX].reactionsHistory.items.[INDEX].removed","typeLabel":"boolean"}},"uniqueKey":"messages.items.[INDEX].reactionsHistory.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages.items.[INDEX].reactionsHistory","typeLabel":"object[]"},"timestamp":{"type":"number","description":"When the message was created (epoch **milliseconds**)","uniqueKey":"messages.items.[INDEX].timestamp","typeLabel":"number"},"updatedAt":{"type":"string","format":"date-time","description":"Last time this message was updated (e.g. when delivery status changes)","uniqueKey":"messages.items.[INDEX].updatedAt","typeLabel":"string\u003cdate-time>"},"parent_chat":{"type":"string","description":"The chat ID this message belongs to","uniqueKey":"messages.items.[INDEX].parent_chat","typeLabel":"string"},"agent":{"type":"string","description":"Which agent or bot sent this message - `\"Bot\"` or an agent UID","uniqueKey":"messages.items.[INDEX].agent","typeLabel":"string"},"assignedToAgent":{"type":"string","description":"Which agent the chat was assigned to at this moment. Only on system messages","uniqueKey":"messages.items.[INDEX].assignedToAgent","typeLabel":"string"},"assignedToDepartment":{"type":"string","description":"Which department the chat was assigned to. Only on some system messages","uniqueKey":"messages.items.[INDEX].assignedToDepartment","typeLabel":"string"},"newChatStatus":{"type":"integer","description":"New chat status after this routing/system event. Only on system messages","enum":[0,1,2,3,4],"uniqueKey":"messages.items.[INDEX].newChatStatus","typeLabel":"enum\u003cinteger>"},"botSessionId":{"type":"string","description":"Bot session / flow instance ID tied to this message","uniqueKey":"messages.items.[INDEX].botSessionId","typeLabel":"string"},"hideSummary":{"type":"boolean","description":"Whether this message should be hidden from summaries","uniqueKey":"messages.items.[INDEX].hideSummary","typeLabel":"boolean"},"tmpSendId":{"oneOf":[{"type":"string","description":"Client-generated ID to match a send request to the stored message. String or number","uniqueKey":"messages.items.[INDEX].tmpSendId.oneOf.0","typeLabel":"string"},{"type":"number","description":"Client-generated ID to match a send request to the stored message. String or number","uniqueKey":"messages.items.[INDEX].tmpSendId.oneOf.1","typeLabel":"number"}],"uniqueKey":"messages.items.[INDEX].tmpSendId","typeLabel":"string | number"},"errorReason":{"type":"string","description":"Reason the send failed (provider error, throttling, 24h window, etc.). Only present if delivery failed","uniqueKey":"messages.items.[INDEX].errorReason","typeLabel":"string"},"context":{"type":"object","additionalProperties":true,"description":"The message this message replies to. In API read/send responses this is **populated into a full Message object** (same schema, recursive). In raw webhook payloads it may be only the provider reference `{ id }` of the replied-to message","uniqueKey":"messages.items.[INDEX].context","typeLabel":"object"},"forwarded":{"type":"boolean","description":"Whether WhatsApp marked the message as forwarded","uniqueKey":"messages.items.[INDEX].forwarded","typeLabel":"boolean"},"sensitive":{"type":"boolean","description":"Whether the content is marked sensitive and should be redacted in some views","uniqueKey":"messages.items.[INDEX].sensitive","typeLabel":"boolean"},"scheduledDeletion":{"type":"object","description":"Present when the message is scheduled for deletion by data-retention rules","properties":{"timestamp":{"type":"number","description":"Planned deletion time (epoch ms)","uniqueKey":"messages.items.[INDEX].scheduledDeletion.timestamp","typeLabel":"number"},"type":{"type":"string","enum":["full","contents","media"],"description":"What gets deleted","uniqueKey":"messages.items.[INDEX].scheduledDeletion.type","typeLabel":"enum\u003cstring>"},"setManuallyByUid":{"type":"string","description":"Agent UID, when the deletion was scheduled manually","uniqueKey":"messages.items.[INDEX].scheduledDeletion.setManuallyByUid","typeLabel":"string"}},"uniqueKey":"messages.items.[INDEX].scheduledDeletion","typeLabel":"object"},"incoming":{"type":"boolean","deprecated":true,"description":"Deprecated - use `direction` instead","uniqueKey":"messages.items.[INDEX].incoming","typeLabel":"boolean"},"outgoing":{"type":"boolean","deprecated":true,"description":"Deprecated - use `direction` instead","uniqueKey":"messages.items.[INDEX].outgoing","typeLabel":"boolean"},"received":{"type":"number","deprecated":true,"description":"Deprecated (epoch ms) - use `timestamp` instead","uniqueKey":"messages.items.[INDEX].received","typeLabel":"number"},"botMsgInfo":{"type":"object","deprecated":true,"additionalProperties":true,"description":"Deprecated - use `metadata.botMsgInfo` instead","uniqueKey":"messages.items.[INDEX].botMsgInfo","typeLabel":"object"},"bulkSendId":{"type":"string","deprecated":true,"description":"Deprecated - use `metadata.bulkSendId` instead","uniqueKey":"messages.items.[INDEX].bulkSendId","typeLabel":"string"},"providerMessageId":{"type":"string","deprecated":true,"description":"Deprecated - use `channelInfo.id` instead","uniqueKey":"messages.items.[INDEX].providerMessageId","typeLabel":"string"},"messageId":{"type":"string","deprecated":true,"description":"Deprecated - use `_id` instead","uniqueKey":"messages.items.[INDEX].messageId","typeLabel":"string"},"templateId":{"type":"string","deprecated":true,"description":"Deprecated - use `metadata.whatsappTemplate` instead","uniqueKey":"messages.items.[INDEX].templateId","typeLabel":"string"},"templateMessage":{"type":"boolean","deprecated":true,"description":"Deprecated - use `metadata.whatsappTemplate` instead","uniqueKey":"messages.items.[INDEX].templateMessage","typeLabel":"boolean"},"templateMessageData":{"type":"object","deprecated":true,"additionalProperties":true,"description":"Deprecated - use `metadata.whatsappTemplate` instead","uniqueKey":"messages.items.[INDEX].templateMessageData","typeLabel":"object"},"parameters":{"type":"array","deprecated":true,"items":{"type":"string","uniqueKey":"messages.items.[INDEX].parameters.items.[INDEX]","typeLabel":"string"},"description":"Deprecated - use `metadata.whatsappTemplate` instead","uniqueKey":"messages.items.[INDEX].parameters","typeLabel":"string[]"}},"uniqueKey":"messages.items.[INDEX]","typeLabel":"object"},"uniqueKey":"messages","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"success":true,"messages":[{"_id":"6909177d962e17ab3033fa2a","chatChannelInfo":{"name":"whatsapp","id":"972521234567","accountId":"972509876543"},"channelInfo":{"id":"wamid.HBgMOTcyNTI3NzYwOTg5FQIAERgSRDI2RjUwMkFFQTNEQjE0MEVBAA=="},"direction":"outgoing","parent_chat":"67a87067aeed4dee1271cb4d","status":0,"statusHistory":[{"status":0,"timestamp":1762203517914}],"text":"Hey there!","timestamp":1762203517914,"type":"text","updatedAt":"2025-11-03T20:58:37.936Z"}]},"examples":{"Example":{"title":"Example","value":{"success":true,"messages":[{"_id":"6909177d962e17ab3033fa2a","chatChannelInfo":{"name":"whatsapp","id":"972521234567","accountId":"972509876543"},"channelInfo":{"id":"wamid.HBgMOTcyNTI3NzYwOTg5FQIAERgSRDI2RjUwMkFFQTNEQjE0MEVBAA=="},"direction":"outgoing","parent_chat":"67a87067aeed4dee1271cb4d","status":0,"statusHistory":[{"status":0,"timestamp":1762203517914}],"text":"Hey there!","timestamp":1762203517914,"type":"text","updatedAt":"2025-11-03T20:58:37.936Z"}]}}},"exampleType":"examples"}},"exampleType":"examples"},"f29c9634-3632-4451-bd1f-e4d52c118584":{"description":"Validation error, unsupported content for the channel, or media download failure","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"media[1]: File caption is unsupported for document media type!","success":false},"examples":{"Example":{"title":"Example","value":{"error":"media[1]: File caption is unsupported for document media type!","success":false}}},"exampleType":"examples"}},"exampleType":"examples"},"5dd20395-b8c0-4755-bcd7-662be30976c5":{"description":"Missing or invalid token, or missing required scope","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"baa14c9d-8e2b-4d0f-bf7a-a9a113c49db4":{"description":"Chat not found (no chat matches this `chatId`)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable error message","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"success":{"type":"boolean","example":false,"uniqueKey":"success","typeLabel":"boolean"}},"required":["error"],"uniqueKey":"","typeLabel":"object"},"example":{"error":"Chat not found","success":false},"examples":{"Example":{"title":"Example","value":{"error":"Chat not found","success":false}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"749746d5-8688-4afd-9732-71c96019706f":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"13ca4397-67e2-4223-8a1c-2caa6eba4b84":{"url":"https://{projectID}.texterchat.com/server/api/v2","description":"Your Texter environment. Replace projectID with your project subdomain","variables":{"projectID":{"default":"demo","description":"Your unique project subdomain. If your environment URL is https://demo.texterchat.com, your projectID is \"demo\""}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"API token generated in Texter: gear icon → Developers → API Tokens. When creating a token, assign it the scopes required by the endpoints you plan to call - each endpoint lists its required scopes.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"he/api-reference/openapi.json"},"subdomain":"texter","siteName":"Texterchat","title":"Send a Message to Chat - Texterchat","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"he":{"href":"/he/api-reference/messages/send-a-message-to-chat","matchLevel":0},"en":{"href":"/api-reference/messages/send-a-message-to-chat","matchLevel":1}}},"lastModified":"2026-08-11T10:30:12.278Z","originalFileLocation":"he/api-reference/messages/send-a-message-to-chat.mdx","locale":"he"},"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 a session message to an existing chat. Messages can include text, media (image, video, document, audio), interactive buttons, list menus, contact cards and locations.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Texterchat\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_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/texter/iOqFlT17WE3XZ92K/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send a Message to Chat - Texterchat\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send a session message to an existing chat. Messages can include text, media (image, video, document, audio), interactive buttons, list menus, contact cards and locations.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Texterchat\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://texter.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=Send+a+Message+to+Chat\u0026amp;description=Send+a+session+message+to+an+existing+chat.+Messages+can+include+text%2C+media+%28image%2C+video%2C+document%2C+audio%29%2C+interactive+buttons%2C+list+menus%2C+contact+cards+and\u0026amp;theme=218c4e51ab145ec8f6f14c07\u0026amp;signature=5f4049fbf93bf74667dfe94b812b167acbdb37a1f4446072852366bfd4207310\">\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 Message to Chat - Texterchat\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send a session message to an existing chat. Messages can include text, media (image, video, document, audio), interactive buttons, list menus, contact cards and locations.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://texter.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=Send+a+Message+to+Chat\u0026amp;description=Send+a+session+message+to+an+existing+chat.+Messages+can+include+text%2C+media+%28image%2C+video%2C+document%2C+audio%29%2C+interactive+buttons%2C+list+menus%2C+contact+cards+and\u0026amp;theme=218c4e51ab145ec8f6f14c07\u0026amp;signature=5f4049fbf93bf74667dfe94b812b167acbdb37a1f4446072852366bfd4207310\">\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/texter/iOqFlT17WE3XZ92K/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Texterchat\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#5B5FCF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/he/api-reference/messages/send-a-message-to-chat.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"he\" href=\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://help.texterchat.com/api-reference/messages/send-a-message-to-chat\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help.texterchat.com/#organization\",\"name\":\"Texterchat\",\"url\":\"https://help.texterchat.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/texter/u1h4IZ0dqx4BZ6zi/assets/favicon.svg?fit=max\u0026auto=format\u0026n=u1h4IZ0dqx4BZ6zi\u0026q=85\u0026s=5fbab3f5dc54b8e49a9f2e9f64e307b5\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help.texterchat.com#website\",\"name\":\"Texterchat\",\"url\":\"https://help.texterchat.com\",\"publisher\":{\"@id\":\"https://help.texterchat.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat#webpage\",\"url\":\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat\",\"name\":\"Send a Message to Chat\",\"description\":\"Send a session message to an existing chat. Messages can include text, media (image, video, document, audio), interactive buttons, list menus, contact cards and locations.\",\"dateModified\":\"2026-08-11T10:30:12.278Z\",\"isPartOf\":{\"@id\":\"https://help.texterchat.com#website\"},\"breadcrumb\":{\"@id\":\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://help.texterchat.com/he/api-reference/manage-templates/create-new-template\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Messages\",\"item\":\"https://help.texterchat.com/he/api-reference/messages/get-messages-of-a-chat\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Send a Message to Chat\",\"item\":\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat#apireference\",\"headline\":\"Send a Message to Chat\",\"name\":\"Send a Message to Chat\",\"description\":\"Send a session message to an existing chat. Messages can include text, media (image, video, document, audio), interactive buttons, list menus, contact cards and locations.\",\"url\":\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat\",\"mainEntityOfPage\":{\"@id\":\"https://help.texterchat.com/he/api-reference/messages/send-a-message-to-chat#webpage\"},\"dateModified\":\"2026-08-11T10:30:12.278Z\",\"publisher\":{\"@id\":\"https://help.texterchat.com/#organization\"},\"isPartOf\":{\"@id\":\"https://help.texterchat.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Texterchat\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Texterchat\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/he/api-reference/messages/send-a-message-to-chat.md","siteName":"Texterchat","nav":{"global":null,"languages":[{"language":"he","default":true,"navbar":{"links":[],"primary":{"type":"button","label":"תמיכה","href":"https://wa.me/972586640430"}},"tabs":[{"tab":"מדריכים","icon":"book-open","pages":[{"title":"מדריכים","href":"/guides/welcome"}]},{"tab":"API Reference","icon":"code","groups":[{"group":"Getting Started","icon":"rocket","pages":[{"title":"Introduction","href":"/he/api-reference/introduction"},{"title":"Authentication","href":"/he/api-reference/authentication"},{"title":"Enums \u0026 Common Fields","href":"/he/api-reference/enums"}]},{"group":"Endpoints","icon":"plug","pages":[{"group":"Manage Templates","icon":"file-text","pages":[{"title":"Create New Template","openapi":"he/api-reference/openapi.json POST /whatsapp/templates/{accountId}","href":"/he/api-reference/manage-templates/create-new-template"},{"title":"Create or Update Localization","openapi":"he/api-reference/openapi.json POST /whatsapp/templates/{accountId}/{templateName}/localizations","href":"/he/api-reference/manage-templates/create-or-update-localization"},{"title":"Submit Template for Approval","openapi":"he/api-reference/openapi.json POST /whatsapp/templates/{accountId}/{templateName}/localizations/{language}/submit","href":"/he/api-reference/manage-templates/submit-template-for-approval"},{"title":"Delete Template","openapi":"he/api-reference/openapi.json DELETE /whatsapp/templates/{accountId}/{templateName}","href":"/he/api-reference/manage-templates/delete-template"},{"title":"Update Existing Template","openapi":"he/api-reference/openapi.json PATCH /whatsapp/templates/{accountId}/{templateName}","href":"/he/api-reference/manage-templates/update-existing-template"},{"title":"Send Template Message","openapi":"he/api-reference/openapi.json POST /whatsapp/templates/send","href":"/he/api-reference/manage-templates/send-template-message"},{"title":"List All Templates","openapi":"he/api-reference/openapi.json GET /whatsapp/templates","href":"/he/api-reference/manage-templates/list-all-templates"}]},{"group":"Templates Subscriptions","icon":"bell-off","pages":[{"title":"Unsubscribe from Templates","openapi":"he/api-reference/openapi.json POST /whatsapp/templates/unsubscribe","href":"/he/api-reference/templates-subscriptions/unsubscribe-from-templates"},{"title":"Resubscribe to Templates","openapi":"he/api-reference/openapi.json POST /whatsapp/templates/subscribe","href":"/he/api-reference/templates-subscriptions/resubscribe-to-templates"},{"title":"List All Unsubscribed Users","openapi":"he/api-reference/openapi.json GET /whatsapp/templates/unsubscribed","href":"/he/api-reference/templates-subscriptions/list-all-unsubscribed-users"},{"title":"Unsubscribed from Specific Account","openapi":"he/api-reference/openapi.json GET /whatsapp/templates/unsubscribed/{accountId}","href":"/he/api-reference/templates-subscriptions/unsubscribed-from-specific-account"}]},{"group":"Messages","icon":"message-circle","pages":[{"title":"Get Messages of a Chat","description":"Retrieve messages from a specific chat. Messages are returned in ascending order (earliest to latest), up to `limit` messages (default 50).","openapi":"he/api-reference/openapi.json GET /messages/chat/{chatId}","href":"/he/api-reference/messages/get-messages-of-a-chat"},{"title":"Send a Message to Chat","openapi":"he/api-reference/openapi.json POST /messages/send/{chatId}","href":"/he/api-reference/messages/send-a-message-to-chat"},{"title":"Send a Message by Recipient","description":"Send a session message addressed by channel + account + recipient phone number, without knowing the chat ID. Omit the channel and account to send from your default channel account.","openapi":"he/api-reference/openapi.json POST /messages/send","href":"/he/api-reference/messages/send-a-message-by-recipient"}]},{"group":"Chats","icon":"messages-square","pages":[{"title":"Search Chats","openapi":"he/api-reference/openapi.json GET /chats/search","href":"/he/api-reference/chats/search-chats"},{"title":"Assign Chat","openapi":"he/api-reference/openapi.json POST /chats/assign","href":"/he/api-reference/chats/assign-chat"},{"title":"Get Chat by Chat ID","openapi":"he/api-reference/openapi.json GET /chats/{chatId}","href":"/he/api-reference/chats/get-chat-by-chat-id"},{"title":"Get Chat by Recipient","openapi":"he/api-reference/openapi.json GET /chats","href":"/he/api-reference/chats/get-chat-by-recipient"},{"title":"Update Chat Properties","openapi":"he/api-reference/openapi.json PATCH /chats/{chatId}","href":"/he/api-reference/chats/update-chat-properties"},{"title":"Resolve Chat","openapi":"he/api-reference/openapi.json POST /chats/{chatId}/resolve","href":"/he/api-reference/chats/resolve-chat"},{"title":"Update CRM Data","openapi":"he/api-reference/openapi.json POST /chats/{chatId}/crm-data","href":"/he/api-reference/chats/update-crm-data"}]},{"group":"Labels","icon":"tag","pages":[{"title":"List All Labels","openapi":"he/api-reference/openapi.json GET /labels","href":"/he/api-reference/labels/list-all-labels"},{"title":"Create Label","openapi":"he/api-reference/openapi.json POST /labels","href":"/he/api-reference/labels/create-label"},{"title":"Get Label Data","openapi":"he/api-reference/openapi.json GET /labels/{labelId}","href":"/he/api-reference/labels/get-label-data"},{"title":"Delete Label","openapi":"he/api-reference/openapi.json DELETE /labels/{labelId}","href":"/he/api-reference/labels/delete-label"},{"title":"Update Existing Label","openapi":"he/api-reference/openapi.json PATCH /labels/{labelId}","href":"/he/api-reference/labels/update-existing-label"},{"title":"Manage Labels in Chat","openapi":"he/api-reference/openapi.json POST /chats/{chatId}/labels","href":"/he/api-reference/labels/manage-labels-in-chat"}]},{"group":"Chat Notes","icon":"sticky-note","pages":[{"title":"List Chat Notes","openapi":"he/api-reference/openapi.json GET /chats/{chatId}/chat-notes","href":"/he/api-reference/chat-notes/list-chat-notes"},{"title":"Get Chat Note","openapi":"he/api-reference/openapi.json GET /chats/{chatId}/chat-notes/{noteId}","href":"/he/api-reference/chat-notes/get-chat-note"},{"title":"Create Chat Note","openapi":"he/api-reference/openapi.json POST /chats/{chatId}/chat-notes","href":"/he/api-reference/chat-notes/create-chat-note"},{"title":"Update Chat Note","openapi":"he/api-reference/openapi.json PATCH /chats/{chatId}/chat-notes/{noteId}","href":"/he/api-reference/chat-notes/update-chat-note"},{"title":"Delete Chat Note","openapi":"he/api-reference/openapi.json DELETE /chats/{chatId}/chat-notes/{noteId}","href":"/he/api-reference/chat-notes/delete-chat-note"}]},{"group":"Channels","icon":"radio","pages":[{"title":"List Channel Health Problems","openapi":"he/api-reference/openapi.json GET /channels/health/problems","href":"/he/api-reference/channels/list-channel-health-problems"},{"title":"Resolve Channel Health Problem","openapi":"he/api-reference/openapi.json POST /channels/health/problems/{problemId}/resolve","href":"/he/api-reference/channels/resolve-channel-health-problem"}]},{"group":"Quick Replies","icon":"reply","pages":[{"title":"Get Existing Quick Replies","openapi":"he/api-reference/openapi.json GET /quick-replies","href":"/he/api-reference/quick-replies/get-existing-quick-replies"},{"title":"Create Quick Reply","openapi":"he/api-reference/openapi.json POST /quick-replies","href":"/he/api-reference/quick-replies/create-quick-reply"},{"title":"Delete Quick Reply","openapi":"he/api-reference/openapi.json DELETE /quick-replies/{quickReplyId}","href":"/he/api-reference/quick-replies/delete-quick-reply"},{"title":"Update Existing Quick Reply","openapi":"he/api-reference/openapi.json PATCH /quick-replies/{quickReplyId}","href":"/he/api-reference/quick-replies/update-existing-quick-reply"}]},{"group":"Files","icon":"file","pages":[{"title":"Generate Public Media URL","openapi":"he/api-reference/openapi.json POST /files/share/{fileId}","href":"/he/api-reference/files/generate-public-media-url"}]},{"group":"Subscribe to Events","icon":"bell","pages":[{"title":"List All Subscriptions","openapi":"he/api-reference/openapi.json GET /scenarios/manage","href":"/he/api-reference/subscribe-to-events/list-all-subscriptions"},{"title":"Import Subscription (Subscribe to an Event)","openapi":"he/api-reference/openapi.json POST /scenarios/manage/import","href":"/he/api-reference/subscribe-to-events/import-subscription-subscribe-to-an-event"},{"title":"Inactivate Subscription","openapi":"he/api-reference/openapi.json POST /scenarios/manage/{scenarioId}/revisions/inactivate","href":"/he/api-reference/subscribe-to-events/inactivate-subscription"},{"title":"Activate Subscription","openapi":"he/api-reference/openapi.json POST /scenarios/manage/{scenarioId}/revisions/{version}/activate","href":"/he/api-reference/subscribe-to-events/activate-subscription"},{"title":"Delete Subscription","openapi":"he/api-reference/openapi.json DELETE /scenarios/manage/{scenarioId}","href":"/he/api-reference/subscribe-to-events/delete-subscription"}]},{"group":"Scenarios (Advanced)","icon":"route","pages":[{"title":"Create Empty Scenario","openapi":"he/api-reference/openapi.json POST /scenarios/manage","href":"/he/api-reference/scenarios-advanced/create-empty-scenario"},{"title":"Copy Scenario","openapi":"he/api-reference/openapi.json POST /scenarios/manage/{scenarioId}/copy","href":"/he/api-reference/scenarios-advanced/copy-scenario"},{"title":"Create Draft","openapi":"he/api-reference/openapi.json POST /scenarios/manage/{scenarioId}/draft","href":"/he/api-reference/scenarios-advanced/create-draft"},{"title":"Delete Draft","openapi":"he/api-reference/openapi.json DELETE /scenarios/manage/{scenarioId}/draft","href":"/he/api-reference/scenarios-advanced/delete-draft"},{"title":"Update Draft","openapi":"he/api-reference/openapi.json PATCH /scenarios/manage/{scenarioId}/draft","href":"/he/api-reference/scenarios-advanced/update-draft"},{"title":"Create Revision (Publish Draft)","openapi":"he/api-reference/openapi.json POST /scenarios/manage/{scenarioId}/revisions","href":"/he/api-reference/scenarios-advanced/create-revision-publish-draft"},{"title":"Delete Revision","openapi":"he/api-reference/openapi.json DELETE /scenarios/manage/{scenarioId}/revisions/{version}","href":"/he/api-reference/scenarios-advanced/delete-revision"},{"title":"List Scenario Runs","openapi":"he/api-reference/openapi.json GET /scenarios/runs","href":"/he/api-reference/scenarios-advanced/list-scenario-runs"},{"title":"List Components - Events","openapi":"he/api-reference/openapi.json GET /scenarios/components/events","href":"/he/api-reference/scenarios-advanced/list-components--events"},{"title":"List Components - Conditions","openapi":"he/api-reference/openapi.json GET /scenarios/components/conditions","href":"/he/api-reference/scenarios-advanced/list-components--conditions"},{"title":"List Components - Loaders","openapi":"he/api-reference/openapi.json GET /scenarios/components/loaders","href":"/he/api-reference/scenarios-advanced/list-components--loaders"},{"title":"List Components - Actions","openapi":"he/api-reference/openapi.json GET /scenarios/components/actions","href":"/he/api-reference/scenarios-advanced/list-components--actions"},{"title":"Inbound Webhook Trigger","openapi":"he/api-reference/openapi.json POST /scenarios/webhooks","href":"/he/api-reference/scenarios-advanced/inbound-webhook-trigger"}]}]},{"group":"Webhooks","icon":"webhook","pages":[{"title":"Webhooks Overview","href":"/he/api-reference/webhooks-guide"},{"group":"Message Events","icon":"message-square","pages":[{"title":"All Messages","href":"/he/api-reference/webhooks/message-events/all-messages"},{"title":"New Incoming Messages","href":"/he/api-reference/webhooks/message-events/new-incoming-messages"},{"title":"Messages with Specific Text","href":"/he/api-reference/webhooks/message-events/messages-with-specific-text"},{"title":"Messages with Attachments","href":"/he/api-reference/webhooks/message-events/messages-with-attachments"},{"title":"Messages Failed to Deliver","href":"/he/api-reference/webhooks/message-events/messages-failed-to-deliver"},{"title":"Message Status Changed","href":"/he/api-reference/webhooks/message-events/message-status-changed"},{"title":"Messages Delivered or Failed","href":"/he/api-reference/webhooks/message-events/messages-delivered-or-failed"}]},{"group":"Chat Events","icon":"messages-square","pages":[{"title":"Chat Unsubscribed from Template Messages","href":"/he/api-reference/webhooks/chat-events/chat-unsubscribed"},{"title":"Chat Subscribed to Template Messages","href":"/he/api-reference/webhooks/chat-events/chat-subscribed"},{"title":"Chat Taken","href":"/he/api-reference/webhooks/chat-events/chat-taken"},{"title":"Chat Pending","href":"/he/api-reference/webhooks/chat-events/chat-pending"},{"title":"Chat Resolved","href":"/he/api-reference/webhooks/chat-events/chat-resolved"},{"title":"Chat Resolved by Bot","href":"/he/api-reference/webhooks/chat-events/chat-resolved-by-bot"},{"title":"Chat Resolved by Agent","href":"/he/api-reference/webhooks/chat-events/chat-resolved-by-agent"},{"title":"Chat Labels Changed","href":"/he/api-reference/webhooks/chat-events/chat-labels-changed"},{"title":"Specific Label Added to Chat","href":"/he/api-reference/webhooks/chat-events/specific-label-added"},{"title":"External Bot Enabled","href":"/he/api-reference/webhooks/chat-events/external-bot-enabled"},{"title":"External Bot Disabled","href":"/he/api-reference/webhooks/chat-events/external-bot-disabled"}]},{"group":"Channel Health Events","icon":"activity","pages":[{"title":"Channel Health Problem Created","href":"/he/api-reference/webhooks/channel-health-events/channel-health-problem-created"},{"title":"Channel Health Problem Resolved","href":"/he/api-reference/webhooks/channel-health-events/channel-health-problem-resolved"}]}]},{"group":"Objects","icon":"box","pages":[{"title":"The Chat object","href":"/he/api-reference/objects/chat"},{"title":"The Message object","href":"/he/api-reference/objects/message"},{"title":"The Template object","href":"/he/api-reference/objects/template"},{"title":"The Problem object","href":"/he/api-reference/objects/problem"},{"title":"The Label object","href":"/he/api-reference/objects/label"},{"title":"The Chat Note object","href":"/he/api-reference/objects/chat-note"},{"title":"The Scenario object","href":"/he/api-reference/objects/scenario"},{"title":"The Scenario Run object","href":"/he/api-reference/objects/scenario-run"},{"title":"The Quick Reply object","href":"/he/api-reference/objects/quick-reply"}]}]},{"tab":"דוקומנטציית בוט","icon":"book-a","href":"https://whatsper.github.io/texterdocs/"},{"tab":"Changelog","icon":"timeline","href":"https://docs.texterchat.com/changelog/"}]},{"language":"en","navbar":{"links":[],"primary":{"type":"button","label":"Support","href":"https://wa.me/972586640430"}},"pages":[{"title":"en","href":"/api-reference/messages/send-a-message-to-chat"}]}]},"basePath":"","title":"Send a Message to Chat - Texterchat","buildId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","deploymentId":"dpl_5joLUXmnJgwqjrHAS4dxZrQTdxgh","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DPDWPCdE.js","utils-DyjUHyLo.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BWYE1cdS.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-COAzxpEw.js","snippetPresets-DNiD_S52.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-CjwVt80x.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-ByHQMk7z.js","shallow-CaZuw1AO.js","getApiPlaygroundDisplay-DPVPOknm.js","CodeSnippet-B31CH-Mp.js","CodeSnippets-BxTYZWz6.js","Page-DDHbuAIY.js","getPastedJson-DhoAwiNO.js","icon-Dhq8z75J.js","MethodPill-DLXmKOwr.js","DuplicateIcon-jzdVwyRU.js","createIcon-eD0b3klN.js","DynamicMarkdown-BfddVCX7.js","SectionHeading-2pSCIo17.js","axios-vUo_bRtp.js","Markdown-DsWjhwJ4.js","clsx-B2t_mZQG.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CUljsAY7.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-Cf70306N.js"]}