cURL
curl --request POST \ --url https://api.ezapi.com.br/instances/{instanceId}/token/{instanceToken}/privacy/last-seen \ --header 'Client-Token: <api-key>' \ --header 'Content-Type: application/json' \ --data ' { "visualizationType": "CONTACT_BLACKLIST", "contactsBlacklist": [ { "action": "add", "phone": "{{PHONE}}" }, { "action": "remove", "phone": "{{PHONE}}" } ] } '
{ "success": true }
Atualiza a visibilidade do visto por último.
Identificador único da instância.
"abc1234567890"
Token privado da instância retornado na criação.
"tok_a1b2c3d4e5f6"
"CONTACT_BLACKLIST"
Show child attributes
[ { "action": "add", "phone": "{{PHONE}}" }, { "action": "remove", "phone": "{{PHONE}}" }]
Resposta de sucesso.
true