Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(api): say which engine accepts sends to unregistered numbers

Yudhi Armyndharis5260d45951b7
diff --git a/src/modules/contact/contact.controller.ts b/src/modules/contact/contact.controller.ts
index b6ee1d086..332cd64c2 100644
--- a/src/modules/contact/contact.controller.ts
+++ b/src/modules/contact/contact.controller.ts
@@ -128,9 +128,9 @@ export class ContactController {
summary: 'Check if a phone number exists on WhatsApp',
description:
'Returns whether the number is a registered WhatsApp account and its canonical id. Use this to ' +
- 'pre-validate a recipient before sending: the send endpoints return 201 on accepting a message ' +
- 'even for numbers that are not on WhatsApp, so this is the only way to confirm a new number is ' +
- 'reachable before you send to it. Requires an OPERATOR key.',
+ 'pre-validate a recipient before sending: the Baileys send endpoints can return 201 for a number ' +
+ 'that is not on WhatsApp (whatsapp-web.js answers 400), so this is the way to confirm a new number ' +
+ 'is reachable before you send to it. Requires an OPERATOR key.',
})
@ApiParam({ name: 'sessionId', description: 'Session ID' })
@ApiParam({ name: 'number', description: 'Phone number to check (e.g., 628123456789)' })