flow api
Service · POST

getContactInfo

Get a contact's name, picture and business status. Also works with a channel ID (…@newsletter).

Video walkthrough: getContactInfo · 14 seconds · click the bar to jump to a step

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.
Green API compatible. getContactInfo uses the same name, request body and response as Green API, so existing code works after you change the host to flowapi.pro. Errors: 401 wrong instance or token, 402 trial ended or number not covered by your plan, 429 rate limit reached (wait the seconds in the Retry-After header), 400 with a message for anything else.

More service methods

Try it on your own number

7 days free, no credit card. Then $10 per number per month.

Start free trial