Replies: 1 comment
-
|
@kuflash You can get information about your contacts using the getContacts method: https://green-api.com/en/docs/api/service/GetContacts/ The "name" field will display the name of the contact in WhatsApp if there was a correspondence with him before, if not, the field remains empty. In the "contactName" field, we get the name from the contact book, if the number is saved, if the number is not saved, the field remains empty. This information is also available for a specific number using the GetContactInfo method: https://green-api.com/en/docs/api/service/GetContactInfo/ Unfortunately, it will not be possible to get the name of a contact if there was no interaction with him before. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello GreenAPI Team,
I have a question regarding the WhatsApp API functionality. I'm trying to retrieve a user's name based on their phone number, but it seems that GreenAPI only allows access to names of contacts with whom the API key owner has interacted.
Is there any way to retrieve a user's name by phone number outside of the existing contact list? Perhaps there are undocumented features or methods that can achieve this?
Any help or guidance would be greatly appreciated.
Thank you in advance!
Beta Was this translation helpful? Give feedback.
All reactions