WhatGHL icon

WhatGHL

Send actions to WhatGHL API

Actions42

👤 **CONTACTS** · Get Contact Basic Info

AI-generated

Summary

Retrieve basic information about a specific WhatsApp contact using its identifier.

Inputs

  • Session Mode — Choose how the session is selected: Auto, By Session Name, or Select Session (recommended).
  • Session — Specify the session when Session Mode is 'Select Session'.
  • Session Name — Specify the session name when Session Mode is 'By Session Name'.
  • Contact ID (required) — Provide the contact identifier, supporting formats such as phone, @c.us, @s.whatsapp.net, or @lid.

Output shape

a single JSON object containing the basic info of the contact.

Requires valid WhatGHL API credentials. The operation sends a request to the /actions endpoint with action 'get_contact_basic_info' and the provided contactId, returning information about the contact. Raises an error if contactId is missing or invalid.

Examples

Example 1: Retrieve basic info of a WhatsApp contact

Set Session Mode to 'Auto' or your preferred session selection. Provide the Contact ID as the phone number or supported contact identifier format. The node outputs the contact's basic information as JSON.

Links

Discussion