WhatsApp Web API (WWebJS) icon

WhatsApp Web API (WWebJS)

Interact with WhatsApp Web API via WWebJS — send messages, manage sessions, chats, groups, contacts and channels

Client → Get Number ID

AI-generated

Summary

Retrieve the WhatsApp ID for a given phone number

Inputs

  • sessionId (required) — Session identifier. Select from the list or use an expression. Falls back to credentials default if empty.
  • number (required) — Phone number in international format (without + sign). @c.us is appended automatically.

Output shape

an object containing a 'result' field with the registered WhatsApp ID string (e.g., '12345678@c.us')

If the number is not registered, result may be null; otherwise it returns the WhatsApp ID. Success status is indicated by the 'success' field in the response.

Examples

Example 1: Fetch WhatsApp ID for a known phone number

Select a session (e.g., 'rocstatus'), set Phone Number to '34612345678', then execute.

Links

Discussion