Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk-js): link the session before the quick-start send

Yudhi Armyndharis175301e6714f
diff --git a/sdk/javascript/README.md b/sdk/javascript/README.md
index 7adf63089..d32a9623e 100644
--- a/sdk/javascript/README.md
+++ b/sdk/javascript/README.md
@@ -34,6 +34,8 @@ const client = new OpenWAClient({
const session = await client.sessions.create({ name: 'my-session' });
await client.sessions.start(session.id);
+// Link the account before sending: scan sessions.getQrCode or use sessions.requestPairingCode,
+// then wait for status 'ready'. An unlinked session answers the send with 409.
const result = await client.messages.sendText(session.id, {
chatId: '[email protected]',
text: 'Hello from the OpenWA SDK!',