Get Flow dashboard
Get Flow dashboard. See the OpenAPI-defined parameters, request body, and responses below.
/Flow/dashboardGet Flow dashboard. See the OpenAPI-defined parameters, request body, and responses below.
OpenAPI description: Retorna os totais dos fluxos com tarefas que atendem aos filtros, tarefas por status e tarefas com participação de usuários ou agentes registrada no histórico. Permite filtrar por fluxo, status e intervalos inclusivos de criação e conclusão. Agrupa os períodos pela data de criação das tarefas, por dia ou mês; o padrão é dia. Uma tarefa pode ser contada tanto na participação humana quanto na de IA. Não altera tarefas nem executa agentes.
Authentication
Authentication required. Send your user API key in the X-API-Key header.
Parameters
| Name | Location | Type | Required | Description | Constraints |
|---|---|---|---|---|---|
FlowId | query | integer · int32 | No | Filtra as tarefas de um fluxo. Omitir inclui as tarefas dos fluxos do tenant autenticado. | — |
TaskCreatedAtStart | query | string · date-time | No | Limite inicial inclusivo da data de criação da tarefa. | — |
TaskCreatedAtEnd | query | string · date-time | No | Limite final inclusivo da data de criação da tarefa. | — |
TaskCompletedAtStart | query | string · date-time | No | Limite inicial inclusivo da data de conclusão da tarefa. | — |
TaskCompletedAtEnd | query | string · date-time | No | Limite final inclusivo da data de conclusão da tarefa. | — |
TaskStatus | query | FlowTaskStatus | No | 0 = Pending; 1 = InProgress; 2 = Completed; 3 = Canceled | — |
Grouping | query | FlowDashboardGrouping | No | 0 = Day; 1 = Month | — |
Request body
This operation does not accept a request body.
Example request
curl --request GET \
--url 'https://api.zild.ai/Flow/dashboard?FlowId={FlowId}&TaskCreatedAtStart={TaskCreatedAtStart}&TaskCreatedAtEnd={TaskCreatedAtEnd}&TaskCompletedAtStart={TaskCompletedAtStart}&TaskCompletedAtEnd={TaskCompletedAtEnd}&TaskStatus={TaskStatus}&Grouping={Grouping}' \
--header 'X-API-Key: YOUR_USER_API_KEY'
Responses
| Status | Description | Response body |
|---|---|---|
200 | Indicadores calculados para as tarefas filtradas. | application/json · FlowDashboardDto |
Example response (200):
{
"totalFlows": 0,
"totalTasks": 0,
"completedTasks": 0,
"humanExecutedTasks": 0,
"aiExecutedTasks": 0,
"grouping": 0,
"tasksByStatus": [
{
"status": 0,
"total": 0
}
],
"tasksByUser": [
{
"actorId": 0,
"totalTasks": 0
}
],
"tasksByAgent": [
{
"actorId": 0,
"totalTasks": 0
}
],
"tasksByPeriod": [
{
"periodStart": "2026-09-22T18:00:00Z",
"totalTasks": 0,
"completedTasks": 0,
"humanExecutedTasks": 0,
"aiExecutedTasks": 0
}
]
}
Data models
FlowDashboardDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
totalFlows | integer · int32 | No | — | — |
totalTasks | integer · int32 | No | — | — |
completedTasks | integer · int32 | No | — | — |
humanExecutedTasks | integer · int32 | No | — | — |
aiExecutedTasks | integer · int32 | No | — | — |
grouping | FlowDashboardGrouping | No | — | — |
tasksByStatus | array<FlowTaskStatusCountDto> | No | — | nullable |
tasksByUser | array<FlowExecutionByActorDto> | No | — | nullable |
tasksByAgent | array<FlowExecutionByActorDto> | No | — | nullable |
tasksByPeriod | array<FlowDashboardPeriodDto> | No | — | nullable |
FlowDashboardGrouping
0 = Day; 1 = Month
integer
FlowDashboardPeriodDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
periodStart | string · date-time | No | — | — |
totalTasks | integer · int32 | No | — | — |
completedTasks | integer · int32 | No | — | — |
humanExecutedTasks | integer · int32 | No | — | — |
aiExecutedTasks | integer · int32 | No | — | — |
FlowExecutionByActorDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
actorId | integer · int32 | No | — | — |
totalTasks | integer · int32 | No | — | — |
FlowTaskStatus
0 = Pending; 1 = InProgress; 2 = Completed; 3 = Canceled
integer
FlowTaskStatusCountDto
| Property | Type | Required | Description | Constraints |
|---|---|---|---|---|
status | FlowTaskStatus | No | — | — |
total | integer · int32 | No | — | — |