Skip to content

GetContactInfo Test#

The method is aimed for getting information on a contact.


To get contact information, you have to execute a request at:


For apiUrl, idInstance and apiTokenInstance request parameters, refer to Before you start section.

Request parameters#

Parameter Type Mandatory Description
chatId string Yes Correspondent id

Request body example#

    "chatId": ""


Response parameters#

Parameter Type Description
avatar string Avatar url
name string Contact name
1) If there is incoming correspondence/reactions from the account, then we get the name from the WhatsApp profile
2) If there is no incoming correspondence/reactions from the account, then we get an empty line
contactName string Contact name from the phone book
1) If the number is saved in contacts, then we get the name from the contact book;
2) If the number is not saved in contact book or is deleted from it, then we get an empty line.
email string Contact e-mail
category string Business contact category
description string Business contact description
products object Contact products cards
chatId string Correspondent ID
lastSeen string Time of last online status
isArchive boolean Chat archiving status, accepts true/false values
isDisappearing boolean Disappearing chat status, true/false
isMute boolean Chat notification status, true/false
messageexpiration integer Time to live for chat messages, in seconds
muteexpiration integer Time after which chat notifications will be enabled
isBusiness boolean The flag that indicates whether the contact uses WhatsApp Business, accepts true/false values

products object parameters

Parameter Type Description
id string Prodict id
imageUrls object Product images urls
availability string Product availability
reviewStatus object Product review status
name string Product name
description string Product description
price string Product price
isHidden boolean Product condition

imageUrls object parameters

Parameter Type Description
requested string Link to the product image with a low resolution (preview)
original string Link to the product image with high resolution (original)

reviewStatus object parameters

Parameter Type Description
whatsapp string The product has been approved by WhatsApp

Response body example#

    "avatar": "",
    "name": "Dealer",
    "contactName": "Dealer",
    "email": "",
    "category": "Automotive Dealership",
    "description": "Official service",
    "products": [
            "id": "42079728159",
            "imageUrls": {
                "requested": "",
                "original": ""
            "reviewStatus": {
                "whatsapp": "APPROVED"
            "availability": "in stock",
            "name": "Replacement",
            "description": "From 1000 RUB",
            "price": null,
            "isHidden": false
            "id": "3545870328871389",
            "imageUrls": {
                "requested": "",
                "original": ""
            "reviewStatus": {
                "whatsapp": "APPROVED"
            "availability": "in stock",
            "name": "Technical maintenance",
            "price": null,
            "isHidden": false
    "chatId": "",
    "lastSeen": null,
    "isArchive": false,
    "isDisappearing": false,
    "isMute": false,
    "messageExpiration": 0,
    "muteExpiration": null,
    "isBusiness": true


When the method requests information about a group chat, the response will receive status code 200 with a null body

GetContactInfo errors#

For a list of errors common to all methods, refer to Common errors section

Request examples#

import requests

url = "{{apiUrl}}/waInstance{{idInstance}}/getContactInfo/{{apiTokenInstance}}"

payload = {"chatId": ""}
headers = {
  'Content-Type': 'application/json'

response = requests.request("GET", url, headers=headers, data = payload)

curl --location '{{apiUrl}}/waInstance{{idInstance}}/getContactInfo/{{apiTokenInstance}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "chatId": ""
var restTemplate = new RestTemplate();
var requestUrl = new StringBuilder();

var headers = new HttpHeaders();

var jsonBody = "{\"chatId\": \"\"}";

var requestEntity = new HttpEntity<>(jsonBody, headers);

var response =, HttpMethod.GET, requestEntity, String.class);
var requestUrl = new StringBuilder();

var response =
    .header("Content-Type", "application/json")
    .body("{\"chatId\": \"\"}")

Sub GetContactInfo()
    Dim url As String
    Dim RequestBody As String
    Dim http As Object
    Dim response As String

    ' The apiUrl, idInstance and apiTokenInstance values are available in console, double brackets must be removed
    url = "{{apiUrl}}/waInstance{{idInstance}}/GetContactInfo/{{apiTokenInstance}}"

    ' chatId - is the number to send the message to ( for private chats, for group chats)
    RequestBody = "{""chatId"":""""}"

    Set http = CreateObject("MSXML2.XMLHTTP")

    With http
        .Open "POST", url, False
        .setRequestHeader "Content-Type", "application/json"
        .Send RequestBody
    End With

    response = http.responseText

    Debug.Print response

    ' Outputting the answer to the desired cell
    Range("A1").Value = response

    Set http = Nothing
End Sub