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", { method: "GET" });
console.log(result);
{
"contacts": [
{
"id": "<string>",
"number": "<string>",
"name": "<string>",
"profileName": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"saved": true
}
],
"hasMore": true,
"nextOffset": 123
}{
"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
List WhatsApp contacts
Phone-wide contacts:read. Bounded normalized contact directory; independent from selected-chat access. 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", { method: "GET" });
console.log(result);
{
"contacts": [
{
"id": "<string>",
"number": "<string>",
"name": "<string>",
"profileName": "<string>",
"firstName": "<string>",
"lastName": "<string>",
"saved": true
}
],
"hasMore": true,
"nextOffset": 123
}{
"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>"
}