Actions5
- Friend Actions
- Contact Actions
Contact → Find User
AI-generatedSummary
Find a Zalo user by providing their phone number or user ID.
Inputs
- Phone Number or ID (required) — The phone number or Zalo user ID to search for.
Output shape
a single record with user details if found, including fields 'user' (the user object or null) and 'found' (a boolean indicating if the user was found).
Returns success status along with the user data under the 'user' key if found; throws an error if the underlying API method is not available in the current version of zca-js.
Examples
Example 1: Find user by phone number
Set 'Phone Number or ID' to a phone number like '0912345678'. The node queries the Zalo API and returns the user details if that number corresponds to a Zalo user.