POST /v1/analytics/services/search
POST
/v1/analytics/services/search
const url = 'https://seu-endereco-da-api/v1/analytics/services/search';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"cursor":"example","limit":1,"period":"1","window":"current","filter":{}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://seu-endereco-da-api/v1/analytics/services/search \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "cursor": "example", "limit": 1, "period": "1", "window": "current", "filter": {} }'Permissão que a Chave de acesso precisa: Relatórios de atendimento (analytics:service).
Authorizations
Seção intitulada “Authorizations”Request Bodyrequired
Seção intitulada “Request Bodyrequired”Media typeapplication/json
object
cursor
string
limit
number
period
string
window
string
filter
object
key
additional properties
any
Responses
Seção intitulada “Responses”Media typeapplication/json
object
seriesBreakAt
required
string
items
required
Array<object>
object
id
required
string
conversationId
required
The conversation this ticket belongs to, so a screen can open it directly
string
protocol
required
string
contactName
required
string
contactPhone
required
string
contactProfilePicUrl
required
Presigned url for the contact’s whatsapp profile photo
string
channel
required
string
provider
required
string
operatorId
required
Atendente atual do atendimento; nulo quando ninguém atendeu
string
operatorName
required
string
operatorAvatarUrl
required
Public url for the operator’s photo
string
operatorAvatar
required
string
attendants
required
Quantos atendentes passaram pelo atendimento
number
resolvedById
required
string
resolvedByName
required
string
department
required
string
status
required
string
rating
required
number
ratingComment
string
firstResponseSec
required
number
handleTimeSec
required
number
messages
required
number
transfers
required
number
startedAt
required
string
endedAt
required
string
tags
required
Array<string>
nextCursor
required
Cursor da próxima página; nulo na última
string
hasMore
required
boolean
Example
{ "items": [ { "status": "resolved" } ]}