This API allows you to retrieve the list of blocked contacts from a WhatsApp instance via a POST request.
URL: https://apiwhatsappweb.com/api/not-allowed-contacts
All requests must be made to this base URL.
To authenticate the requests, include the API Key (apiKey) and the Instance ID (id) in the request header.
{
"apiKey": "Your API key here",
"id": "Your instance ID here"
}
const axios = require("axios");
let config = {
method: 'post',
url: 'https://apiwhatsappweb.com/api/not-allowed-contacts',
headers: {
'apiKey': 'Bearer Your_ApiKey',
'id': 'Your_Instance_ID_Here',
'Content-Type': 'application/json'
}
};
axios.request(config)
.then(response => console.log(response.data))
.catch(error => console.error(error));
This API allows you to configure who can add your WhatsApp account to groups.
URL: https://apiwhatsappweb.com/api/group-config
All requests must be made to this base URL.
To authenticate requests, include the API Key (apiKey) and the Instance ID (id) in the request header.
{
"apiKey": "Your API key here",
"id": "Your instance ID here"
}
The request body should be a JSON object with the following structure:
{
"id": "INSTANCE_ID", // ID of the connected instance
"groupSetting": "all" // Options: "all", "contacts", "contacts_except"
}
const axios = require("axios");
let data = JSON.stringify({
"id": "INSTANCE_ID",
"groupSetting": "contacts"
});
let config = {
method: 'post',
url: 'https://apiwhatsappweb.com/api/group-config',
headers: {
'apiKey': 'Bearer Your_ApiKey',
'id': 'Your_Instance_ID_Here',
'Content-Type': 'application/json'
},
data: data
};
axios.request(config)
.then((response) => console.log(response.data))
.catch((error) => console.log(error));
{
"success": true,
"message": "Group settings updated!",
"groupSetting": "contacts"
}
{
"error": "Instance ID not found."
}
This API allows you to configure who can see your "Online" status on WhatsApp.
URL: https://apiwhatsappweb.com/api/online-visibility
All requests must be made to this base URL.
To authenticate requests, you must include the API Key (apiKey) and the Instance ID (id) in the request header.
{
apiKey: Your API key here
id: Your instance ID here
}
The request body should be a JSON object with the following structure:
{
"id": "INSTANCE_ID", // ID of the WhatsApp connected instance
"visibilitySetting": "everyone" // Options: "everyone", "contacts", "contacts_except", "nobody"
}
const axios = require("axios");
let data = JSON.stringify({
"id": "INSTANCE_ID",
"visibilitySetting": "contacts_except"
});
let config = {
method: 'post',
url: 'https://apiwhatsappweb.com/api/online-visibility',
headers: {
'apiKey': 'Bearer Your_ApiKey',
'id': 'Your_Instance_ID_Here',
'Content-Type': 'application/json'
},
data: data
};
axios.request(config)
.then((response) => {
console.log(response.data);
})
.catch((error) => {
console.log(error);
});
import requests
url = 'https://apiwhatsappweb.com/api/online-visibility'
headers = {
'apiKey': 'Bearer Your_ApiKey',
'id': 'Your_Instance_ID_Here',
'Content-Type': 'application/json'
}
data = {
"id": "INSTANCE_ID",
"visibilitySetting": "nobody"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
This API allows you to enable or disable the read receipts (blue checks) on WhatsApp.
URL: https://apiwhatsappweb.com/api/read-receipts
All requests must be made to this base URL.
To authenticate the requests, you must include the API Key (apiKey) and the Instance ID (id) in the request header.
{
apiKey: Your API key here
id: Your instance ID here
}
The request body should be a JSON object with the following structure:
{
"id": "INSTANCE_ID", // ID of the WhatsApp connected instance
"readReceipts": true // true = Enable | false = Disable
}
const axios = require("axios");
let data = JSON.stringify({
"id": "INSTANCE_ID",
"readReceipts": false
});
let config = {
method: 'post',
url: 'https://apiwhatsappweb.com/api/read-receipts',
headers: {
'apiKey': 'Bearer Your_ApiKey',
'id': 'Your_Instance_ID_Here',
'Content-Type': 'application/json'
},
data: data
};
axios.request(config)
.then((response) => {
console.log(response.data);
})
.catch((error) => {
console.log(error);
});
import requests
url = 'https://apiwhatsappweb.com/api/read-receipts'
headers = {
'apiKey': 'Bearer Your_ApiKey',
'id': 'Your_Instance_ID_Here',
'Content-Type': 'application/json'
}
data = {
"id": "INSTANCE_ID",
"readReceipts": true
}
response = requests.post(url, headers=headers, json=data)
print(response.json())