GET /v1/conversations
const url = 'https://seu-endereco-da-api/v1/conversations?status=pending&unread=1&kind=person&windowState=open&window=expiring&priorities=today&aiGoal=active&order=newest';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://seu-endereco-da-api/v1/conversations?status=pending&unread=1&kind=person&windowState=open&window=expiring&priorities=today&aiGoal=active&order=newest' \ --header 'Authorization: Bearer <token>'Permissão que a Chave de acesso precisa: Ler conversas (conversations:read).
Authorizations
Seção intitulada “Authorizations”Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”Responses
Seção intitulada “Responses”object
object
Who spoke inside the group, for the last message; null on a person conversation and on what the team sent
Who sent the last message; null without a message, on a deleted one or on one with no direction
Delivery status of the last message; only filled when the team sent it
Mensagens recebidas desde a ultima leitura de quem pede, contadas ate 100
object
‘none’ when the channel has no session window
Whether this channel needs an approved template to reopen a closed window
object
O nome que o cliente deu ao canal na plataforma
O numero ou @ da conta no provedor
O nome da conta no provedor: o verificado da Meta, ou o do aparelho no canal lite
O canal foi apagado; a conversa continua descrevendo por onde ela aconteceu
Set when an unmerge left this thread with messages from two people
Sobe a cada escrita na conversa; evento com revisao menor ou igual a esta ja esta contido neste estado
object
Null on a group, which is not a contact
‘person’ for a 1:1 contact, ‘group’ for a WhatsApp group
Presigned url for the contact’s whatsapp profile photo
True while the contact is blocked: inbound is stored silently and replies are refused
Os campos de contato que o dono escolheu como selo, so os que quem chama ve e que nao sao sensiveis; vazio sem valor
object
O valor formatado; null num campo sim/nao marcado, que mostra so o rotulo
The AI goal the inbox shows: conducting, paused, or completed/returned until someone acknowledges
object
A foto do banco em que a resposta foi lida: um evento ja esta contido nela quando seu txid e menor que xmin, ou menor que xmax e fora de xip
object
Toda transacao abaixo deste numero ja esta na leitura
Nenhuma transacao deste numero em diante esta na leitura
Transacoes entre xmin e xmax que ainda estavam abertas e por isso ficaram fora
Example
{ "items": [ { "lastMessageDirection": "inbound", "window": { "kind": "none" }, "aiGoal": { "state": "conducting", "kind": "agendar", "returnReason": "fora_do_limite" } } ]}