Get WhatsApp Profile Names
GET
https://api.wapim.io/api/v1/whatsapp/contacts
{
"contacts": [
{
"number": "***",
"name": "Alice"
},
{
"number": "****",
"name": "Bob"
},
{
"number": "****",
"name": "WAPIM London Office"
}
// ... Stripped
]
"count": 675
}
curl
-X GET https://api.wapim.io/api/v1/whatsapp/contacts
-H 'Token: YOUR_WAPIM_TOKEN'
const axios = require('axios');
axios
.get(
'https://api.wapim.io/api/v1/whatsapp/contacts',
{
headers: {
token: 'YOUR_WAPIM_TOKEN',
}
}
)
.then(response => console.log(response.data))
.catch(error => console.log(error.response.data))