Consultar tarefa do fluxo
Retorna os dados de tarefa de fluxo identificado por id no tenant do usuário autenticado. Retorna 404 quando o registro não é encontrado.
GET
/FlowTask/{id}Retorna os dados de tarefa de fluxo identificado por id no tenant do usuário autenticado. Retorna 404 quando o registro não é encontrado.
Autenticação
Autenticação obrigatória. Envie sua chave de API de usuário no header X-API-Key.
Parâmetros
| Nome | Local | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|---|
id | path | integer · int32 | Sim | Identificador de tarefa de fluxo. | — |
Corpo da requisição
Esta operação não recebe corpo de requisição.
Exemplo de requisição
curl --request GET \
--url 'https://api.zild.ai/FlowTask/{id}' \
--header 'X-API-Key: YOUR_USER_API_KEY'
Respostas
| Status | Descrição | Corpo da resposta |
|---|---|---|
200 | Operação concluída com sucesso. | application/json · FlowTaskDto |
404 | Registro não encontrado. | Nenhum corpo de resposta está definido. |
Exemplo de resposta (200):
{
"id": 0,
"flowId": 0,
"currentFlowStageId": 0,
"title": "string",
"description": "string",
"status": 0,
"priority": 0,
"payload": "string",
"dueDate": "2026-09-22T18:00:00Z",
"createdAt": "2026-09-22T18:00:00Z",
"createdBy": 0,
"completedAt": "2026-09-22T18:00:00Z",
"canceledAt": "2026-09-22T18:00:00Z",
"flowRecurringTaskId": 0,
"recurringOccurrenceAtUtc": "2026-09-22T18:00:00Z",
"scheduledOccurrenceAtUtc": "2026-09-22T18:00:00Z"
}
Modelos de dados
FlowTaskDto
| Propriedade | Tipo | Obrigatório | Descrição | Restrições |
|---|---|---|---|---|
id | integer · int32 | Não | — | — |
flowId | integer · int32 | Não | — | — |
currentFlowStageId | integer · int32 | Não | Identificador da raia atual. Na atualização, mudar este valor movimenta a tarefa e pode agendar a execução do agente responsável pela raia de destino. | — |
title | string | Não | — | aceita null |
description | string | Não | — | aceita null |
status | FlowTaskStatus | Não | — | — |
priority | integer · int32 | Não | — | — |
payload | string | Não | — | aceita null |
dueDate | string · date-time | Não | — | aceita null |
createdAt | string · date-time | Não | — | aceita null |
createdBy | integer · int32 | Não | — | — |
completedAt | string · date-time | Não | — | aceita null |
canceledAt | string · date-time | Não | — | aceita null |
flowRecurringTaskId | integer · int32 | Não | — | aceita null |
recurringOccurrenceAtUtc | string · date-time | Não | — | aceita null |
scheduledOccurrenceAtUtc | string · date-time | Não | — | aceita null |
FlowTaskStatus
0 = Pending; 1 = InProgress; 2 = Completed; 3 = Canceled
integer