Marcar contato como lido
curl --request POST \
--url https://api.liderhub.com.br/v1/contacts/{contact}/mark-read \
--header 'x-company-key: <api-key>'import requests
url = "https://api.liderhub.com.br/v1/contacts/{contact}/mark-read"
headers = {"x-company-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-company-key': '<api-key>'}};
fetch('https://api.liderhub.com.br/v1/contacts/{contact}/mark-read', 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.liderhub.com.br/v1/contacts/{contact}/mark-read",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-company-key: <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.liderhub.com.br/v1/contacts/{contact}/mark-read"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-company-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.liderhub.com.br/v1/contacts/{contact}/mark-read")
.header("x-company-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liderhub.com.br/v1/contacts/{contact}/mark-read")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-company-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "aaaaaaaa-bbbb-cccc-dddd-111111111111",
"unreadCount": 0
}Contacts
Marcar contato como lido
Zera o contador de mensagens não lidas do contato/chat.
POST
/
v1
/
contacts
/
{contact}
/
mark-read
Marcar contato como lido
curl --request POST \
--url https://api.liderhub.com.br/v1/contacts/{contact}/mark-read \
--header 'x-company-key: <api-key>'import requests
url = "https://api.liderhub.com.br/v1/contacts/{contact}/mark-read"
headers = {"x-company-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-company-key': '<api-key>'}};
fetch('https://api.liderhub.com.br/v1/contacts/{contact}/mark-read', 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.liderhub.com.br/v1/contacts/{contact}/mark-read",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"x-company-key: <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.liderhub.com.br/v1/contacts/{contact}/mark-read"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("x-company-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.liderhub.com.br/v1/contacts/{contact}/mark-read")
.header("x-company-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liderhub.com.br/v1/contacts/{contact}/mark-read")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-company-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "aaaaaaaa-bbbb-cccc-dddd-111111111111",
"unreadCount": 0
}Autorizações
Chave de autenticação do workspace (gerada na plataforma Liderhub)
Parâmetros de caminho
UUID do contato/chat
Exemplo:
"1cbcb7a8-8bf6-4016-8ed5-8ea38c4a9a05"
Última modificação em 19 de agosto de 2026
Esta página foi útil?
⌘I