Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(faq): address the number check by session id

Yudhi Armyndharisf202aaaa8992
diff --git a/docs/12-troubleshooting-faq.md b/docs/12-troubleshooting-faq.md
index e981e4a5e..f4cd7b502 100644
--- a/docs/12-troubleshooting-faq.md
+++ b/docs/12-troubleshooting-faq.md
@@ -709,15 +709,16 @@ curl -H "X-API-Key: $API_KEY" \
```typescript
// Correct format
const validFormats = [
- '[email protected]', // Indonesian
+ '[email protected]', // Indonesian
'[email protected]', // Group ID
];
+```
-// API to check if number exists
-// GET /api/sessions/{id}/contacts/check/{number}
+```bash
+# Check whether a number is on WhatsApp (needs an OPERATOR key; {sessionId} is the id from GET /api/sessions)
curl -H "X-API-Key: $API_KEY" \
- "http://localhost:2785/api/sessions/default/contacts/check/628123456789"
+ "http://localhost:2785/api/sessions/{sessionId}/contacts/check/628123456789"
```
### Issue: Sends return 500 "engine returned no message", and chats or media fail with `r: r`