{
"status": 503,
"detail": "instance not available"
}
Messages
Send a text message
Send a text message to a WhatsApp contact or group. The response contains the message ID, which can be used later for reply, edit, delete, star, and other actions.
{
"status": 503,
"detail": "instance not available"
}
Authorizations
X-Api-Key
string
header
required
Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.
Headers
X-Instance-Id
string
default:{{instanceId}}
required
The ID of the WhatsApp instance to use
Body
application/json
to
string
required
Recipient JID (user or group)
text
string
required
Message text
mentions
string[]
JIDs of mentioned users
replyTo
string
Message ID to reply to
replyToSenderId
string
Sender JID of the message being replied to
isForwarded
boolean
Mark message as forwarded
ephemeralExpiration
enum<string>
Disappearing message timer
Available options:
off,
24h,
7d,
90d
Response
Resource created
id
string
ID of the created resource
⌘I
{"docsConfig":{"theme":"linden","$schema":"https://mintlify.com/docs.json","name":"WSAPI Docs","description":"Documentation for WSAPI - Open-Source WhatsApp API","colors":{"primary":"#17753a","light":"#25D366","dark":"#17753a"},"logo":{"light":"https://mintcdn.com/wsapi/fNFs11a02_2YR4nU/logo/light.svg?fit=max\u0026auto=format\u0026n=fNFs11a02_2YR4nU\u0026q=85\u0026s=33629b39555f35a3fd74954a0834740b","dark":"https://mintcdn.com/wsapi/fNFs11a02_2YR4nU/logo/dark.svg?fit=max\u0026auto=format\u0026n=fNFs11a02_2YR4nU\u0026q=85\u0026s=174813e7ed96ec4f35a46b0f4a5d57cf","href":"https://wsapi.chat"},"favicon":"https://mintcdn.com/wsapi/fNFs11a02_2YR4nU/favicon.svg?fit=max\u0026auto=format\u0026n=fNFs11a02_2YR4nU\u0026q=85\u0026s=df3cdbf6a0e2294e23e5346d08b31ed7","api":{"openapi":"openapi/wsapi-api.yaml","playground":{"display":"interactive"},"examples":{"languages":["bash","python","javascript","csharp"]}},"appearance":{"default":"dark"},"background":{"color":{"light":"#f6eed8","dark":"#050d0a"}},"navbar":{"links":[{"href":"https://github.com/wsapi-chat/wsapi-app","type":"github"}],"primary":{"type":"button","label":"Get Started","href":"https://wsapi.chat"}},"footer":{"socials":{"github":"https://github.com/wsapi-chat/wsapi-app","website":"https://wsapi.chat"}},"fonts":{"family":"Courier Prime"},"integrations":{"ga4":{"measurementId":"G-6W5YVX2ZC4"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"wsapi","hasAudioNarration":false,"actualSubdomain":"wsapi","customDomains":["docs.wsapi.chat"],"gitSource":{"type":"github","owner":"marianodrzazga","repo":"wsapi-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10d5ac9ffae5051c40cff7"},"entitlements":{},"buildId":"6b07386ab4d0553e5911fd6b","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"API Reference","count":122},{"language":"default","tag":"Endpoints","count":120},{"language":"default","tag":"Events","count":45},{"language":"default","tag":"Messages","count":24},{"language":"default","tag":"Groups","count":21},{"language":"default","tag":"Chats","count":19},{"language":"default","tag":"Communities","count":16},{"language":"default","tag":"Documentation","count":14},{"language":"default","tag":"Session","count":14},{"language":"default","tag":"Account","count":13}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[{"filePath":"custom.css","content":":root{--w-wall: #050d0a;--w-ink: #f4ead2;--w-dim: #c4b89c;--w-faint: #8f856e;--w-line: rgba(244, 234, 210, 0.14);--w-green: #25d366;--w-link: #8fe9b1;--w-beige: #e3c38d;--w-beige-lo: #8f6a3f;--w-panel: #0b1611;--w-code: \"JetBrains Mono\", \"Geist Mono\", ui-monospace, SFMono-Regular, Menlo, monospace}html:not(.dark){--w-ink: #17251a;--w-dim: #3f4d41;--w-faint: #6b6a58;--w-line: rgba(23, 37, 26, 0.18);--w-link: #136a33;--w-panel: #efe5ca}body{color:var(--w-dim)}#content-area,#sidebar,#table-of-contents{font-size:1rem}#content-area p,#content-area li,#content-area td{color:var(--w-dim)}#content-area strong,#content-area th{color:var(--w-ink)}#page-title,#content-area h1,#content-area h2,#content-area h3,#content-area h4{color:var(--w-ink);font-weight:700;letter-spacing:-0.035em;word-break:normal;overflow-wrap:break-word}#page-title{font-size:clamp(1.8rem, 3vw, 2.2rem);line-height:1.1}#content-area h2{font-size:1.6rem;line-height:1.15}#content-area h3{font-size:1.25rem}.eyebrow{display:none}#content-area a:not(.card):not([data-component-part]):not(.group\\/link){color:var(--w-link);font-weight:700;border-bottom:0;text-decoration:underline dashed;text-decoration-thickness:1.5px;text-underline-offset:5px}#content-area a:not(.card):not([data-component-part]):not(.group\\/link):hover{text-decoration-style:solid}code,pre,.font-mono,[data-component-part=\"code-block-root\"]{font-family:var(--w-code)!important}#content-area code:not(pre code){color:var(--w-ink);background:rgba(244, 234, 210, 0.1);border:0;border-radius:4px;padding:0.12em 0.4em;font-size:0.86em}html:not(.dark) #content-area code:not(pre code){background:rgba(23, 37, 26, 0.09)}.code-block,.code-group{border-color:var(--w-line)!important}#navbar::after{content:\"\";position:absolute;left:0;right:0;bottom:0;height:2px;background:rgba(227, 195, 141, 0.55);pointer-events:none;z-index:1}html:not(.dark) #navbar::after{background:rgba(143, 106, 63, 0.55)}#navbar a{font-weight:700}#navbar .nav-tabs-item,#navbar a.whitespace-nowrap{font-size:0.95rem;text-shadow:none!important;color:var(--w-dim)}#navbar .nav-tabs-item:hover,#navbar a.whitespace-nowrap:hover{color:var(--w-ink)}#navbar .nav-tabs-item[class*=\"text-shadow\"]{color:var(--w-ink)}html:not(.dark) #navbar{-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}#topbar-cta-button a{display:inline-flex;align-items:center;align-self:center;height:2.1rem;padding:0 0.85rem;border:1.5px solid #6a9443;border-radius:7px;background:#6a9443;color:#1b2a10!important;font-size:0.9rem;font-weight:700;transition:background-color 0.15s, border-color 0.15s}#topbar-cta-button a:hover{background:#7fa955;border-color:#7fa955}#topbar-cta-button a:active{transform:translateY(1px)}#topbar-cta-button a svg{display:none}#sidebar-title,#sidebar .sidebar-group-header,#sidebar h5{color:var(--w-ink);font-weight:700}#sidebar a,#table-of-contents a{color:var(--w-dim)}#sidebar a:hover,#table-of-contents a:hover{color:var(--w-ink)}html.dark #sidebar a.text-primary,html.dark #table-of-contents a.text-primary{color:var(--w-green)}html:not(.dark) #sidebar a.text-primary,html:not(.dark) #table-of-contents a.text-primary{color:#136a33}.step [data-component-part=\"step-number\"]>div{border-radius:6px;width:1.9rem;height:1.9rem;padding-bottom:0.3rem;margin-left:-1px;background:linear-gradient(var(--w-beige) 0 78%, var(--w-beige-lo) 78%);box-shadow:inset 0 0 0 1px rgba(255, 244, 214, 0.55), 0 3px 5px rgba(0, 0, 0, 0.45);color:#4a3319;font-size:0.9rem;font-weight:700}.step [data-component-part=\"step-line\"]{background:var(--w-line)}.step [data-component-part=\"step-title\"],.step [data-component-part=\"step-title\"] *{color:var(--w-ink)!important;font-weight:700}.card{border-radius:6px;border-color:var(--w-line);background:var(--w-panel)}.card h2,.card [data-component-part=\"card-title\"]{color:var(--w-ink);font-weight:700}.callout{border-radius:6px}#content-area table{border-color:var(--w-line)}#content-area th,#content-area td{border-color:var(--w-line)}#footer,#pagination{border-color:var(--w-line)}::selection{background:rgba(37, 211, 102, 0.4);color:#fff}:root{--w-track: #050d0a;--w-scroll: rgba(244, 234, 210, 0.24);--w-scroll-hover: rgba(244, 234, 210, 0.42)}html:not(.dark){--w-track: #f6eed8;--w-scroll: rgba(23, 37, 26, 0.26);--w-scroll-hover: rgba(23, 37, 26, 0.45)}html{background-color:var(--w-track)}*{scrollbar-color:var(--w-scroll) var(--w-track)}*::-webkit-scrollbar{width:10px;height:10px;background:var(--w-track)}*::-webkit-scrollbar-track,*::-webkit-scrollbar-corner{background:var(--w-track)}*::-webkit-scrollbar-thumb{background:var(--w-scroll);border-radius:999px;border:2px solid var(--w-track)}*::-webkit-scrollbar-thumb:hover{background:var(--w-scroll-hover)}"}]}
{"page":{"pagePath":"api-reference/messages/send-a-text-message","slug":"/api-reference/messages/send-a-text-message","pageMetadata":{"title":"Send a text message","description":"Send a text message to a WhatsApp contact or group. The response contains the message ID, which can be used later for reply, edit, delete, star, and other actions.","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/text","href":"/api-reference/messages/send-a-text-message","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Send a text message to a WhatsApp contact or group. The response contains the message ID, which can be used later for reply, edit, delete, star, and other actions.\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}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 text message","description":"Send a text message to a WhatsApp contact or group. The response contains the message ID, which can be used later for reply, edit, delete, star, and other actions.","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/text","href":"/api-reference/messages/send-a-text-message","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Messages"],"summary":"Send a text message","description":"Send a text message to a WhatsApp contact or group. The response contains the message ID, which can be used later for reply, edit, delete, star, and other actions.","operationId":"sendText","parameters":["928b3d60-4107-40ff-9655-c1eca026d667"],"requestBody":"c278973f-20d1-42fc-b4b9-c16bfb60e0dd","responses":{"201":"dbdb8e04-53cf-4d38-8e52-ab06bce4de82","400":"13d8dbec-e9d2-4fa7-b49e-980370e471a5","401":"d8ada903-a1bd-4fae-acf3-f9bac6c8ce13","409":"de480489-ed1c-4fd3-806d-f6070f4b4afe","503":"06c6ad0d-e08d-4f9f-90d7-94bdd6729712"},"method":"post","type":"path","servers":["5a53fd87-3b2e-45f4-bac9-448b0a8757f5"],"security":["4894c8f7-f836-4ac2-842c-95ad5593095d"],"path":"/messages/text","baseUrlOptions":["https://api.wsapi.chat"],"title":"Send a text message","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","csharp"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"928b3d60-4107-40ff-9655-c1eca026d667":{"name":"X-Instance-Id","in":"header","required":true,"description":"The ID of the WhatsApp instance to use","schema":{"type":"string","default":"{{instanceId}}","isRequired":true,"description":"The ID of the WhatsApp instance to use","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["to","text"],"properties":{"to":{"type":"string","description":"Recipient JID (user or group)","isRequired":true,"uniqueKey":"to","typeLabel":"string"},"text":{"type":"string","description":"Message text","isRequired":true,"uniqueKey":"text","typeLabel":"string"},"mentions":{"type":"array","items":{"type":"string","uniqueKey":"mentions.items.[INDEX]","typeLabel":"string"},"description":"JIDs of mentioned users","uniqueKey":"mentions","typeLabel":"string[]"},"replyTo":{"type":"string","description":"Message ID to reply to","uniqueKey":"replyTo","typeLabel":"string"},"replyToSenderId":{"type":"string","description":"Sender JID of the message being replied to","uniqueKey":"replyToSenderId","typeLabel":"string"},"isForwarded":{"type":"boolean","description":"Mark message as forwarded","uniqueKey":"isForwarded","typeLabel":"boolean"},"ephemeralExpiration":{"type":"string","enum":["off","24h","7d","90d"],"description":"Disappearing message timer","uniqueKey":"ephemeralExpiration","typeLabel":"enum\u003cstring>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"simpleMessage":{"title":"simpleMessage","summary":"Plain text message","value":{"to":"1234567890@s.whatsapp.net","text":"Hello world!"}},"withMentions":{"title":"withMentions","summary":"Text with user mention","value":{"to":"1234567890@g.us","text":"Hi @1234567890","mentions":["1234567890@s.whatsapp.net"]}},"reply":{"title":"reply","summary":"Reply to a previous message","value":{"to":"1234567890@s.whatsapp.net","text":"On it!","replyTo":"01234567890123456","replyToSenderId":"1234567890:12@s.whatsapp.net"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"dbdb8e04-53cf-4d38-8e52-ab06bce4de82":{"description":"Resource created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"ID of the created resource","uniqueKey":"id","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"id":"01234567890123456"},"examples":{"Example":{"title":"Example","value":{"id":"01234567890123456"}}},"exampleType":"examples"}},"exampleType":"examples"},"13d8dbec-e9d2-4fa7-b49e-980370e471a5":{"description":"Bad request","content":{"application/json":{"schema":{"type":"object","description":"Standard error response returned by all API endpoints","required":["detail","status"],"properties":{"detail":{"type":"string","description":"Human-readable error message","example":"invalid request body","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status code","example":400,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":400,"detail":"invalid request body"},"examples":{"Example":{"title":"Example","value":{"status":400,"detail":"invalid request body"}}},"exampleType":"examples"}},"exampleType":"examples"},"d8ada903-a1bd-4fae-acf3-f9bac6c8ce13":{"description":"Authentication failed","content":{"application/json":{"schema":{"type":"object","description":"Standard error response returned by all API endpoints","required":["detail","status"],"properties":{"detail":{"type":"string","description":"Human-readable error message","example":"invalid request body","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status code","example":400,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":401,"detail":"unauthorized"},"examples":{"Example":{"title":"Example","value":{"status":401,"detail":"unauthorized"}}},"exampleType":"examples"}},"exampleType":"examples"},"de480489-ed1c-4fd3-806d-f6070f4b4afe":{"description":"Device is not paired. Complete the pairing process first.","content":{"application/json":{"schema":{"type":"object","description":"Standard error response returned by all API endpoints","required":["detail","status"],"properties":{"detail":{"type":"string","description":"Human-readable error message","example":"invalid request body","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status code","example":400,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":409,"detail":"device not paired"},"examples":{"Example":{"title":"Example","value":{"status":409,"detail":"device not paired"}}},"exampleType":"examples"}},"exampleType":"examples"},"06c6ad0d-e08d-4f9f-90d7-94bdd6729712":{"description":"Instance not available (not connected or service is nil)","content":{"application/json":{"schema":{"type":"object","description":"Standard error response returned by all API endpoints","required":["detail","status"],"properties":{"detail":{"type":"string","description":"Human-readable error message","example":"invalid request body","isRequired":true,"uniqueKey":"detail","typeLabel":"string"},"status":{"type":"integer","description":"HTTP status code","example":400,"isRequired":true,"uniqueKey":"status","typeLabel":"integer"}},"uniqueKey":"","typeLabel":"object"},"example":{"status":503,"detail":"instance not available"},"examples":{"Example":{"title":"Example","value":{"status":503,"detail":"instance not available"}}},"exampleType":"examples"}},"exampleType":"examples"}},"security":{"4894c8f7-f836-4ac2-842c-95ad5593095d":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.","scopes":[],"schemeName":"ApiKeyAuth"}}},"servers":{"5a53fd87-3b2e-45f4-bac9-448b0a8757f5":{"url":"https://api.wsapi.chat","description":"WSAPI API"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-Api-Key","description":"Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.","scopes":[],"schemeName":"ApiKeyAuth"},"schema":{"title":"X-Api-Key","type":"string","description":"Instance or customer-level API key. Either the instance's own API key or the customer's API key is accepted. Must be paired with the X-Instance-Id header to identify the target instance.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-Api-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"openapi/wsapi-api.yaml"},"subdomain":"wsapi","siteName":"WSAPI Docs","title":"Send a text message - WSAPI Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-25T19:35:48.274Z","originalFileLocation":"api-reference/messages/send-a-text-message.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}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 text message to a WhatsApp contact or group. The response contains the message ID, which can be used later for reply, edit, delete, star, and other actions.\">\u003cmeta data-mint-head name=\"application-name\" content=\"WSAPI Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/wsapi/FCf4ui-10c9VRiJ-/_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/wsapi/FCf4ui-10c9VRiJ-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/wsapi/FCf4ui-10c9VRiJ-/_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/wsapi/FCf4ui-10c9VRiJ-/_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/wsapi/FCf4ui-10c9VRiJ-/_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/wsapi/FCf4ui-10c9VRiJ-/_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/wsapi/FCf4ui-10c9VRiJ-/_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/wsapi/FCf4ui-10c9VRiJ-/_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/wsapi/FCf4ui-10c9VRiJ-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Send a text message - WSAPI Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Send a text message to a WhatsApp contact or group. The response contains the message ID, which can be used later for reply, edit, delete, star, and other actions.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"WSAPI Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.wsapi.chat/api-reference/messages/send-a-text-message\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://wsapi.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=Send+a+text+message\u0026amp;description=Send+a+text+message+to+a+WhatsApp+contact+or+group.+The+response+contains+the+message+ID%2C+which+can+be+used+later+for+reply%2C+edit%2C+delete%2C+star%2C+and+other+actio\u0026amp;theme=522c0613ae2213fa6b20e543\u0026amp;signature=f9a3e46dbd67c4a2671f261fbf4545a5b354709ad9bf98f9350e8cdcf4b730c2\">\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 text message - WSAPI Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Send a text message to a WhatsApp contact or group. The response contains the message ID, which can be used later for reply, edit, delete, star, and other actions.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://wsapi.mintlify.site/_mintlify/api/og/v2?division=Messages\u0026amp;title=Send+a+text+message\u0026amp;description=Send+a+text+message+to+a+WhatsApp+contact+or+group.+The+response+contains+the+message+ID%2C+which+can+be+used+later+for+reply%2C+edit%2C+delete%2C+star%2C+and+other+actio\u0026amp;theme=522c0613ae2213fa6b20e543\u0026amp;signature=f9a3e46dbd67c4a2671f261fbf4545a5b354709ad9bf98f9350e8cdcf4b730c2\">\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/wsapi/FCf4ui-10c9VRiJ-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"WSAPI Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#17753a\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.wsapi.chat/api-reference/messages/send-a-text-message\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/messages/send-a-text-message.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.wsapi.chat/#organization\",\"name\":\"WSAPI Docs\",\"url\":\"https://docs.wsapi.chat\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/wsapi/fNFs11a02_2YR4nU/logo/light.svg?fit=max\u0026auto=format\u0026n=fNFs11a02_2YR4nU\u0026q=85\u0026s=33629b39555f35a3fd74954a0834740b\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.wsapi.chat#website\",\"name\":\"WSAPI Docs\",\"url\":\"https://docs.wsapi.chat\",\"publisher\":{\"@id\":\"https://docs.wsapi.chat/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.wsapi.chat/api-reference/messages/send-a-text-message#webpage\",\"url\":\"https://docs.wsapi.chat/api-reference/messages/send-a-text-message\",\"name\":\"Send a text message\",\"description\":\"Send a text message to a WhatsApp contact or group. The response contains the message ID, which can be used later for reply, edit, delete, star, and other actions.\",\"dateModified\":\"2026-11-25T19:35:48.274Z\",\"isPartOf\":{\"@id\":\"https://docs.wsapi.chat#website\"},\"breadcrumb\":{\"@id\":\"https://docs.wsapi.chat/api-reference/messages/send-a-text-message#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.wsapi.chat/api-reference/messages/send-a-text-message#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.wsapi.chat/api-reference/account/list-all-instances\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Send a text message\",\"item\":\"https://docs.wsapi.chat/api-reference/messages/send-a-text-message\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.wsapi.chat/api-reference/messages/send-a-text-message#apireference\",\"headline\":\"Send a text message\",\"name\":\"Send a text message\",\"description\":\"Send a text message to a WhatsApp contact or group. The response contains the message ID, which can be used later for reply, edit, delete, star, and other actions.\",\"url\":\"https://docs.wsapi.chat/api-reference/messages/send-a-text-message\",\"mainEntityOfPage\":{\"@id\":\"https://docs.wsapi.chat/api-reference/messages/send-a-text-message#webpage\"},\"dateModified\":\"2026-11-25T19:35:48.274Z\",\"publisher\":{\"@id\":\"https://docs.wsapi.chat/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.wsapi.chat#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"WSAPI Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"WSAPI Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/messages/send-a-text-message.md","siteName":"WSAPI Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/getting-started/quickstart"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/overview"}]},{"group":"Reference","pages":[{"title":"Buttons and lists","href":"/api-reference/interactive-messages"}]},{"group":"Endpoints","pages":[{"group":"Account","pages":[{"title":"List all instances","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /account/instances","href":"/api-reference/account/list-all-instances"},{"title":"Get instance detail","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /account/instances/{id}","href":"/api-reference/account/get-instance-detail"},{"title":"Update instance name","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /account/instances/{id}/name","href":"/api-reference/account/update-instance-name"},{"title":"Update instance settings","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /account/instances/{id}/settings","href":"/api-reference/account/update-instance-settings"},{"title":"Regenerate instance API key","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /account/instances/{id}/apikey","href":"/api-reference/account/regenerate-instance-api-key"},{"title":"Restart instance","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /account/instances/{id}/restart","href":"/api-reference/account/restart-instance"},{"title":"List subscriptions","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /account/subscriptions","href":"/api-reference/account/list-subscriptions"},{"title":"List subscription instances","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /account/subscriptions/{id}/instances","href":"/api-reference/account/list-subscription-instances"},{"title":"Create instance","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /account/subscriptions/{id}/instances","href":"/api-reference/account/create-instance"},{"title":"Delete instance","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml delete /account/subscriptions/{id}/instances/{instanceId}","href":"/api-reference/account/delete-instance"},{"title":"Subscription change audit log","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /account/subscriptions/{id}/changes","href":"/api-reference/account/subscription-change-audit-log"},{"title":"Get instance defaults","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /account/instances/defaults","href":"/api-reference/account/get-instance-defaults"},{"title":"Update instance defaults","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /account/instances/defaults","href":"/api-reference/account/update-instance-defaults"}]},{"group":"Session","pages":[{"title":"Get QR code for pairing","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /session/qr","href":"/api-reference/session/get-qr-code-for-pairing"},{"title":"Get QR code as text","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /session/qr/text","href":"/api-reference/session/get-qr-code-as-text"},{"title":"Get pair code for phone number","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /session/pair-code/{phone}","href":"/api-reference/session/get-pair-code-for-phone-number"},{"title":"Get session status","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /session/status","href":"/api-reference/session/get-session-status"},{"title":"Get passkey verification state","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /session/passkey","href":"/api-reference/session/get-passkey-verification-state"},{"title":"Submit passkey assertion","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /session/passkey","href":"/api-reference/session/submit-passkey-assertion"},{"title":"Request passkey challenge","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /session/passkey/request","href":"/api-reference/session/request-passkey-challenge"},{"title":"Confirm passkey pairing code","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /session/passkey/confirm","href":"/api-reference/session/confirm-passkey-pairing-code"},{"title":"Logout from WhatsApp","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /session/logout","href":"/api-reference/session/logout-from-whatsapp"},{"title":"Flush cached history sync messages","description":"Returns 202 Accepted immediately, then asynchronously publishes cached history sync\nmessages as `message_history_sync` events (one per chat, chunked at 500 messages).\nThe consumer should call this endpoint after receiving the `initial_sync_finished` event,\nwhich is only emitted when `historySync` is enabled and fires after the RECENT history\nsync completes and all messages have been cached.\nRequires the instance to have `historySync` enabled and the device to be paired.\nCached messages expire after 1 hour.\n","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /session/flush-history","href":"/api-reference/session/flush-cached-history-sync-messages"}]},{"group":"Messages","pages":[{"title":"Send a text message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/text","href":"/api-reference/messages/send-a-text-message"},{"title":"Send an image message","description":"Send an image message via URL or base64-encoded data. The response contains the message ID.","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/image","href":"/api-reference/messages/send-an-image-message"},{"title":"Send a video message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/video","href":"/api-reference/messages/send-a-video-message"},{"title":"Send an audio message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/audio","href":"/api-reference/messages/send-an-audio-message"},{"title":"Send a voice message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/voice","href":"/api-reference/messages/send-a-voice-message"},{"title":"Send a document message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/document","href":"/api-reference/messages/send-a-document-message"},{"title":"Send a sticker message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/sticker","href":"/api-reference/messages/send-a-sticker-message"},{"title":"Send a contact card","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/contact","href":"/api-reference/messages/send-a-contact-card"},{"title":"Send a location message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/location","href":"/api-reference/messages/send-a-location-message"},{"title":"Send a link preview message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/link","href":"/api-reference/messages/send-a-link-preview-message"},{"title":"Send a buttons message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/buttons","href":"/api-reference/messages/send-a-buttons-message"},{"title":"Send a list message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/list","href":"/api-reference/messages/send-a-list-message"},{"title":"React to a message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/{messageId}/reaction","href":"/api-reference/messages/react-to-a-message"},{"title":"Edit a sent message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/{messageId}/edit","href":"/api-reference/messages/edit-a-sent-message"},{"title":"Mark a message as read","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/{messageId}/read","href":"/api-reference/messages/mark-a-message-as-read"},{"title":"Star or unstar a message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/{messageId}/star","href":"/api-reference/messages/star-or-unstar-a-message"},{"title":"Pin or unpin a message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/{messageId}/pin","href":"/api-reference/messages/pin-or-unpin-a-message"},{"title":"Delete a message for everyone","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/{messageId}/delete","href":"/api-reference/messages/delete-a-message-for-everyone"},{"title":"Delete a message for me only","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /messages/{messageId}/delete-for-me","href":"/api-reference/messages/delete-a-message-for-me-only"}]},{"group":"Groups","pages":[{"title":"List joined groups","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /groups","href":"/api-reference/groups/list-joined-groups"},{"title":"Create a new group","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /groups","href":"/api-reference/groups/create-a-new-group"},{"title":"Get group info","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /groups/{id}","href":"/api-reference/groups/get-group-info"},{"title":"Set group name","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /groups/{id}/name","href":"/api-reference/groups/set-group-name"},{"title":"Set group description","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /groups/{id}/description","href":"/api-reference/groups/set-group-description"},{"title":"Set group picture","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /groups/{id}/picture","href":"/api-reference/groups/set-group-picture"},{"title":"Leave a group","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /groups/{id}/leave","href":"/api-reference/groups/leave-a-group"},{"title":"Get group participants","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /groups/{id}/participants","href":"/api-reference/groups/get-group-participants"},{"title":"Update group participants","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /groups/{id}/participants","href":"/api-reference/groups/update-group-participants"},{"title":"Get group invite link","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /groups/{id}/invite-link","href":"/api-reference/groups/get-group-invite-link"},{"title":"Reset group invite link","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /groups/{id}/invite-link/reset","href":"/api-reference/groups/reset-group-invite-link"},{"title":"Set group announce mode","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /groups/{id}/settings/announce","href":"/api-reference/groups/set-group-announce-mode"},{"title":"Set group locked mode","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /groups/{id}/settings/locked","href":"/api-reference/groups/set-group-locked-mode"},{"title":"Set group join approval mode","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /groups/{id}/settings/join-approval","href":"/api-reference/groups/set-group-join-approval-mode"},{"title":"Set member add mode","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /groups/{id}/settings/member-add-mode","href":"/api-reference/groups/set-member-add-mode"},{"title":"Join a group via invite link","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /groups/join/link","href":"/api-reference/groups/join-a-group-via-invite-link"},{"title":"Join a group via invite message","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /groups/join/invite","href":"/api-reference/groups/join-a-group-via-invite-message"},{"title":"Get group info from invite code","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /groups/invite/{code}","href":"/api-reference/groups/get-group-info-from-invite-code"},{"title":"Get pending join requests","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /groups/{id}/requests","href":"/api-reference/groups/get-pending-join-requests"},{"title":"Approve or reject join requests","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /groups/{id}/requests","href":"/api-reference/groups/approve-or-reject-join-requests"}]},{"group":"Communities","pages":[{"title":"List joined communities","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /communities","href":"/api-reference/communities/list-joined-communities"},{"title":"Create a new community","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /communities","href":"/api-reference/communities/create-a-new-community"},{"title":"Get community info","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /communities/{id}","href":"/api-reference/communities/get-community-info"},{"title":"Leave a community","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /communities/{id}/leave","href":"/api-reference/communities/leave-a-community"},{"title":"Set community name","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /communities/{id}/name","href":"/api-reference/communities/set-community-name"},{"title":"Set community description","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /communities/{id}/description","href":"/api-reference/communities/set-community-description"},{"title":"Set community picture","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /communities/{id}/picture","href":"/api-reference/communities/set-community-picture"},{"title":"Set community locked mode","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /communities/{id}/settings/locked","href":"/api-reference/communities/set-community-locked-mode"},{"title":"Get community participants","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /communities/{id}/participants","href":"/api-reference/communities/get-community-participants"},{"title":"Update community admins","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /communities/{id}/participants","href":"/api-reference/communities/update-community-admins"},{"title":"Get community invite link","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /communities/{id}/invite-link","href":"/api-reference/communities/get-community-invite-link"},{"title":"Reset community invite link","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /communities/{id}/invite-link/reset","href":"/api-reference/communities/reset-community-invite-link"},{"title":"Get community sub-groups","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /communities/{id}/groups","href":"/api-reference/communities/get-community-sub-groups"},{"title":"Create a group within a community","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /communities/{id}/groups","href":"/api-reference/communities/create-a-group-within-a-community"},{"title":"Link an existing group to a community","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /communities/{id}/groups/link","href":"/api-reference/communities/link-an-existing-group-to-a-community"},{"title":"Unlink a group from a community","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml delete /communities/{id}/groups/{groupId}","href":"/api-reference/communities/unlink-a-group-from-a-community"}]},{"group":"Contacts","pages":[{"title":"List all contacts","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /contacts","href":"/api-reference/contacts/list-all-contacts"},{"title":"Create or update a contact","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /contacts","href":"/api-reference/contacts/create-or-update-a-contact"},{"title":"Sync contacts from WhatsApp","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /contacts/sync","href":"/api-reference/contacts/sync-contacts-from-whatsapp"},{"title":"Get a specific contact","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /contacts/{id}","href":"/api-reference/contacts/get-a-specific-contact"},{"title":"Get blocked contacts","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /contacts/blocklist","href":"/api-reference/contacts/get-blocked-contacts"},{"title":"Block a contact","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /contacts/{id}/block","href":"/api-reference/contacts/block-a-contact"},{"title":"Unblock a contact","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /contacts/{id}/unblock","href":"/api-reference/contacts/unblock-a-contact"}]},{"group":"Users","pages":[{"title":"Get own profile info","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /users/me/profile","href":"/api-reference/users/get-own-profile-info"},{"title":"Update own profile","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /users/me/profile","href":"/api-reference/users/update-own-profile"},{"title":"Set presence state","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /users/me/presence","href":"/api-reference/users/set-presence-state"},{"title":"Get privacy settings","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /users/me/privacy","href":"/api-reference/users/get-privacy-settings"},{"title":"Update a privacy setting","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /users/me/privacy","href":"/api-reference/users/update-a-privacy-setting"},{"title":"Bulk check phone numbers on WhatsApp","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /users/check","href":"/api-reference/users/bulk-check-phone-numbers-on-whatsapp"},{"title":"Check if a phone number is on WhatsApp","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /users/{phone}/check","href":"/api-reference/users/check-if-a-phone-number-is-on-whatsapp"},{"title":"Get user profile info","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /users/{phone}/profile","href":"/api-reference/users/get-user-profile-info"}]},{"group":"Media","pages":[{"title":"Download media by ID","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /media/download","href":"/api-reference/media/download-media-by-id"}]},{"group":"Chats","pages":[{"title":"List all known chats","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /chats","href":"/api-reference/chats/list-all-known-chats"},{"title":"Get chat info","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /chats/{chatId}","href":"/api-reference/chats/get-chat-info"},{"title":"Delete a chat","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml delete /chats/{chatId}","href":"/api-reference/chats/delete-a-chat"},{"title":"Get chat profile picture","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /chats/{chatId}/picture","href":"/api-reference/chats/get-chat-profile-picture"},{"title":"Get business profile for a chat","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /chats/{chatId}/business","href":"/api-reference/chats/get-business-profile-for-a-chat"},{"title":"Send chat presence (typing, paused, recording)","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /chats/{chatId}/presence","href":"/api-reference/chats/send-chat-presence-typing-paused-recording"},{"title":"Subscribe to presence updates for a chat","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /chats/{chatId}/presence/subscribe","href":"/api-reference/chats/subscribe-to-presence-updates-for-a-chat"},{"title":"Set disappearing messages timer","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /chats/{chatId}/ephemeral","href":"/api-reference/chats/set-disappearing-messages-timer"},{"title":"Mute or unmute a chat","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /chats/{chatId}/mute","href":"/api-reference/chats/mute-or-unmute-a-chat"},{"title":"Pin or unpin a chat","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /chats/{chatId}/pin","href":"/api-reference/chats/pin-or-unpin-a-chat"},{"title":"Archive or unarchive a chat","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /chats/{chatId}/archive","href":"/api-reference/chats/archive-or-unarchive-a-chat"},{"title":"Mark a chat as read or unread","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /chats/{chatId}/read","href":"/api-reference/chats/mark-a-chat-as-read-or-unread"},{"title":"Request on-demand message history","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /chats/{chatId}/messages","href":"/api-reference/chats/request-on-demand-message-history"},{"title":"Clear all messages from a chat","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /chats/{chatId}/clear","href":"/api-reference/chats/clear-all-messages-from-a-chat"}]},{"group":"Calls","pages":[{"title":"Reject an incoming call","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /calls/{callId}/reject","href":"/api-reference/calls/reject-an-incoming-call"}]},{"group":"Newsletters","pages":[{"title":"List subscribed newsletters","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /newsletters","href":"/api-reference/newsletters/list-subscribed-newsletters"},{"title":"Create a newsletter","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /newsletters","href":"/api-reference/newsletters/create-a-newsletter"},{"title":"Get newsletter info by invite code","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /newsletters/invite/{code}","href":"/api-reference/newsletters/get-newsletter-info-by-invite-code"},{"title":"Get newsletter info","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /newsletters/{id}","href":"/api-reference/newsletters/get-newsletter-info"},{"title":"Subscribe or unsubscribe from a newsletter","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /newsletters/{id}/subscription","href":"/api-reference/newsletters/subscribe-or-unsubscribe-from-a-newsletter"},{"title":"Mute or unmute a newsletter","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml put /newsletters/{id}/mute","href":"/api-reference/newsletters/mute-or-unmute-a-newsletter"}]},{"group":"Status","pages":[{"title":"Get status privacy settings","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml get /status/privacy","href":"/api-reference/status/get-status-privacy-settings"},{"title":"Post a text status","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /status/text","href":"/api-reference/status/post-a-text-status"},{"title":"Post an image status","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /status/image","href":"/api-reference/status/post-an-image-status"},{"title":"Post a video status","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /status/video","href":"/api-reference/status/post-a-video-status"},{"title":"Delete a status update","deprecated":null,"version":null,"openapi":"/openapi/wsapi-api.yaml post /status/{messageId}/delete","href":"/api-reference/status/delete-a-status-update"}]}]}]},{"tab":"Events","pages":[{"title":"Events","href":"/events/overview"}]}]},"basePath":"","title":"Send a text message - WSAPI Docs","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CaRkHcld.js","snippetPresets-CbOVSLWB.js","utils-cjri0g4r.js","style-to-object-BY3JEAdk.js","utils-DINdUa17.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-B6z-PJGf.js","conditional-requirements-CFM0id0Q.js","cloneDeep-BldndzCM.js","_Uint8Array-BFUkDgJK.js","isObject-FP1Yky1u.js","ApiExamples-gah5G0c1.js","usePlaygroundInputsStore-DMbftGRK.js","shallow-BPuQ-dV8.js","isEqual-Du6c450V.js","CodeSnippets-BSVM0Ibi.js","CodeSnippet-BtGQRZnK.js","use-playground-group-access-98JyaSW7.js","Page-DuvGhd6e.js","api-description-markdown-ja0XM5Ae.js","DynamicMarkdown-DgKZ4_wp.js","SectionHeading-S4Jc_qPe.js","MethodPill-HIsDH_bI.js","getPastedJson-BKEmMYEO.js","Check2Icon-CRFAnWm9.js","axios-CsQoIw0U.js","Markdown-CexXCNoj.js","AssistantPageLink-C2AZnMAs.js","dist-CjxLTLs9.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}