Get Flow dashboard

Get Flow dashboard. See the OpenAPI-defined parameters, request body, and responses below.

GET /Flow/dashboard

Get 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

NameLocationTypeRequiredDescriptionConstraints
FlowIdqueryinteger · int32NoFiltra as tarefas de um fluxo. Omitir inclui as tarefas dos fluxos do tenant autenticado.—
TaskCreatedAtStartquerystring · date-timeNoLimite inicial inclusivo da data de criação da tarefa.—
TaskCreatedAtEndquerystring · date-timeNoLimite final inclusivo da data de criação da tarefa.—
TaskCompletedAtStartquerystring · date-timeNoLimite inicial inclusivo da data de conclusão da tarefa.—
TaskCompletedAtEndquerystring · date-timeNoLimite final inclusivo da data de conclusão da tarefa.—
TaskStatusqueryFlowTaskStatusNo0 = Pending; 1 = InProgress; 2 = Completed; 3 = Canceled—
GroupingqueryFlowDashboardGroupingNo0 = 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

StatusDescriptionResponse body
200Indicadores 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
PropertyTypeRequiredDescriptionConstraints
totalFlowsinteger · int32No——
totalTasksinteger · int32No——
completedTasksinteger · int32No——
humanExecutedTasksinteger · int32No——
aiExecutedTasksinteger · int32No——
groupingFlowDashboardGroupingNo——
tasksByStatusarray<FlowTaskStatusCountDto>No—nullable
tasksByUserarray<FlowExecutionByActorDto>No—nullable
tasksByAgentarray<FlowExecutionByActorDto>No—nullable
tasksByPeriodarray<FlowDashboardPeriodDto>No—nullable
FlowDashboardGrouping

0 = Day; 1 = Month

integer

FlowDashboardPeriodDto
PropertyTypeRequiredDescriptionConstraints
periodStartstring · date-timeNo——
totalTasksinteger · int32No——
completedTasksinteger · int32No——
humanExecutedTasksinteger · int32No——
aiExecutedTasksinteger · int32No——
FlowExecutionByActorDto
PropertyTypeRequiredDescriptionConstraints
actorIdinteger · int32No——
totalTasksinteger · int32No——
FlowTaskStatus

0 = Pending; 1 = InProgress; 2 = Completed; 3 = Canceled

integer

FlowTaskStatusCountDto
PropertyTypeRequiredDescriptionConstraints
statusFlowTaskStatusNo——
totalinteger · int32No——