Call the GOWA REST API from Node.js or the browser with fetch.
There is no official JavaScript SDK; use fetch (Node.js 18+).
const GOWA = "http://localhost:3000";const headers = { Authorization: "Basic " + Buffer.from("admin:changeme").toString("base64"), "X-Device-Id": "my-device",};async function call(method, path, body) { const res = await fetch(GOWA + path, { method, headers: body instanceof FormData ? headers : { ...headers, "Content-Type": "application/json" }, body: body instanceof FormData ? body : body && JSON.stringify(body), }); const data = await res.json(); if (!res.ok) throw Object.assign(new Error(data.message), { code: data.code, status: res.status }); return data.results;}// textawait call("POST", "/send/message", { phone: "628123456789", message: "Hello from JS" });// image uploadconst { openAsBlob } = await import("node:fs");const form = new FormData();form.append("phone", "628123456789");form.append("caption", "Photo");form.append("image", await openAsBlob("photo.jpg"), "photo.jpg");await call("POST", "/send/image", form);// read chatsconsole.log(await call("GET", "/chats?limit=10"));
In browsers, do not embed Basic Auth credentials in public pages; call GOWA from your backend, and set APP_CORS_ALLOWED_ORIGINS if a trusted front end must call it directly.For n8n, install the community node @aldinokemal2104/n8n-nodes-gowa.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"WhatsApp API MultiDevice","description":"GOWA official documentation","colors":{"primary":"#277C99","light":"#6FAFC8","dark":"#277C99"},"logo":{"light":"https://mintcdn.com/gowa-docs/tsQezhQWWuaGa128/images/gowa-logo.webp?fit=max\u0026auto=format\u0026n=tsQezhQWWuaGa128\u0026q=85\u0026s=b3f74808868781b289bf1c2d21b7b2a1","dark":"https://mintcdn.com/gowa-docs/tsQezhQWWuaGa128/images/gowa-logo.webp?fit=max\u0026auto=format\u0026n=tsQezhQWWuaGa128\u0026q=85\u0026s=b3f74808868781b289bf1c2d21b7b2a1"},"favicon":"https://mintcdn.com/gowa-docs/tsQezhQWWuaGa128/images/gowa-logo.webp?fit=max\u0026auto=format\u0026n=tsQezhQWWuaGa128\u0026q=85\u0026s=b3f74808868781b289bf1c2d21b7b2a1","api":{},"background":{"color":{"light":"#EFF4F6","dark":"#0B1318"}},"navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"Support"}],"primary":{"type":"button","label":"Try GOWA","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"footer":{"socials":{"github":"https://github.com/aldinokemal/go-whatsapp-web-multidevice"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":false},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice"}]},"languages":[{"language":"en","default":true,"href":""},{"language":"id","href":"id"},{"language":"cn","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"支持"}],"primary":{"type":"button","label":"试用 GOWA","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"href":"zh"},{"language":"tr","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"Destek"}],"primary":{"type":"button","label":"GOWA’yı deneyin","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"href":"tr"},{"language":"ru","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"Поддержка"}],"primary":{"type":"button","label":"Попробовать GOWA","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"href":"ru"},{"language":"ar","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"الدعم"}],"primary":{"type":"button","label":"جرّب GOWA","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"href":"ar"},{"language":"jp","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"サポート"}],"primary":{"type":"button","label":"GOWA を試す","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"href":"ja"},{"language":"es","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"Soporte"}],"primary":{"type":"button","label":"Probar GOWA","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"href":"es"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"gowa-docs","hasAudioNarration":false,"actualSubdomain":"gowa-docs","customDomains":[],"gitSource":{"type":"github","owner":"aldinokemal","repo":"gowa-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6ae20edac192c2fa84eb7c2d"},"feedback":{"issues":false,"edits":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6afd70315e3b11ff7dbd9ee9","clientVersion":"0.0.4270","searchFilterCounts":[{"language":"en","tag":"API Reference","count":118},{"language":"ar","tag":"مرجع API","count":118},{"language":"es","tag":"Referencia de la API","count":118},{"language":"id","tag":"Referensi API","count":118},{"language":"jp","tag":"API リファレンス","count":118},{"language":"ru","tag":"Справочник API","count":118},{"language":"tr","tag":"API Referansı","count":118},{"language":"cn","tag":"API 参考","count":118},{"language":"en","tag":"WhatsApp API","count":108},{"language":"ar","tag":"واجهة WhatsApp API","count":108},{"language":"es","tag":"API de WhatsApp","count":108},{"language":"id","tag":"API WhatsApp","count":108},{"language":"jp","tag":"WhatsApp API","count":108},{"language":"ru","tag":"API WhatsApp","count":108},{"language":"tr","tag":"WhatsApp API","count":108},{"language":"cn","tag":"WhatsApp API","count":108},{"language":"en","tag":"Guide","count":20},{"language":"en","tag":"group","count":20},{"language":"ar","tag":"الدليل","count":20},{"language":"ar","tag":"group","count":20},{"language":"es","tag":"Guía","count":20},{"language":"es","tag":"group","count":20},{"language":"id","tag":"Panduan","count":20},{"language":"id","tag":"group","count":20},{"language":"jp","tag":"ガイド","count":20},{"language":"jp","tag":"group","count":20},{"language":"ru","tag":"Руководство","count":20},{"language":"ru","tag":"group","count":20},{"language":"tr","tag":"Kılavuz","count":20},{"language":"tr","tag":"group","count":20},{"language":"cn","tag":"指南","count":20},{"language":"cn","tag":"group","count":20},{"language":"en","tag":"send","count":18},{"language":"ar","tag":"send","count":18},{"language":"es","tag":"send","count":18},{"language":"id","tag":"send","count":18},{"language":"jp","tag":"send","count":18},{"language":"ru","tag":"send","count":18},{"language":"tr","tag":"send","count":18},{"language":"cn","tag":"send","count":18},{"language":"en","tag":"app","count":12},{"language":"en","tag":"user","count":12},{"language":"ar","tag":"app","count":12},{"language":"ar","tag":"user","count":12},{"language":"es","tag":"app","count":12},{"language":"es","tag":"user","count":12},{"language":"id","tag":"app","count":12},{"language":"id","tag":"user","count":12},{"language":"jp","tag":"app","count":12},{"language":"jp","tag":"user","count":12},{"language":"ru","tag":"app","count":12},{"language":"ru","tag":"user","count":12},{"language":"tr","tag":"app","count":12},{"language":"tr","tag":"user","count":12},{"language":"cn","tag":"app","count":12},{"language":"cn","tag":"user","count":12},{"language":"en","tag":"device","count":11},{"language":"ar","tag":"device","count":11},{"language":"es","tag":"device","count":11},{"language":"id","tag":"device","count":11},{"language":"jp","tag":"device","count":11},{"language":"ru","tag":"device","count":11},{"language":"tr","tag":"device","count":11},{"language":"cn","tag":"device","count":11},{"language":"en","tag":"message","count":10},{"language":"en","tag":"newsletter","count":10},{"language":"ar","tag":"message","count":10},{"language":"ar","tag":"newsletter","count":10},{"language":"es","tag":"message","count":10},{"language":"es","tag":"newsletter","count":10},{"language":"id","tag":"message","count":10},{"language":"id","tag":"newsletter","count":10},{"language":"jp","tag":"message","count":10},{"language":"jp","tag":"newsletter","count":10},{"language":"ru","tag":"message","count":10},{"language":"ru","tag":"newsletter","count":10},{"language":"tr","tag":"message","count":10},{"language":"tr","tag":"newsletter","count":10},{"language":"cn","tag":"message","count":10},{"language":"cn","tag":"newsletter","count":10}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"site-roles","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":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"style.css","content":"html[lang=\"ar\"] :is(#content-container,#sidebar){direction:rtl;text-align:start}html[lang=\"ar\"] #content-container :is(pre,code,kbd){direction:ltr;text-align:start;unicode-bidi:isolate}"}]}
{"page":{"pagePath":"api-reference/sdks/javascript","slug":"/api-reference/sdks/javascript","pageMetadata":{"title":"JavaScript","description":"Call the GOWA REST API from Node.js or the browser with fetch.","href":"/api-reference/sdks/javascript"},"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: \"Call the GOWA REST API from Node.js or the browser with fetch.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`There is no official JavaScript SDK; use `,_jsx(_components.code,{children:`fetch`}),` (Node.js 18+).`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`30`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`30`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` GOWA`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"http://localhost:3000\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Authorization:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Basic \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Buffer`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`from`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"admin:changeme\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`toString`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"base64\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"X-Device-Id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"my-device\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`};`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`async`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` function`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` call`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`path`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` res`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`GOWA`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` +`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` path`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` instanceof`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FormData`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`...`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`headers`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Content-Type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` instanceof`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` FormData`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ?`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026\u0026`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` data`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`!`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ok`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`throw`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Object`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`assign`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Error`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`code`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` res`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`status`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`results`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// text`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` call`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/send/message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`phone:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"628123456789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`message:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Hello from JS\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// image upload`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`openAsBlob`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"node:fs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` form`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` FormData`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"phone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"628123456789\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"caption\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Photo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`append`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` openAsBlob`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"photo.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`), `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"photo.jpg\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` call`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/send/image\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// read chats`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` call`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GET\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"/chats?limit=10\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`));`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`In browsers, do not embed Basic Auth credentials in public pages; call GOWA from your backend, and set `,_jsx(_components.code,{children:`APP_CORS_ALLOWED_ORIGINS`}),` if a trusted front end must call it directly.`]}),`\n`,_jsxs(_components.p,{children:[`For `,_jsx(_components.strong,{children:`n8n`}),`, install the community node `,_jsx(_components.a,{href:`https://www.npmjs.com/package/@aldinokemal2104/n8n-nodes-gowa`,children:_jsx(_components.code,{children:`@aldinokemal2104/n8n-nodes-gowa`})}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"JavaScript","description":"Call the GOWA REST API from Node.js or the browser with fetch.","href":"/api-reference/sdks/javascript"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"gowa-docs","siteName":"WhatsApp API MultiDevice","title":"JavaScript - WhatsApp API MultiDevice","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/sdks/javascript","matchLevel":0},"id":{"href":"/id/api-reference/sdks/javascript","matchLevel":1},"cn":{"href":"/zh/api-reference/sdks/javascript","matchLevel":1},"tr":{"href":"/tr/api-reference/sdks/javascript","matchLevel":1},"ru":{"href":"/ru/api-reference/sdks/javascript","matchLevel":1},"ar":{"href":"/ar/api-reference/sdks/javascript","matchLevel":1},"jp":{"href":"/ja/api-reference/sdks/javascript","matchLevel":1},"es":{"href":"/es/api-reference/sdks/javascript","matchLevel":1}}},"lastModified":"2026-10-28T15:08:14.275Z","originalFileLocation":"api-reference/sdks/javascript.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Call the GOWA REST API from Node.js or the browser with fetch.\">\u003cmeta data-mint-head name=\"application-name\" content=\"WhatsApp API MultiDevice\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/gowa-docs/4a7FEkATcm1vbjD2/_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/gowa-docs/4a7FEkATcm1vbjD2/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/gowa-docs/4a7FEkATcm1vbjD2/_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/gowa-docs/4a7FEkATcm1vbjD2/_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/gowa-docs/4a7FEkATcm1vbjD2/_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/gowa-docs/4a7FEkATcm1vbjD2/_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/gowa-docs/4a7FEkATcm1vbjD2/_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/gowa-docs/4a7FEkATcm1vbjD2/_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/gowa-docs/4a7FEkATcm1vbjD2/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"JavaScript - WhatsApp API MultiDevice\">\u003cmeta data-mint-head property=\"og:description\" content=\"Call the GOWA REST API from Node.js or the browser with fetch.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"WhatsApp API MultiDevice\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://gowa-docs.mintlify.site/_mintlify/api/og/v2?division=Client+Examples\u0026amp;title=JavaScript\u0026amp;description=Call+the+GOWA+REST+API+from+Node.js+or+the+browser+with+fetch.\u0026amp;theme=f6c1b37b82c91dd56c3dd76c\u0026amp;signature=2e23bc2648feb1aed52ff6672e72af77ce98c960a9ecda104e65e923c2d529e4\">\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=\"JavaScript - WhatsApp API MultiDevice\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Call the GOWA REST API from Node.js or the browser with fetch.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gowa-docs.mintlify.site/_mintlify/api/og/v2?division=Client+Examples\u0026amp;title=JavaScript\u0026amp;description=Call+the+GOWA+REST+API+from+Node.js+or+the+browser+with+fetch.\u0026amp;theme=f6c1b37b82c91dd56c3dd76c\u0026amp;signature=2e23bc2648feb1aed52ff6672e72af77ce98c960a9ecda104e65e923c2d529e4\">\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/gowa-docs/4a7FEkATcm1vbjD2/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"WhatsApp API MultiDevice\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#277C99\">\u003clink data-mint-head rel=\"canonical\" href=\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/sdks/javascript.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"id\" href=\"https://gowa-docs.mintlify.app/id/api-reference/sdks/javascript\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://gowa-docs.mintlify.app/zh/api-reference/sdks/javascript\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"tr\" href=\"https://gowa-docs.mintlify.app/tr/api-reference/sdks/javascript\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ru\" href=\"https://gowa-docs.mintlify.app/ru/api-reference/sdks/javascript\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ar\" href=\"https://gowa-docs.mintlify.app/ar/api-reference/sdks/javascript\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"ja\" href=\"https://gowa-docs.mintlify.app/ja/api-reference/sdks/javascript\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"es\" href=\"https://gowa-docs.mintlify.app/es/api-reference/sdks/javascript\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://gowa-docs.mintlify.app/#organization\",\"name\":\"WhatsApp API MultiDevice\",\"url\":\"https://gowa-docs.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/gowa-docs/tsQezhQWWuaGa128/images/gowa-logo.webp?fit=max\u0026auto=format\u0026n=tsQezhQWWuaGa128\u0026q=85\u0026s=b3f74808868781b289bf1c2d21b7b2a1\"}},{\"@type\":\"WebSite\",\"@id\":\"https://gowa-docs.mintlify.app#website\",\"name\":\"WhatsApp API MultiDevice\",\"url\":\"https://gowa-docs.mintlify.app\",\"publisher\":{\"@id\":\"https://gowa-docs.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript#webpage\",\"url\":\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript\",\"name\":\"JavaScript\",\"description\":\"Call the GOWA REST API from Node.js or the browser with fetch.\",\"dateModified\":\"2026-10-28T15:08:14.275Z\",\"isPartOf\":{\"@id\":\"https://gowa-docs.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Client Examples\",\"item\":\"https://gowa-docs.mintlify.app/api-reference/sdks/go\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript\",\"item\":\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript#article\",\"headline\":\"JavaScript\",\"name\":\"JavaScript\",\"description\":\"Call the GOWA REST API from Node.js or the browser with fetch.\",\"url\":\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript\",\"mainEntityOfPage\":{\"@id\":\"https://gowa-docs.mintlify.app/api-reference/sdks/javascript#webpage\"},\"dateModified\":\"2026-10-28T15:08:14.275Z\",\"publisher\":{\"@id\":\"https://gowa-docs.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://gowa-docs.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"WhatsApp API MultiDevice\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"WhatsApp API MultiDevice\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/sdks/javascript.md","siteName":"WhatsApp API MultiDevice","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice"}]},"languages":[{"language":"en","default":true,"tabs":[{"tab":"Guide","pages":[{"title":"Guide","href":""}]},{"tab":"API Reference","groups":[{"group":"WhatsApp API","pages":[{"group":"app","pages":[{"title":"Health check","deprecated":null,"version":null,"openapi":"/openapi.yml get /health","href":"/api-reference/app/health-check"},{"title":"Login to whatsapp server","deprecated":null,"version":null,"openapi":"/openapi.yml get /app/login","href":"/api-reference/app/login-to-whatsapp-server"},{"title":"Login with pairing code","deprecated":null,"version":null,"openapi":"/openapi.yml get /app/login-with-code","href":"/api-reference/app/login-with-pairing-code"},{"title":"Get pending passkey pairing state","deprecated":null,"version":null,"openapi":"/openapi.yml get /app/passkey","href":"/api-reference/app/get-pending-passkey-pairing-state"},{"title":"Submit the WebAuthn assertion for passkey pairing","deprecated":null,"version":null,"openapi":"/openapi.yml post /app/passkey/response","href":"/api-reference/app/submit-the-webauthn-assertion-for-passkey-pairing"},{"title":"Confirm the passkey pairing code","deprecated":null,"version":null,"openapi":"/openapi.yml post /app/passkey/confirm","href":"/api-reference/app/confirm-the-passkey-pairing-code"},{"title":"Logout the active device (keeps the device slot)","deprecated":null,"version":null,"openapi":"/openapi.yml get /app/logout","href":"/api-reference/app/logout-the-active-device-keeps-the-device-slot"},{"title":"Reconnecting to whatsapp server","deprecated":null,"version":null,"openapi":"/openapi.yml get /app/reconnect","href":"/api-reference/app/reconnecting-to-whatsapp-server"},{"title":"Get list connected devices","deprecated":null,"version":null,"openapi":"/openapi.yml get /app/devices","href":"/api-reference/app/get-list-connected-devices"},{"title":"Get connection status","deprecated":null,"version":null,"openapi":"/openapi.yml get /app/status","href":"/api-reference/app/get-connection-status"},{"title":"Get server health metrics","deprecated":null,"version":null,"openapi":"/openapi.yml get /app/metrics","href":"/api-reference/app/get-server-health-metrics"},{"title":"Get server metadata","deprecated":null,"version":null,"openapi":"/openapi.yml get /app/info","href":"/api-reference/app/get-server-metadata"}]},{"group":"device","pages":[{"title":"List all devices","deprecated":null,"version":null,"openapi":"/openapi.yml get /devices","href":"/api-reference/device/list-all-devices"},{"title":"Add a new device","deprecated":null,"version":null,"openapi":"/openapi.yml post /devices","href":"/api-reference/device/add-a-new-device"},{"title":"Get device info","deprecated":null,"version":null,"openapi":"/openapi.yml get /devices/{device_id}","href":"/api-reference/device/get-device-info"},{"title":"Remove a device","deprecated":null,"version":null,"openapi":"/openapi.yml delete /devices/{device_id}","href":"/api-reference/device/remove-a-device"},{"title":"Login a device with QR code","deprecated":null,"version":null,"openapi":"/openapi.yml get /devices/{device_id}/login","href":"/api-reference/device/login-a-device-with-qr-code"},{"title":"Login a device with pairing code","deprecated":null,"version":null,"openapi":"/openapi.yml post /devices/{device_id}/login/code","href":"/api-reference/device/login-a-device-with-pairing-code"},{"title":"Logout device","deprecated":null,"version":null,"openapi":"/openapi.yml post /devices/{device_id}/logout","href":"/api-reference/device/logout-device"},{"title":"Reconnect device","deprecated":null,"version":null,"openapi":"/openapi.yml post /devices/{device_id}/reconnect","href":"/api-reference/device/reconnect-device"},{"title":"Get device connection status","deprecated":null,"version":null,"openapi":"/openapi.yml get /devices/{device_id}/status","href":"/api-reference/device/get-device-connection-status"},{"title":"Get device webhook configuration","deprecated":null,"version":null,"openapi":"/openapi.yml get /devices/{device_id}/webhook","href":"/api-reference/device/get-device-webhook-configuration"},{"title":"Set device webhook configuration","deprecated":null,"version":null,"openapi":"/openapi.yml patch /devices/{device_id}/webhook","href":"/api-reference/device/set-device-webhook-configuration"}]},{"group":"user","pages":[{"title":"Subscribe to contact presence","deprecated":null,"version":null,"openapi":"/openapi.yml post /user/presence/subscribe","href":"/api-reference/user/subscribe-to-contact-presence"},{"title":"User Info","deprecated":null,"version":null,"openapi":"/openapi.yml get /user/info","href":"/api-reference/user/user-info"},{"title":"User Avatar","deprecated":null,"version":null,"openapi":"/openapi.yml get /user/avatar","href":"/api-reference/user/user-avatar"},{"title":"User Change Avatar","deprecated":null,"version":null,"openapi":"/openapi.yml post /user/avatar","href":"/api-reference/user/user-change-avatar"},{"title":"User Change Push Name","deprecated":null,"version":null,"openapi":"/openapi.yml post /user/pushname","href":"/api-reference/user/user-change-push-name"},{"title":"User My Privacy Setting","deprecated":null,"version":null,"openapi":"/openapi.yml get /user/my/privacy","href":"/api-reference/user/user-my-privacy-setting"},{"title":"User My List Groups","deprecated":null,"version":null,"openapi":"/openapi.yml get /user/my/groups","href":"/api-reference/user/user-my-list-groups"},{"title":"User My List Groups","deprecated":null,"version":null,"openapi":"/openapi.yml get /user/my/newsletters","href":"/api-reference/user/user-my-list-groups-1"},{"title":"Get list of user contacts","deprecated":null,"version":null,"openapi":"/openapi.yml get /user/my/contacts","href":"/api-reference/user/get-list-of-user-contacts"},{"title":"Get list of user contacts with every contact name separate","deprecated":null,"version":null,"openapi":"/openapi.yml get /user/my/contacts/detailed","href":"/api-reference/user/get-list-of-user-contacts-with-every-contact-name-separate"},{"title":"Check if user is on WhatsApp","deprecated":null,"version":null,"openapi":"/openapi.yml get /user/check","href":"/api-reference/user/check-if-user-is-on-whatsapp"},{"title":"Get Business Profile Information","deprecated":null,"version":null,"openapi":"/openapi.yml get /user/business-profile","href":"/api-reference/user/get-business-profile-information"}]},{"group":"send","pages":[{"title":"Send Message","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/message","href":"/api-reference/send/send-message"},{"title":"Send Image","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/image","href":"/api-reference/send/send-image"},{"title":"Send Audio","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/audio","href":"/api-reference/send/send-audio"},{"title":"Send File","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/file","href":"/api-reference/send/send-file"},{"title":"Send Sticker","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/sticker","href":"/api-reference/send/send-sticker"},{"title":"Send Video","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/video","href":"/api-reference/send/send-video"},{"title":"Send Contact","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/contact","href":"/api-reference/send/send-contact"},{"title":"Send Link","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/link","href":"/api-reference/send/send-link"},{"title":"Send Location","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/location","href":"/api-reference/send/send-location"},{"title":"Send Poll / Vote","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/poll","href":"/api-reference/send/send-poll-vote"},{"title":"Send presence status","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/presence","href":"/api-reference/send/send-presence-status"},{"title":"Send chat presence (typing indicator)","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/chat-presence","href":"/api-reference/send/send-chat-presence-typing-indicator"},{"title":"List scheduled sends","deprecated":null,"version":null,"openapi":"/openapi.yml get /send/schedules","href":"/api-reference/send/list-scheduled-sends"},{"title":"Get a scheduled send","deprecated":null,"version":null,"openapi":"/openapi.yml get /send/schedules/{schedule_id}","href":"/api-reference/send/get-a-scheduled-send"},{"title":"Pause a scheduled send","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/schedules/{schedule_id}/pause","href":"/api-reference/send/pause-a-scheduled-send"},{"title":"Resume a paused scheduled send","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/schedules/{schedule_id}/resume","href":"/api-reference/send/resume-a-paused-scheduled-send"},{"title":"Cancel a scheduled send","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/schedules/{schedule_id}/cancel","href":"/api-reference/send/cancel-a-scheduled-send"},{"title":"Send an experimental interactive message","deprecated":null,"version":null,"openapi":"/openapi.yml post /send/interactive","href":"/api-reference/send/send-an-experimental-interactive-message"}]},{"group":"message","pages":[{"title":"Revoke Message","deprecated":null,"version":null,"openapi":"/openapi.yml post /message/{message_id}/revoke","href":"/api-reference/message/revoke-message"},{"title":"Delete Message","deprecated":null,"version":null,"openapi":"/openapi.yml post /message/{message_id}/delete","href":"/api-reference/message/delete-message"},{"title":"Send reaction to message","deprecated":null,"version":null,"openapi":"/openapi.yml post /message/{message_id}/reaction","href":"/api-reference/message/send-reaction-to-message"},{"title":"Edit message by message ID before 15 minutes","deprecated":null,"version":null,"openapi":"/openapi.yml post /message/{message_id}/update","href":"/api-reference/message/edit-message-by-message-id-before-15-minutes"},{"title":"Mark as read message","deprecated":null,"version":null,"openapi":"/openapi.yml post /message/{message_id}/read","href":"/api-reference/message/mark-as-read-message"},{"title":"Mark an audio message as played","deprecated":null,"version":null,"openapi":"/openapi.yml post /message/{message_id}/played","href":"/api-reference/message/mark-an-audio-message-as-played"},{"title":"Star message","deprecated":null,"version":null,"openapi":"/openapi.yml post /message/{message_id}/star","href":"/api-reference/message/star-message"},{"title":"Unstar message","deprecated":null,"version":null,"openapi":"/openapi.yml post /message/{message_id}/unstar","href":"/api-reference/message/unstar-message"},{"title":"Forward Message","deprecated":null,"version":null,"openapi":"/openapi.yml post /message/{message_id}/forward","href":"/api-reference/message/forward-message"},{"title":"Download media from message","deprecated":null,"version":null,"openapi":"/openapi.yml get /message/{message_id}/download","href":"/api-reference/message/download-media-from-message"}]},{"group":"call","pages":[{"title":"Reject an incoming call","deprecated":null,"version":null,"openapi":"/openapi.yml post /call/reject","href":"/api-reference/call/reject-an-incoming-call"}]},{"group":"chat","pages":[{"title":"Get list of chats","deprecated":null,"version":null,"openapi":"/openapi.yml get /chats","href":"/api-reference/chat/get-list-of-chats"},{"title":"Get messages from a specific chat","deprecated":null,"version":null,"openapi":"/openapi.yml get /chat/{chat_jid}/messages","href":"/api-reference/chat/get-messages-from-a-specific-chat"},{"title":"Request older chat history from the phone","deprecated":null,"version":null,"openapi":"/openapi.yml post /chat/{chat_jid}/history","href":"/api-reference/chat/request-older-chat-history-from-the-phone"},{"title":"Pin or unpin a chat","deprecated":null,"version":null,"openapi":"/openapi.yml post /chat/{chat_jid}/pin","href":"/api-reference/chat/pin-or-unpin-a-chat"},{"title":"Set disappearing messages timer","deprecated":null,"version":null,"openapi":"/openapi.yml post /chat/{chat_jid}/disappearing","href":"/api-reference/chat/set-disappearing-messages-timer"},{"title":"Archive or unarchive a chat","deprecated":null,"version":null,"openapi":"/openapi.yml post /chat/{chat_jid}/archive","href":"/api-reference/chat/archive-or-unarchive-a-chat"}]},{"group":"group","pages":[{"title":"Group Info","deprecated":null,"version":null,"openapi":"/openapi.yml get /group/info","href":"/api-reference/group/group-info"},{"title":"Create group and add participant","deprecated":null,"version":null,"openapi":"/openapi.yml post /group","href":"/api-reference/group/create-group-and-add-participant"},{"title":"Get list of participants in a group","deprecated":null,"version":null,"openapi":"/openapi.yml get /group/participants","href":"/api-reference/group/get-list-of-participants-in-a-group"},{"title":"Adding more participants to group","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/participants","href":"/api-reference/group/adding-more-participants-to-group"},{"title":"Export group participants as CSV","deprecated":null,"version":null,"openapi":"/openapi.yml get /group/participants/export","href":"/api-reference/group/export-group-participants-as-csv"},{"title":"Remove participants from group","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/participants/remove","href":"/api-reference/group/remove-participants-from-group"},{"title":"Promote participants to admin","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/participants/promote","href":"/api-reference/group/promote-participants-to-admin"},{"title":"Demote participants to member","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/participants/demote","href":"/api-reference/group/demote-participants-to-member"},{"title":"Join group with link","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/join-with-link","href":"/api-reference/group/join-group-with-link"},{"title":"Get group information from invitation link","deprecated":null,"version":null,"openapi":"/openapi.yml get /group/info-from-link","href":"/api-reference/group/get-group-information-from-invitation-link"},{"title":"Get list of participant requests to join group","deprecated":null,"version":null,"openapi":"/openapi.yml get /group/participant-requests","href":"/api-reference/group/get-list-of-participant-requests-to-join-group"},{"title":"Approve participant request to join group","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/participant-requests/approve","href":"/api-reference/group/approve-participant-request-to-join-group"},{"title":"Reject participant request to join group","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/participant-requests/reject","href":"/api-reference/group/reject-participant-request-to-join-group"},{"title":"Leave group","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/leave","href":"/api-reference/group/leave-group"},{"title":"Set group photo","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/photo","href":"/api-reference/group/set-group-photo"},{"title":"Set group name","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/name","href":"/api-reference/group/set-group-name"},{"title":"Set group locked status","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/locked","href":"/api-reference/group/set-group-locked-status"},{"title":"Set group announce mode","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/announce","href":"/api-reference/group/set-group-announce-mode"},{"title":"Set group topic","deprecated":null,"version":null,"openapi":"/openapi.yml post /group/topic","href":"/api-reference/group/set-group-topic"},{"title":"Group Invite Link","deprecated":null,"version":null,"openapi":"/openapi.yml get /group/invite-link","href":"/api-reference/group/group-invite-link"}]},{"group":"newsletter","pages":[{"title":"Follow newsletter","deprecated":null,"version":null,"openapi":"/openapi.yml post /newsletter/follow","href":"/api-reference/newsletter/follow-newsletter"},{"title":"Unfollow newsletter","deprecated":null,"version":null,"openapi":"/openapi.yml post /newsletter/unfollow","href":"/api-reference/newsletter/unfollow-newsletter"},{"title":"Get newsletter (channel) metadata","deprecated":null,"version":null,"openapi":"/openapi.yml get /newsletter/info","href":"/api-reference/newsletter/get-newsletter-channel-metadata"},{"title":"Browse or search the public channel directory","deprecated":null,"version":null,"openapi":"/openapi.yml get /newsletter/directory","href":"/api-reference/newsletter/browse-or-search-the-public-channel-directory"},{"title":"Get latest newsletter (channel) messages","deprecated":null,"version":null,"openapi":"/openapi.yml get /newsletter/messages","href":"/api-reference/newsletter/get-latest-newsletter-channel-messages"},{"title":"Get newsletter message counters","deprecated":null,"version":null,"openapi":"/openapi.yml get /newsletter/message-updates","href":"/api-reference/newsletter/get-newsletter-message-counters"},{"title":"List live updates subscriptions of the device","deprecated":null,"version":null,"openapi":"/openapi.yml get /newsletter/live-updates","href":"/api-reference/newsletter/list-live-updates-subscriptions-of-the-device"},{"title":"Subscribe to newsletter live updates","deprecated":null,"version":null,"openapi":"/openapi.yml post /newsletter/live-updates","href":"/api-reference/newsletter/subscribe-to-newsletter-live-updates"},{"title":"Stop renewing newsletter live updates","deprecated":null,"version":null,"openapi":"/openapi.yml delete /newsletter/live-updates","href":"/api-reference/newsletter/stop-renewing-newsletter-live-updates"},{"title":"Download media from a newsletter message","deprecated":null,"version":null,"openapi":"/openapi.yml get /newsletter/messages/{server_id}/download","href":"/api-reference/newsletter/download-media-from-a-newsletter-message"}]},{"group":"chatwoot","pages":[{"title":"Sync message history to Chatwoot","deprecated":null,"version":null,"openapi":"/openapi.yml post /chatwoot/sync","href":"/api-reference/chatwoot/sync-message-history-to-chatwoot"},{"title":"Get Chatwoot sync progress","deprecated":null,"version":null,"openapi":"/openapi.yml get /chatwoot/sync/status","href":"/api-reference/chatwoot/get-chatwoot-sync-progress"},{"title":"Chatwoot webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yml post /chatwoot/webhook","href":"/api-reference/chatwoot/chatwoot-webhook-endpoint"},{"title":"Per-device Chatwoot webhook endpoint","deprecated":null,"version":null,"openapi":"/openapi.yml post /chatwoot/webhook/{device_id}","href":"/api-reference/chatwoot/per-device-chatwoot-webhook-endpoint"},{"title":"List per-device Chatwoot configs","deprecated":null,"version":null,"openapi":"/openapi.yml get /chatwoot/configs","href":"/api-reference/chatwoot/list-per-device-chatwoot-configs"},{"title":"Get a device's Chatwoot config","deprecated":null,"version":null,"openapi":"/openapi.yml get /devices/{device_id}/chatwoot/config","href":"/api-reference/chatwoot/get-a-devices-chatwoot-config"},{"title":"Create or update a device's Chatwoot config","deprecated":null,"version":null,"openapi":"/openapi.yml put /devices/{device_id}/chatwoot/config","href":"/api-reference/chatwoot/create-or-update-a-devices-chatwoot-config"},{"title":"Delete a device's Chatwoot config","deprecated":null,"version":null,"openapi":"/openapi.yml delete /devices/{device_id}/chatwoot/config","href":"/api-reference/chatwoot/delete-a-devices-chatwoot-config"}]}]},{"group":"Overview","pages":[{"title":"API Reference","sidebarTitle":"Introduction","href":"/api-reference/introduction"},{"title":"API Authentication","sidebarTitle":"Authentication","href":"/api-reference/authentication"},{"title":"Rate Limits","href":"/api-reference/rate-limits"},{"title":"Errors","href":"/api-reference/errors"},{"title":"Server metrics","href":"/api-reference/metrics"},{"title":"WebSocket events","sidebarTitle":"WebSocket","href":"/api-reference/websocket"}]},{"group":"Client Examples","pages":[{"title":"Go","description":"Call the GOWA REST API from Go with net/http.","href":"/api-reference/sdks/go"},{"title":"JavaScript","href":"/api-reference/sdks/javascript"},{"title":"Python","description":"Call the GOWA REST API from Python with requests.","href":"/api-reference/sdks/python"},{"title":"Postman","href":"/api-reference/sdks/postman"}]}]}]},{"language":"id","pages":[{"title":"id","href":"/id/api-reference/sdks/javascript"}]},{"language":"cn","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"支持"}],"primary":{"type":"button","label":"试用 GOWA","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"pages":[{"title":"cn","href":"/zh/api-reference/sdks/javascript"}]},{"language":"tr","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"Destek"}],"primary":{"type":"button","label":"GOWA’yı deneyin","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"pages":[{"title":"tr","href":"/tr/api-reference/sdks/javascript"}]},{"language":"ru","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"Поддержка"}],"primary":{"type":"button","label":"Попробовать GOWA","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"pages":[{"title":"ru","href":"/ru/api-reference/sdks/javascript"}]},{"language":"ar","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"الدعم"}],"primary":{"type":"button","label":"جرّب GOWA","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"pages":[{"title":"ar","href":"/ar/api-reference/sdks/javascript"}]},{"language":"jp","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"サポート"}],"primary":{"type":"button","label":"GOWA を試す","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"pages":[{"title":"jp","href":"/ja/api-reference/sdks/javascript"}]},{"language":"es","navbar":{"links":[{"href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/issues","label":"Soporte"}],"primary":{"type":"button","label":"Probar GOWA","href":"https://github.com/aldinokemal/go-whatsapp-web-multidevice/releases/latest"}},"pages":[{"title":"es","href":"/es/api-reference/sdks/javascript"}]}]},"basePath":"","title":"JavaScript - WhatsApp API MultiDevice","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}