curl --request GET \
--url https://api.liderhub.com.br/v1/chat \
--header 'x-company-key: <api-key>'{
"chats": [
{
"contactId": "aaaaaaaa-bbbb-cccc-dddd-111111111111",
"contactNumber": "5511999999999",
"integration": "WHATSAPP-NON-OFFICIAL",
"contactName": "João Silva",
"department": {},
"status": {},
"source": {},
"connection": {},
"aiAgent": {},
"humanAgent": {},
"ticketStatus": "open",
"createdAt": {},
"lastInteraction": {},
"isWhatsAppWindowClosed": {},
"tags": {}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 154,
"totalPages": 8,
"hasNextPage": true,
"hasPreviousPage": false
}
}Retorna conversas do workspace com paginação (page e limit) e filtros opcionais por número de telefone e conexão.
curl --request GET \
--url https://api.liderhub.com.br/v1/chat \
--header 'x-company-key: <api-key>'{
"chats": [
{
"contactId": "aaaaaaaa-bbbb-cccc-dddd-111111111111",
"contactNumber": "5511999999999",
"integration": "WHATSAPP-NON-OFFICIAL",
"contactName": "João Silva",
"department": {},
"status": {},
"source": {},
"connection": {},
"aiAgent": {},
"humanAgent": {},
"ticketStatus": "open",
"createdAt": {},
"lastInteraction": {},
"isWhatsAppWindowClosed": {},
"tags": {}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 154,
"totalPages": 8,
"hasNextPage": true,
"hasPreviousPage": false
}
}Chave de autenticação do workspace (gerada na plataforma Liderhub)
Filtrar por número de telefone
"5511999999999"
Filtrar por ID da conexão
"aaaaaaaa-bbbb-cccc-dddd-111111111111"
Página (começa em 1, padrão: 1)
1
Itens por página (padrão: 20, máximo: 100)
20
Esta página foi útil?