Service · POST
getContactInfo
Get a contact's name, picture and business status. Also works with a channel ID (…@newsletter).
Endpoint
POST https://flowapi.pro/waInstance{idInstance}/getContactInfo/{apiTokenInstance}Request body
{
"chatId": "972501234567@c.us"
}Example
curl -X POST "https://flowapi.pro/waInstance{idInstance}/getContactInfo/{apiTokenInstance}" \
-H "Content-Type: application/json" \
-d '{"chatId":"972501234567@c.us"}'Response
{
"name": "Dana Levi",
"avatar": "https://pps.whatsapp.net/…",
"isBusiness": false,
"chatId": "972501234567@c.us"
}Notes
- For a channel (chatId ending in @newsletter) you get the channel name, picture (avatar), description, subscribersCount, verified, invite and isChannel: true. getAvatar works with channel IDs too.
- Posts of channels the number follows arrive as incomingMessageReceived with the channel name in senderData.chatName and senderName.
More service methods
Try it on your own number
7 days free, no credit card. Then $10 per number per month.