Listar mensagens de um contato
curl --request GET \
--url https://api.liderhub.com.br/v1/message \
--header 'x-company-key: <api-key>'import requests
url = "https://api.liderhub.com.br/v1/message"
headers = {"x-company-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-company-key': '<api-key>'}};
fetch('https://api.liderhub.com.br/v1/message', 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/message",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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/message"
req, _ := http.NewRequest("GET", 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.get("https://api.liderhub.com.br/v1/message")
.header("x-company-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liderhub.com.br/v1/message")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-company-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"messages": [
{
"id": "f8d015c2-e21b-4b96-9455-238d2e5be137",
"chatId": "c83ccc3a-1102-4386-a533-d7a2f042b121",
"outbound": true,
"createdAt": "2026-04-18T09:21:02+00:00",
"content": "Hello!",
"type": "conversation",
"deliveryStatus": "DELIVERED",
"sentAt": "2026-04-18T09:21:02+00:00",
"scheduledFor": "2026-04-18T09:21:02+00:00",
"mediaUrl": "https://cdn.example.com/media/abc123.jpg",
"mediaCaption": "Legenda opcional",
"audioText": "Transcrição do áudio"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 154,
"totalPages": 8,
"hasNextPage": true,
"hasPreviousPage": false
}
}Message
Listar mensagens de um contato
Retorna mensagens de um contato/chat com paginação.
GET
/
v1
/
message
Listar mensagens de um contato
curl --request GET \
--url https://api.liderhub.com.br/v1/message \
--header 'x-company-key: <api-key>'import requests
url = "https://api.liderhub.com.br/v1/message"
headers = {"x-company-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-company-key': '<api-key>'}};
fetch('https://api.liderhub.com.br/v1/message', 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/message",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
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/message"
req, _ := http.NewRequest("GET", 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.get("https://api.liderhub.com.br/v1/message")
.header("x-company-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liderhub.com.br/v1/message")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-company-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"messages": [
{
"id": "f8d015c2-e21b-4b96-9455-238d2e5be137",
"chatId": "c83ccc3a-1102-4386-a533-d7a2f042b121",
"outbound": true,
"createdAt": "2026-04-18T09:21:02+00:00",
"content": "Hello!",
"type": "conversation",
"deliveryStatus": "DELIVERED",
"sentAt": "2026-04-18T09:21:02+00:00",
"scheduledFor": "2026-04-18T09:21:02+00:00",
"mediaUrl": "https://cdn.example.com/media/abc123.jpg",
"mediaCaption": "Legenda opcional",
"audioText": "Transcrição do áudio"
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 154,
"totalPages": 8,
"hasNextPage": true,
"hasPreviousPage": false
}
}Autorizações
Chave de autenticação do workspace (gerada na plataforma Liderhub)
Parâmetros de consulta
ID do contato/chat
Exemplo:
"aaaaaaaa-bbbb-cccc-dddd-111111111111"
Página (começa em 1, padrão: 1)
Exemplo:
1
Itens por página (padrão: 20, máximo: 100)
Exemplo:
20
Última modificação em 19 de agosto de 2026
Esta página foi útil?
⌘I