استدعِ واجهة GOWA REST API من Node.js أو المتصفح باستخدام fetch.
لا يوجد ملف SDK JavaScript الرسمي؛ استخدم 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"));
في المتصفحات، لا تتضمن بيانات اعتماد المصادقة الأساسية في الصفحات العامة؛ اتصل بـ GOWA من خلفيتك، وقم بتعيين APP_CORS_ALLOWED_ORIGINS إذا كان يجب أن تقوم جهة أمامية موثوق بها بالاتصال بها مباشرة.لـ n8n، قم بتثبيت عقدة المجتمع @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":"ar/api-reference/sdks/javascript","slug":"/ar/api-reference/sdks/javascript","pageMetadata":{"title":"جافا سكريبت","description":"استدعِ واجهة GOWA REST API من Node.js أو المتصفح باستخدام fetch.","href":"/ar/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: \"استدعِ واجهة GOWA REST API من Node.js أو المتصفح باستخدام 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:[`لا يوجد ملف SDK JavaScript الرسمي؛ استخدم `,_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:[`في المتصفحات، لا تتضمن بيانات اعتماد المصادقة الأساسية في الصفحات العامة؛ اتصل بـ GOWA من خلفيتك، وقم بتعيين `,_jsx(_components.code,{children:`APP_CORS_ALLOWED_ORIGINS`}),` إذا كان يجب أن تقوم جهة أمامية موثوق بها بالاتصال بها مباشرة.`]}),`\n`,_jsxs(_components.p,{children:[`لـ `,_jsx(_components.strong,{children:`n8n`}),`، قم بتثبيت عقدة المجتمع `,_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":"جافا سكريبت","description":"استدعِ واجهة GOWA REST API من Node.js أو المتصفح باستخدام fetch.","href":"/ar/api-reference/sdks/javascript"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"subdomain":"gowa-docs","siteName":"WhatsApp API MultiDevice","title":"جافا سكريبت - WhatsApp API MultiDevice","relatedPagesConfig":{"enabled":true,"limit":5,"mode":"automatic"},"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/sdks/javascript","matchLevel":1},"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":0},"jp":{"href":"/ja/api-reference/sdks/javascript","matchLevel":1},"es":{"href":"/es/api-reference/sdks/javascript","matchLevel":1}}},"lastModified":"2026-11-18T02:05:23.764Z","originalFileLocation":"ar/api-reference/sdks/javascript.mdx","locale":"ar"},"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=\"استدعِ واجهة GOWA REST API من Node.js أو المتصفح باستخدام 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=\"جافا سكريبت - WhatsApp API MultiDevice\">\u003cmeta data-mint-head property=\"og:description\" content=\"استدعِ واجهة GOWA REST API من Node.js أو المتصفح باستخدام 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/ar/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=%D8%A3%D9%85%D8%AB%D9%84%D8%A9+%D8%A7%D9%84%D8%B9%D9%85%D9%84%D8%A7%D8%A1\u0026amp;title=%D8%AC%D8%A7%D9%81%D8%A7+%D8%B3%D9%83%D8%B1%D9%8A%D8%A8%D8%AA\u0026amp;description=%D8%A7%D8%B3%D8%AA%D8%AF%D8%B9%D9%90+%D9%88%D8%A7%D8%AC%D9%87%D8%A9+GOWA+REST+API+%D9%85%D9%86+Node.js+%D8%A3%D9%88+%D8%A7%D9%84%D9%85%D8%AA%D8%B5%D9%81%D8%AD+%D8%A8%D8%A7%D8%B3%D8%AA%D8%AE%D8%AF%D8%A7%D9%85+fetch.\u0026amp;theme=f6c1b37b82c91dd56c3dd76c\u0026amp;signature=a82fa734500e049cf1983010b0146e4ab0d1f0e6ca0b7853b41848fbb4b73e55\">\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=\"جافا سكريبت - WhatsApp API MultiDevice\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"استدعِ واجهة GOWA REST API من Node.js أو المتصفح باستخدام fetch.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://gowa-docs.mintlify.site/_mintlify/api/og/v2?division=%D8%A3%D9%85%D8%AB%D9%84%D8%A9+%D8%A7%D9%84%D8%B9%D9%85%D9%84%D8%A7%D8%A1\u0026amp;title=%D8%AC%D8%A7%D9%81%D8%A7+%D8%B3%D9%83%D8%B1%D9%8A%D8%A8%D8%AA\u0026amp;description=%D8%A7%D8%B3%D8%AA%D8%AF%D8%B9%D9%90+%D9%88%D8%A7%D8%AC%D9%87%D8%A9+GOWA+REST+API+%D9%85%D9%86+Node.js+%D8%A3%D9%88+%D8%A7%D9%84%D9%85%D8%AA%D8%B5%D9%81%D8%AD+%D8%A8%D8%A7%D8%B3%D8%AA%D8%AE%D8%AF%D8%A7%D9%85+fetch.\u0026amp;theme=f6c1b37b82c91dd56c3dd76c\u0026amp;signature=a82fa734500e049cf1983010b0146e4ab0d1f0e6ca0b7853b41848fbb4b73e55\">\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/ar/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=\"/ar/api-reference/sdks/javascript.md\">\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=\"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=\"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/ar/api-reference/sdks/javascript#webpage\",\"url\":\"https://gowa-docs.mintlify.app/ar/api-reference/sdks/javascript\",\"name\":\"جافا سكريبت\",\"description\":\"استدعِ واجهة GOWA REST API من Node.js أو المتصفح باستخدام fetch.\",\"dateModified\":\"2026-11-18T02:05:23.764Z\",\"isPartOf\":{\"@id\":\"https://gowa-docs.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://gowa-docs.mintlify.app/ar/api-reference/sdks/javascript#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://gowa-docs.mintlify.app/ar/api-reference/sdks/javascript#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"أمثلة العملاء\",\"item\":\"https://gowa-docs.mintlify.app/ar/api-reference/sdks/go\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"جافا سكريبت\",\"item\":\"https://gowa-docs.mintlify.app/ar/api-reference/sdks/javascript\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://gowa-docs.mintlify.app/ar/api-reference/sdks/javascript#article\",\"headline\":\"جافا سكريبت\",\"name\":\"جافا سكريبت\",\"description\":\"استدعِ واجهة GOWA REST API من Node.js أو المتصفح باستخدام fetch.\",\"url\":\"https://gowa-docs.mintlify.app/ar/api-reference/sdks/javascript\",\"mainEntityOfPage\":{\"@id\":\"https://gowa-docs.mintlify.app/ar/api-reference/sdks/javascript#webpage\"},\"dateModified\":\"2026-11-18T02:05:23.764Z\",\"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":"/ar/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,"pages":[{"title":"en","href":"/api-reference/sdks/javascript"}]},{"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"}},"tabs":[{"tab":"الدليل","pages":[{"title":"الدليل","href":"/ar"}]},{"tab":"مرجع API","groups":[{"group":"واجهة WhatsApp API","pages":[{"group":"app","pages":[{"title":"الفحص الصحي","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /health","href":"/ar/api-reference/app/الفحص-الصحي"},{"title":"تسجيل الدخول إلى خادم Whatsapp","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /app/login","href":"/ar/api-reference/app/تسجيل-الدخول-إلى-خادم-whatsapp"},{"title":"تسجيل الدخول مع رمز الاقتران","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /app/login-with-code","href":"/ar/api-reference/app/تسجيل-الدخول-مع-رمز-الاقتران"},{"title":"الحصول على حالة اقتران مفتاح المرور المعلق","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /app/passkey","href":"/ar/api-reference/app/الحصول-على-حالة-اقتران-مفتاح-المرور-المعلق"},{"title":"تقديم تأكيد WebAuthn لإقران مفتاح المرور","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /app/passkey/response","href":"/ar/api-reference/app/تقديم-تأكيد-webauthn-لإقران-مفتاح-المرور"},{"title":"تأكيد رمز اقتران المفتاح","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /app/passkey/confirm","href":"/ar/api-reference/app/تأكيد-رمز-اقتران-المفتاح"},{"title":"تسجيل خروج الجهاز النشط (يحتفظ بفتحة الجهاز)","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /app/logout","href":"/ar/api-reference/app/تسجيل-خروج-الجهاز-النشط-يحتفظ-بفتحة-الجهاز"},{"title":"إعادة الاتصال بخادم ماتسلاب","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /app/reconnect","href":"/ar/api-reference/app/إعادة-الاتصال-بخادم-ماتسلاب"},{"title":"الحصول على قائمة الأجهزة المتصلة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /app/devices","href":"/ar/api-reference/app/الحصول-على-قائمة-الأجهزة-المتصلة"},{"title":"الحصول على حالة الاتصال","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /app/status","href":"/ar/api-reference/app/الحصول-على-حالة-الاتصال"},{"title":"احصل على قياسات صحة الخادم","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /app/metrics","href":"/ar/api-reference/app/احصل-على-قياسات-صحة-الخادم"},{"title":"الحصول على بيانات تعريف الخادم","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /app/info","href":"/ar/api-reference/app/الحصول-على-بيانات-تعريف-الخادم"}]},{"group":"device","pages":[{"title":"قائمة جميع الأجهزة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /devices","href":"/ar/api-reference/device/قائمة-جميع-الأجهزة"},{"title":"إضافة جهاز جديد","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /devices","href":"/ar/api-reference/device/إضافة-جهاز-جديد"},{"title":"الحصول على معلومات الجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /devices/{device_id}","href":"/ar/api-reference/device/الحصول-على-معلومات-الجهاز"},{"title":"إزالة جهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml delete /devices/{device_id}","href":"/ar/api-reference/device/إزالة-جهاز"},{"title":"تسجيل الدخول لجهاز باستخدام رمز QR","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /devices/{device_id}/login","href":"/ar/api-reference/device/تسجيل-الدخول-لجهاز-باستخدام-رمز-qr"},{"title":"تسجيل الدخول إلى جهاز برمز الاقتران","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /devices/{device_id}/login/code","href":"/ar/api-reference/device/تسجيل-الدخول-إلى-جهاز-برمز-الاقتران"},{"title":"تسجيل الخروج من الجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /devices/{device_id}/logout","href":"/ar/api-reference/device/تسجيل-الخروج-من-الجهاز"},{"title":"إعادة الاتصال بالجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /devices/{device_id}/reconnect","href":"/ar/api-reference/device/إعادة-الاتصال-بالجهاز"},{"title":"الحصول على حالة اتصال الجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /devices/{device_id}/status","href":"/ar/api-reference/device/الحصول-على-حالة-اتصال-الجهاز"},{"title":"الحصول على تكوين الويبهوك للجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /devices/{device_id}/webhook","href":"/ar/api-reference/device/الحصول-على-تكوين-الويبهوك-للجهاز"},{"title":"تعيين تكوين webhook للجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml patch /devices/{device_id}/webhook","href":"/ar/api-reference/device/تعيين-تكوين-webhook-للجهاز"}]},{"group":"user","pages":[{"title":"الاشتراك في وجود جهة الاتصال","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /user/presence/subscribe","href":"/ar/api-reference/user/الاشتراك-في-وجود-جهة-الاتصال"},{"title":"معلومات المستخدم","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /user/info","href":"/ar/api-reference/user/معلومات-المستخدم"},{"title":"صورة المستخدم الرمزية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /user/avatar","href":"/ar/api-reference/user/صورة-المستخدم-الرمزية"},{"title":"تغيير الصورة الرمزية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /user/avatar","href":"/ar/api-reference/user/تغيير-الصورة-الرمزية"},{"title":"تغيير اسم المستخدم","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /user/pushname","href":"/ar/api-reference/user/تغيير-اسم-المستخدم"},{"title":"المستخدم إعدادات الخصوصية الخاصة بي","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /user/my/privacy","href":"/ar/api-reference/user/المستخدم-إعدادات-الخصوصية-الخاصة-بي"},{"title":"مستخدم مجموعات قائمتي","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /user/my/groups","href":"/ar/api-reference/user/مستخدم-مجموعات-قائمتي"},{"title":"مستخدم مجموعات قائمتي","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /user/my/newsletters","href":"/ar/api-reference/user/مستخدم-مجموعات-قائمتي-1"},{"title":"الحصول على قائمة جهات اتصال المستخدم","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /user/my/contacts","href":"/ar/api-reference/user/الحصول-على-قائمة-جهات-اتصال-المستخدم"},{"title":"احصل على قائمة جهات الاتصال مع كل اسم جهة اتصال منفصلة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /user/my/contacts/detailed","href":"/ar/api-reference/user/احصل-على-قائمة-جهات-الاتصال-مع-كل-اسم-جهة-اتصال-منفصلة"},{"title":"تحقق مما إذا كان المستخدم على WhatsApp","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /user/check","href":"/ar/api-reference/user/تحقق-مما-إذا-كان-المستخدم-على-whatsapp"},{"title":"الحصول على معلومات الملف الشخصي للأعمال التجارية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /user/business-profile","href":"/ar/api-reference/user/الحصول-على-معلومات-الملف-الشخصي-للأعمال-التجارية"}]},{"group":"send","pages":[{"title":"إرسال رسالة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/message","href":"/ar/api-reference/send/إرسال-رسالة"},{"title":"إرسال صورة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/image","href":"/ar/api-reference/send/إرسال-صورة"},{"title":"إرسال الصوت","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/audio","href":"/ar/api-reference/send/إرسال-الصوت"},{"title":"إرسال ملف","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/file","href":"/ar/api-reference/send/إرسال-ملف"},{"title":"إرسال ملصق","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/sticker","href":"/ar/api-reference/send/إرسال-ملصق"},{"title":"إرسال فيديو","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/video","href":"/ar/api-reference/send/إرسال-فيديو"},{"title":"إرسال جهة الاتصال","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/contact","href":"/ar/api-reference/send/إرسال-جهة-الاتصال"},{"title":"إرسال الرابط","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/link","href":"/ar/api-reference/send/إرسال-الرابط"},{"title":"إرسال الموقع","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/location","href":"/ar/api-reference/send/إرسال-الموقع"},{"title":"إرسال استبيان / تصويت","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/poll","href":"/ar/api-reference/send/إرسال-استبيان-تصويت"},{"title":"إرسال حالة الحضور","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/presence","href":"/ar/api-reference/send/إرسال-حالة-الحضور"},{"title":"إرسال حضور الدردشة (مؤشر الكتابة)","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/chat-presence","href":"/ar/api-reference/send/إرسال-حضور-الدردشة-مؤشر-الكتابة"},{"title":"قائمة المرسلات المجدولة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /send/schedules","href":"/ar/api-reference/send/قائمة-المرسلات-المجدولة"},{"title":"الحصول على إرسال مجدول","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /send/schedules/{schedule_id}","href":"/ar/api-reference/send/الحصول-على-إرسال-مجدول"},{"title":"إيقاف إرسال مجدول","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/schedules/{schedule_id}/pause","href":"/ar/api-reference/send/إيقاف-إرسال-مجدول"},{"title":"استئناف الإرسال المجدول مؤقتاً","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/schedules/{schedule_id}/resume","href":"/ar/api-reference/send/استئناف-الإرسال-المجدول-مؤقتاً"},{"title":"إلغاء إرسال مجدول","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/schedules/{schedule_id}/cancel","href":"/ar/api-reference/send/إلغاء-إرسال-مجدول"},{"title":"إرسال رسالة تفاعلية تجريبية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /send/interactive","href":"/ar/api-reference/send/إرسال-رسالة-تفاعلية-تجريبية"}]},{"group":"message","pages":[{"title":"إلغاء الرسالة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /message/{message_id}/revoke","href":"/ar/api-reference/message/إلغاء-الرسالة"},{"title":"حذف الرسالة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /message/{message_id}/delete","href":"/ar/api-reference/message/حذف-الرسالة"},{"title":"إرسال رد فعل إلى الرسالة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /message/{message_id}/reaction","href":"/ar/api-reference/message/إرسال-رد-فعل-إلى-الرسالة"},{"title":"تعديل الرسالة بواسطة معرف الرسالة قبل 15 دقيقة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /message/{message_id}/update","href":"/ar/api-reference/message/تعديل-الرسالة-بواسطة-معرف-الرسالة-قبل-15-دقيقة"},{"title":"وضع علامة كرسالة مقروءة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /message/{message_id}/read","href":"/ar/api-reference/message/وضع-علامة-كرسالة-مقروءة"},{"title":"وضع علامة على رسالة صوتية كما تم تشغيلها","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /message/{message_id}/played","href":"/ar/api-reference/message/وضع-علامة-على-رسالة-صوتية-كما-تم-تشغيلها"},{"title":"رسالة النجوم","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /message/{message_id}/star","href":"/ar/api-reference/message/رسالة-النجوم"},{"title":"رسالة إلغاء النجمة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /message/{message_id}/unstar","href":"/ar/api-reference/message/رسالة-إلغاء-النجمة"},{"title":"إعادة توجيه الرسالة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /message/{message_id}/forward","href":"/ar/api-reference/message/إعادة-توجيه-الرسالة"},{"title":"تحميل الوسائط من الرسالة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /message/{message_id}/download","href":"/ar/api-reference/message/تحميل-الوسائط-من-الرسالة"}]},{"group":"call","pages":[{"title":"رفض مكالمة واردة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /call/reject","href":"/ar/api-reference/call/رفض-مكالمة-واردة"}]},{"group":"chat","pages":[{"title":"احصل على قائمة المحادثات","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /chats","href":"/ar/api-reference/chat/احصل-على-قائمة-المحادثات"},{"title":"الحصول على رسائل من محادثة محددة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /chat/{chat_jid}/messages","href":"/ar/api-reference/chat/الحصول-على-رسائل-من-محادثة-محددة"},{"title":"طلب سجل محادثة أقدم من الهاتف","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /chat/{chat_jid}/history","href":"/ar/api-reference/chat/طلب-سجل-محادثة-أقدم-من-الهاتف"},{"title":"تثبيت أو إلغاء تثبيت الدردشة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /chat/{chat_jid}/pin","href":"/ar/api-reference/chat/تثبيت-أو-إلغاء-تثبيت-الدردشة"},{"title":"تعيين مؤقت الرسائل المختفية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /chat/{chat_jid}/disappearing","href":"/ar/api-reference/chat/تعيين-مؤقت-الرسائل-المختفية"},{"title":"أرشفة أو إلغاء أرشفة محادثة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /chat/{chat_jid}/archive","href":"/ar/api-reference/chat/أرشفة-أو-إلغاء-أرشفة-محادثة"}]},{"group":"group","pages":[{"title":"معلومات المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /group/info","href":"/ar/api-reference/group/معلومات-المجموعة"},{"title":"إنشاء مجموعة وإضافة مشارك","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group","href":"/ar/api-reference/group/إنشاء-مجموعة-وإضافة-مشارك"},{"title":"احصل على قائمة المشاركين في مجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /group/participants","href":"/ar/api-reference/group/احصل-على-قائمة-المشاركين-في-مجموعة"},{"title":"إضافة المزيد من المشاركين إلى المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/participants","href":"/ar/api-reference/group/إضافة-المزيد-من-المشاركين-إلى-المجموعة"},{"title":"تصدير المشاركين في المجموعة كـ CSV","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /group/participants/export","href":"/ar/api-reference/group/تصدير-المشاركين-في-المجموعة-كـ-csv"},{"title":"إزالة المشاركين من المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/participants/remove","href":"/ar/api-reference/group/إزالة-المشاركين-من-المجموعة"},{"title":"ترقية المشاركين إلى المشرف","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/participants/promote","href":"/ar/api-reference/group/ترقية-المشاركين-إلى-المشرف"},{"title":"قم بسحب المشاركين للعضوية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/participants/demote","href":"/ar/api-reference/group/قم-بسحب-المشاركين-للعضوية"},{"title":"الانضمام إلى المجموعة مع رابط","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/join-with-link","href":"/ar/api-reference/group/الانضمام-إلى-المجموعة-مع-رابط"},{"title":"الحصول على معلومات المجموعة من رابط الدعوة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /group/info-from-link","href":"/ar/api-reference/group/الحصول-على-معلومات-المجموعة-من-رابط-الدعوة"},{"title":"احصل على قائمة طلبات المشاركين للانضمام إلى المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /group/participant-requests","href":"/ar/api-reference/group/احصل-على-قائمة-طلبات-المشاركين-للانضمام-إلى-المجموعة"},{"title":"الموافقة على طلب المشاركين للانضمام إلى المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/participant-requests/approve","href":"/ar/api-reference/group/الموافقة-على-طلب-المشاركين-للانضمام-إلى-المجموعة"},{"title":"رفض طلب المشارك للانضمام إلى المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/participant-requests/reject","href":"/ar/api-reference/group/رفض-طلب-المشارك-للانضمام-إلى-المجموعة"},{"title":"مغادرة المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/leave","href":"/ar/api-reference/group/مغادرة-المجموعة"},{"title":"تعيين صورة المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/photo","href":"/ar/api-reference/group/تعيين-صورة-المجموعة"},{"title":"تعيين اسم المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/name","href":"/ar/api-reference/group/تعيين-اسم-المجموعة"},{"title":"تعيين حالة تأمين المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/locked","href":"/ar/api-reference/group/تعيين-حالة-تأمين-المجموعة"},{"title":"تعيين وضع إعلان المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/announce","href":"/ar/api-reference/group/تعيين-وضع-إعلان-المجموعة"},{"title":"تعيين موضوع المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /group/topic","href":"/ar/api-reference/group/تعيين-موضوع-المجموعة"},{"title":"رابط دعوة المجموعة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /group/invite-link","href":"/ar/api-reference/group/رابط-دعوة-المجموعة"}]},{"group":"newsletter","pages":[{"title":"متابعة النشرة الإخبارية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /newsletter/follow","href":"/ar/api-reference/newsletter/متابعة-النشرة-الإخبارية"},{"title":"إلغاء متابعة النشرة الإخبارية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /newsletter/unfollow","href":"/ar/api-reference/newsletter/إلغاء-متابعة-النشرة-الإخبارية"},{"title":"الحصول على بيانات التعريف للنشرة الإخبارية (قناة)","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /newsletter/info","href":"/ar/api-reference/newsletter/الحصول-على-بيانات-التعريف-للنشرة-الإخبارية-قناة"},{"title":"تصفح أو بحث دليل القناة العامة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /newsletter/directory","href":"/ar/api-reference/newsletter/تصفح-أو-بحث-دليل-القناة-العامة"},{"title":"الحصول على أحدث الرسائل النشرة الإخبارية (القناة)","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /newsletter/messages","href":"/ar/api-reference/newsletter/الحصول-على-أحدث-الرسائل-النشرة-الإخبارية-القناة"},{"title":"الحصول على عدادات الرسائل الإخبارية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /newsletter/message-updates","href":"/ar/api-reference/newsletter/الحصول-على-عدادات-الرسائل-الإخبارية"},{"title":"قائمة التحديثات المباشرة للاشتراكات في الجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /newsletter/live-updates","href":"/ar/api-reference/newsletter/قائمة-التحديثات-المباشرة-للاشتراكات-في-الجهاز"},{"title":"الاشتراك في التحديثات المباشرة للنشرة الإخبارية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /newsletter/live-updates","href":"/ar/api-reference/newsletter/الاشتراك-في-التحديثات-المباشرة-للنشرة-الإخبارية"},{"title":"إيقاف تجديد التحديثات المباشرة للنشرة الإخبارية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml delete /newsletter/live-updates","href":"/ar/api-reference/newsletter/إيقاف-تجديد-التحديثات-المباشرة-للنشرة-الإخبارية"},{"title":"تحميل الوسائط من رسالة النشرة الإخبارية","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /newsletter/messages/{server_id}/download","href":"/ar/api-reference/newsletter/تحميل-الوسائط-من-رسالة-النشرة-الإخبارية"}]},{"group":"chatwoot","pages":[{"title":"مزامنة سجل الرسائل إلى Chatwoot","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /chatwoot/sync","href":"/ar/api-reference/chatwoot/مزامنة-سجل-الرسائل-إلى-chatwoot"},{"title":"احصل على تقدم مزامنة الدردشة","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /chatwoot/sync/status","href":"/ar/api-reference/chatwoot/احصل-على-تقدم-مزامنة-الدردشة"},{"title":"نقطة نهاية Chatwoot","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /chatwoot/webhook","href":"/ar/api-reference/chatwoot/نقطة-نهاية-chatwoot"},{"title":"نقطة نهاية Chatwoot للجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml post /chatwoot/webhook/{device_id}","href":"/ar/api-reference/chatwoot/نقطة-نهاية-chatwoot-للجهاز"},{"title":"قائمة تكوينات Chatwoot لكل جهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /chatwoot/configs","href":"/ar/api-reference/chatwoot/قائمة-تكوينات-chatwoot-لكل-جهاز"},{"title":"احصل على تكوين دردشة الجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml get /devices/{device_id}/chatwoot/config","href":"/ar/api-reference/chatwoot/احصل-على-تكوين-دردشة-الجهاز"},{"title":"إنشاء أو تحديث إعدادات Chatwoot للجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml put /devices/{device_id}/chatwoot/config","href":"/ar/api-reference/chatwoot/إنشاء-أو-تحديث-إعدادات-chatwoot-للجهاز"},{"title":"حذف تهيئة دردشة الجهاز","deprecated":null,"version":null,"openapi":"/ar/openapi.yml delete /devices/{device_id}/chatwoot/config","href":"/ar/api-reference/chatwoot/حذف-تهيئة-دردشة-الجهاز"}]}]},{"group":"نظرة عامة","pages":[{"title":"مرجع API","sidebarTitle":"مقدمة","href":"/ar/api-reference/introduction"},{"title":"مصادقة API","sidebarTitle":"المصادقة","href":"/ar/api-reference/authentication"},{"title":"حدود المعدل","href":"/ar/api-reference/rate-limits"},{"title":"أخطاء","href":"/ar/api-reference/errors"},{"title":"مقاييس الخادم","href":"/ar/api-reference/metrics"},{"title":"أحداث WebSocket","sidebarTitle":"WebSocket","href":"/ar/api-reference/websocket"}]},{"group":"أمثلة العملاء","pages":[{"title":"الذهاب","description":"استدعِ واجهة GOWA REST API من Go باستخدام net/http.","href":"/ar/api-reference/sdks/go"},{"title":"جافا سكريبت","href":"/ar/api-reference/sdks/javascript"},{"title":"Python","description":"استدعِ واجهة GOWA REST API من Python باستخدام requests.","href":"/ar/api-reference/sdks/python"},{"title":"بوستمان","href":"/ar/api-reference/sdks/postman"}]}]}]},{"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":"جافا سكريبت - WhatsApp API MultiDevice","deploymentId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","buildId":"dpl_DyXGnKeCjZyA3sUdfMJ7FjkdBefg","dynamics":[],"chunks":[]}