Relatório: agenda e ocupação
/api/open/v1/reports/agendaEm resumo
GET /api/open/v1/reports/agenda- Chave
readouread_write. - Obrigatórios:
from,to. - Sucesso:
200.
AuthorizationstringheaderobrigatórioChave de API no formato Bearer ttw_live_<prefixo>_<segredo>, criada em Integrações → Chaves de API. Este endpoint precisa de chave read ou read_write.
fromstring<date>obrigatórioInício do período (AAAA-MM-DD).
tostring<date>obrigatórioFim do período (AAAA-MM-DD), inclusive.
professionalIdstring<uuid>Id de profissional (UUID).
Resposta 200
application/jsoncurrentobjectobrigatórioMostrar 13 atributosEsconder atributos
totalintegerobrigatórioTotal de itens.
-9007199254740991 a 9007199254740991
completedintegerobrigatório-9007199254740991 a 9007199254740991
noShowintegerobrigatório-9007199254740991 a 9007199254740991
canceledintegerobrigatório-9007199254740991 a 9007199254740991
openintegerobrigatório-9007199254740991 a 9007199254740991
onlineintegerobrigatório-9007199254740991 a 9007199254740991
squeezeInintegerobrigatórioEncaixe: permite marcar sobre outro atendimento do mesmo profissional.
-9007199254740991 a 9007199254740991
scheduledCentsintegerobrigatórioScheduled em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
lostCentsintegerobrigatórioLost em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
occupiedMinutesintegerobrigatório-9007199254740991 a 9007199254740991
availableMinutesintegerobrigatório-9007199254740991 a 9007199254740991
occupancyBpintegerpode ser nuloobrigatórioOccupancy em pontos-base (100 = 1%).
-9007199254740991 a 9007199254740991
averageLeadDaysnumberobrigatório
previousobjectobrigatórioMostrar 13 atributosEsconder atributos
totalintegerobrigatórioTotal de itens.
-9007199254740991 a 9007199254740991
completedintegerobrigatório-9007199254740991 a 9007199254740991
noShowintegerobrigatório-9007199254740991 a 9007199254740991
canceledintegerobrigatório-9007199254740991 a 9007199254740991
openintegerobrigatório-9007199254740991 a 9007199254740991
onlineintegerobrigatório-9007199254740991 a 9007199254740991
squeezeInintegerobrigatórioEncaixe: permite marcar sobre outro atendimento do mesmo profissional.
-9007199254740991 a 9007199254740991
scheduledCentsintegerobrigatórioScheduled em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
lostCentsintegerobrigatórioLost em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
occupiedMinutesintegerobrigatório-9007199254740991 a 9007199254740991
availableMinutesintegerobrigatório-9007199254740991 a 9007199254740991
occupancyBpintegerpode ser nuloobrigatórioOccupancy em pontos-base (100 = 1%).
-9007199254740991 a 9007199254740991
averageLeadDaysnumberobrigatório
previousFromstring<date>obrigatóriopreviousTostring<date>obrigatórioseriesobject[]obrigatórioMostrar 5 atributosEsconder atributos
datestring<date>obrigatórioData (AAAA-MM-DD) no fuso do estabelecimento.
totalintegerobrigatórioTotal de itens.
-9007199254740991 a 9007199254740991
completedintegerobrigatório-9007199254740991 a 9007199254740991
noShowintegerobrigatório-9007199254740991 a 9007199254740991
canceledintegerobrigatório-9007199254740991 a 9007199254740991
heatmapobject[]obrigatórioMostrar 3 atributosEsconder atributos
weekdayintegerobrigatórioDia da semana: 0 = domingo … 6 = sábado.
-9007199254740991 a 9007199254740991
hourintegerobrigatório-9007199254740991 a 9007199254740991
countintegerobrigatórioQuantidade de itens.
-9007199254740991 a 9007199254740991
byOriginobject[]obrigatórioMostrar 4 atributosEsconder atributos
idstringobrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
centsintegerobrigatórioValor em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
countintegerobrigatórioQuantidade de itens.
-9007199254740991 a 9007199254740991
byProfessionalobject[]obrigatórioMostrar 7 atributosEsconder atributos
idstring<uuid>obrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
totalintegerobrigatórioTotal de itens.
-9007199254740991 a 9007199254740991
completedintegerobrigatório-9007199254740991 a 9007199254740991
noShowintegerobrigatório-9007199254740991 a 9007199254740991
canceledintegerobrigatório-9007199254740991 a 9007199254740991
occupancyBpintegerpode ser nuloobrigatórioOccupancy em pontos-base (100 = 1%).
-9007199254740991 a 9007199254740991
byServiceobject[]obrigatórioMostrar 4 atributosEsconder atributos
idstringobrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
centsintegerobrigatórioValor em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
countintegerobrigatórioQuantidade de itens.
-9007199254740991 a 9007199254740991
cancelReasonsobject[]obrigatórioMostrar 4 atributosEsconder atributos
idstringobrigatórioIdentificador único (UUID).
namestringobrigatórioNome.
centsintegerobrigatórioValor em centavos (100 = R$ 1,00).
-9007199254740991 a 9007199254740991
countintegerobrigatórioQuantidade de itens.
-9007199254740991 a 9007199254740991
curl --request GET \
--url 'https://qa-tratow.ips.app.br/api/open/v1/reports/agenda?from=2026-11-03&to=2026-11-03' \
--header 'Authorization: Bearer <chave>'{
"current": {
"total": 1,
"completed": 1,
"noShow": 1,
"canceled": 1,
"open": 1,
"online": 1,
"squeezeIn": 1,
"scheduledCents": 8000,
"lostCents": 8000,
"occupiedMinutes": 1,
"availableMinutes": 1,
"occupancyBp": 1000,
"averageLeadDays": 1.5
},
"previous": {
"total": 1,
"completed": 1,
"noShow": 1,
"canceled": 1,
"open": 1,
"online": 1,
"squeezeIn": 1,
"scheduledCents": 8000,
"lostCents": 8000,
"occupiedMinutes": 1,
"availableMinutes": 1,
"occupancyBp": 1000,
"averageLeadDays": 1.5
},
"previousFrom": "2026-11-03",
"previousTo": "2026-11-03",
"series": [
{
"date": "2026-11-03",
"total": 1,
"completed": 1,
"noShow": 1,
"canceled": 1
}
],
"heatmap": [
{
"weekday": 1,
"hour": 1,
"count": 1
}
],
"byOrigin": [
{
"id": "texto",
"name": "Maria Lima",
"cents": 1,
"count": 1
}
],
"byProfessional": [
{
"id": "3f6c1b2a-4c7a-4d9e-8b1f-2e5d6a7b4c9d",
"name": "Maria Lima",
"total": 1,
"completed": 1,
"noShow": 1,
"canceled": 1,
"occupancyBp": 1000
}
],
"byService": [
{
"id": "texto",
"name": "Maria Lima",
"cents": 1,
"count": 1
}
],
"cancelReasons": [
{
"id": "texto",
"name": "Maria Lima",
"cents": 1,
"count": 1
}
]
}Os valores são ilustrativos.
