flow_runs.get
Ver execução de flow. A execução com todos os passos (diário), na ordem em que rodaram.
- Endpoint:
POST https://app.atomiks.com.br/api/v1/flow_runs.get(corpo JSON) - Quem pode chamar: membro da conta
- Escopo da chave:
automations:read - Grava dados: não
- Pela chave de API: sim
- Ferramenta MCP:
flow_runs_get - Ficha em JSON:
https://app.atomiks.com.br/api/v1/openapi.json(operationIdflow_runs.get)
Entrada
| Campo | Tipo | Obrigatório | Nota |
|---|---|---|---|
id | string (uuid) | sim |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
}
},
"required": [
"id"
]
}Exemplo
curl -X POST https://app.atomiks.com.br/api/v1/flow_runs.get \
-H "Authorization: Bearer $ATOMIKS_API_KEY" \
-H "Content-Type: application/json" \
-d '{"id":"00000000-0000-0000-0000-000000000000"}'CLI:
node cli/atomiks.mjs flow_runs.get --json '{"id":"00000000-0000-0000-0000-000000000000"}'MCP: ferramenta flow_runs_get com a mesma entrada.
Saída
Sucesso: {"data": ...} com o formato abaixo.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"id": {
"type": "string"
},
"flowId": {
"type": "string"
},
"flowVersionId": {
"type": "string"
},
"contactId": {
"type": "string"
},
"conversationId": {
"type": [
"string",
"null"
]
},
"channelId": {
"type": [
"string",
"null"
]
},
"status": {
"type": "string"
},
"currentNodeId": {
"type": [
"string",
"null"
]
},
"vars": {},
"lastError": {
"type": [
"string",
"null"
]
},
"createdAt": {
"type": "string"
},
"updatedAt": {
"type": "string"
},
"finishedAt": {
"type": [
"string",
"null"
]
},
"steps": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"nodeId": {
"type": "string"
},
"nodeType": {
"type": "string"
},
"attempt": {
"type": "number"
},
"status": {
"type": "string"
},
"handle": {
"type": [
"string",
"null"
]
},
"output": {},
"error": {
"type": [
"string",
"null"
]
},
"startedAt": {
"type": "string"
},
"finishedAt": {
"type": [
"string",
"null"
]
}
},
"required": [
"id",
"nodeId",
"nodeType",
"attempt",
"status",
"handle",
"output",
"error",
"startedAt",
"finishedAt"
],
"additionalProperties": false
}
}
},
"required": [
"id",
"flowId",
"flowVersionId",
"contactId",
"conversationId",
"channelId",
"status",
"currentNodeId",
"vars",
"lastError",
"createdAt",
"updatedAt",
"finishedAt",
"steps"
],
"additionalProperties": false
}Erros
{"error": {"code", "message", "requestId"}}. Códigos: invalid_input (400), unauthorized (401), forbidden / account_pending / scope_missing (403), not_found (404), limit_reached (409), internal (500).