curl --request GET \
--url https://api.liderhub.com.br/v1/message \
--header 'x-company-key: <api-key>'{
"messages": [
{
"messageId": "f8d015c2-e21b-4b96-9455-238d2e5be137",
"contactId": "c83ccc3a-1102-4386-a533-d7a2f042b121",
"outbound": true,
"createdAt": "<string>",
"content": "Hello!",
"type": "conversation",
"deliveryStatus": "DELIVERED",
"sentAt": {},
"scheduledFor": {},
"mediaUrl": {},
"mediaCaption": {},
"audioText": {}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 154,
"totalPages": 8,
"hasNextPage": true,
"hasPreviousPage": false
}
}Retorna mensagens de um contato/chat com paginação. O parâmetro contactId é obrigatório.
curl --request GET \
--url https://api.liderhub.com.br/v1/message \
--header 'x-company-key: <api-key>'{
"messages": [
{
"messageId": "f8d015c2-e21b-4b96-9455-238d2e5be137",
"contactId": "c83ccc3a-1102-4386-a533-d7a2f042b121",
"outbound": true,
"createdAt": "<string>",
"content": "Hello!",
"type": "conversation",
"deliveryStatus": "DELIVERED",
"sentAt": {},
"scheduledFor": {},
"mediaUrl": {},
"mediaCaption": {},
"audioText": {}
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 154,
"totalPages": 8,
"hasNextPage": true,
"hasPreviousPage": false
}
}Chave de autenticação do workspace (gerada na plataforma Liderhub)
ID do contato/chat
"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?