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 Contact By ID

AI-generated

Summary

Retrieve a WhatsApp contact by its ID

Inputs

  • sessionId (required) — Session identifier to use for the request; select from the list or provide an expression.
  • contactId (required) — WhatsApp contact identifier in the form number@c.us (e.g., 34612345678@c.us).

Output shape

A single contact object containing fields such as id, number, name, pushname, etc., as returned by the WhatsApp Web API.

The response is merged with the workflow input; on failure an error field is added.

Examples

Example 1: Fetch the profile picture URL of a specific contact

resource=client, operation=getContactById, sessionId=default, contactId=34612345678@c.us, include getProfilePicUrl

Example 2: Get basic contact info for a user

resource=client, operation=getContactById, sessionId=default, contactId=15551234567@c.us

Links

Discussion