Node.js
// Requires the documented scopes. Keep keys on your server.
// For writes, persist the request key first; inspect unknown results.
const result = await client.request("/contacts/910000000099@c.us", { method: "GET" });
console.log(result);{
"id": "<string>",
"number": "<string>",
"name": "<string>",
"profileName": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"saved": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}WhatsApp actions
Read a WhatsApp contact
Phone-wide contacts:read, independent from message reading. Owner-only in the console.
Node.js
// Requires the documented scopes. Keep keys on your server.
// For writes, persist the request key first; inspect unknown results.
const result = await client.request("/contacts/910000000099@c.us", { method: "GET" });
console.log(result);{
"id": "<string>",
"number": "<string>",
"name": "<string>",
"profileName": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"saved": true
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}