Get Device Info
GET
https://api.wapim.io/api/v1/whatsapp/status
{
"status": true,
"code": 200,
"data": {
"instance_id": "436e6b56-d25f-457b-9012-ca792a2055ba",
"locale": "en_FR",
"number": "*****",
"device_id": "*****.0:32",
"pushname": "WAPIM Test Number",
"platform": "iphone",
"connected": true,
"logged_in": true,
"webhook_settings": {
"webhook_url": "CALLBACK_URL"
}
}
}
curl
-X GET https://api.wapim.io/api/v1/whatsapp/status
-H 'Token: YOUR_WAPIM_TOKEN'
const axios = require('axios');
axios
.get(
'https://api.wapim.io/api/v1/whatsapp/status',
{
headers: {
token: 'YOUR_WAPIM_TOKEN',
}
}
)
.then(response => console.log(response.data))
.catch(error => console.log(error.response.data))