Get an execution of a flow
Returns one run with its full log (run_data), the definition it ran (definition_snapshot) and each step’s input, output and route, plus a diagnosis (failed_steps, skipped_steps, stopped_reason, caller_execution_id, called_executions). Pass detail to answer less of it. Administrator access is required.
Autorizações
Parâmetros de caminho
Parâmetros de consulta
How much of the run to answer, smallest first. summary: the run and its diagnosis (failed_steps, skipped_steps, stopped_reason, caller_execution_id, called_executions), without steps. errors: plus steps with only the failed and skipped steps, with their input and output. steps: plus every step. full (the default): plus run_data and definition_snapshot. Every value but full adds detail to the answer. Any other value answers 422.
summary, errors, steps, full Resposta
Execution details; with detail other than full, the smaller answer.
- Option 1
- Option 2
Event that started the run: the start's event (conversation_created, conversation_updated, message_created, message_sent, social_comment_received, kanban_item_updated, or the legacy conversation_opened and conversation_resolved), schedule for a run of a schedule start, or flow_called for a run another flow's run_flow block started.
"message_created"
Run status. waiting means the flow is paused waiting for a reply or a timer. An error run without steps was never started (a start dropped by one run per contact, a scheduled slot that did not run): its error_message says why and the detail's stopped_reason gives the code.
running, success, error, waiting "success"
Why the run stopped before its graph did, from run_data.stopped_reason. A run that was never started is an error run without steps: run_lock_busy (a start of a one-run-per-contact flow still blocked after about one minute), slot_missed (no scheduler tick ran within 2 minutes of the slot), run_in_progress (a scheduled run of the flow was still going) or enqueue_failed (the scheduled run could not be queued). Slots missed together are one run per reason, for the latest slot, with run_data.context.missed_slots (how many) and first_missed_slot. window_closed means a message was outside the reply window; expired, flow_paused, flow_unavailable or superseded say why a waiting run was closed.
"run_lock_busy"
Full run log, including context, execution_mode (production or test), definition_snapshot, stopped_reason, vars and steps. vars holds what blocks with a result_name kept, by name ({{ vars.<name>.<key> }}); a test run keeps the same keys with sample or empty values. Once the run is not waiting, a result body over 16 KB is stored short (its first 50 top keys, each value cut to a 200-character preview), with body_truncated set to true and body_bytes holding the full size. A waiting run keeps it whole, since it resumes with it. A body redacted by redact_response drops both fields.
Flow graph edited in the Flow Builder canvas. nodes holds the blocks (exactly one trigger node is required to publish),
edges connects the output handle of one block to another block, and metadata carries the schema version.
A flow may hold up to 100 nodes. Each block type reads its own keys from data.