Actions75
- Channel Actions
- Chat Actions
- Client Actions
- Contact Actions
- Group Chat Actions
- Message Actions
- Session Actions
Client → Get Contact By ID
AI-generatedSummary
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