curl --request GET \
--url https://api.zappfy.io/instance/privacy \
--header 'token: <api-key>'import requests
url = "https://api.zappfy.io/instance/privacy"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.zappfy.io/instance/privacy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zappfy.io/instance/privacy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zappfy.io/instance/privacy"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zappfy.io/instance/privacy")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zappfy.io/instance/privacy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"groupadd": "contacts",
"last": "contacts",
"status": "contacts",
"profile": "contacts",
"readreceipts": "all",
"online": "all",
"calladd": "all"
}{
"error": "client not found"
}{
"error": "No session"
}Buscar configurações de privacidade
Busca as configurações de privacidade atuais da instância do WhatsApp.
Importante - Diferença entre Status e Broadcast:
- Status: Refere-se ao recado personalizado que aparece embaixo do nome do usuário (ex: “Disponível”, “Ocupado”, texto personalizado)
- Broadcast: Refere-se ao envio de “stories/reels” (fotos/vídeos temporários)
Limitação: As configurações de privacidade do broadcast (stories/reels) não estão disponíveis para alteração via API.
Retorna todas as configurações de privacidade como quem pode:
- Adicionar aos grupos
- Ver visto por último
- Ver status (recado embaixo do nome)
- Ver foto de perfil
- Receber confirmação de leitura
- Ver status online
- Fazer chamadas
curl --request GET \
--url https://api.zappfy.io/instance/privacy \
--header 'token: <api-key>'import requests
url = "https://api.zappfy.io/instance/privacy"
headers = {"token": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {token: '<api-key>'}};
fetch('https://api.zappfy.io/instance/privacy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.zappfy.io/instance/privacy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.zappfy.io/instance/privacy"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("token", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.zappfy.io/instance/privacy")
.header("token", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.zappfy.io/instance/privacy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["token"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"groupadd": "contacts",
"last": "contacts",
"status": "contacts",
"profile": "contacts",
"readreceipts": "all",
"online": "all",
"calladd": "all"
}{
"error": "client not found"
}{
"error": "No session"
}Autorizações
Resposta
Configurações de privacidade obtidas com sucesso
Quem pode adicionar aos grupos. Valores - all, contacts, contact_blacklist, none
all, contacts, contact_blacklist, none "contacts"
Quem pode ver visto por último. Valores - all, contacts, contact_blacklist, none
all, contacts, contact_blacklist, none "contacts"
Quem pode ver status (recado embaixo do nome). Valores - all, contacts, contact_blacklist, none
all, contacts, contact_blacklist, none "contacts"
Quem pode ver foto de perfil. Valores - all, contacts, contact_blacklist, none
all, contacts, contact_blacklist, none "contacts"
Confirmação de leitura. Valores - all, none
all, none "all"
Quem pode ver status online. Valores - all, match_last_seen
all, match_last_seen "all"
Quem pode fazer chamadas. Valores - all, known
all, known "all"

