Skip to main content
GET
Get contact

Overview

A contact’s data.
An id out of format responds 400 invalid_request. A number the channel does not recognize responds with the message The channel did not recognize this contact: ... — the text Phone not exists only appears when Z-API itself returns 4xx.
The detail carries photoUrl (valid for ~48h) and does not carry lid. phone is null when the contact only has a LID, and then id is the LID. Null fields appear in the JSON.

Authorizations

Authorization
string
header
required

Secret Key

Path Parameters

channelId
string
required

Channel id

Example:

"58907809F0964E998D36C87F10EBA60C"

contact
string
required

Contact phone (digits only, with country and area code), {phone}@c.us, or LID.

Example:

"554497294996"

Response

Contact data

id
string
phone
string | null
name
string
shortName
string
profileName
string
vcardName
string
about
string | null
photoUrl
string | null