Pular para o conteúdo principal
POST

Autorizações

api_access_token
string
header
obrigatório

Token de acesso do usuário (Perfil → Token de acesso). Dá acesso conforme o papel do usuário e age em nome dele.

Parâmetros de caminho

account_id
string
obrigatório

The numeric ID of the account

id
integer
obrigatório

Flow identifier.

Corpo

application/json

All fields are optional. Without definition the saved draft definition runs.

definition
object

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.

Exemplo:
event_name
string

Event to simulate. Defaults to the trigger node's event. A schedule start always runs as schedule.

Exemplo:

"message_created"

context
object

Run context. conversation_id picks the conversation to run on; without it the most recently updated conversation of the account (restricted to the trigger's inboxes when set) is used, and a kanban_item_updated start uses the latest card that has a conversation (kanban_item_id, kanban_change created, kanban_funnel_id, kanban_stage, kanban_status; keys given here win). inbox_id and message_id default from that conversation. inputs (an object) is what a run_flow block would hand over, read as {{ inputs.<key> }}. A schedule start needs no conversation: its slot is now, in the account's time zone, and the keys given here win.

Resposta

Test execution log.

id
integer
obrigatório

Execution identifier.

Exemplo:

905

flow_id
integer
obrigatório
Exemplo:

12

event_name
string
obrigatório

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.

Exemplo:

"message_created"

status
enum<string>
obrigatório

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.

Opções disponíveis:
running,
success,
error,
waiting
Exemplo:

"success"

steps_count
integer
obrigatório

Number of blocks the run went through.

Exemplo:

2

stopped_reason
string | null
obrigatório

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.

Exemplo:

"run_lock_busy"

caller_execution_id
integer | null
obrigatório

The run whose "Ejecutar flujo" (run_flow) block started this one, from run_data.context.caller_execution_id.

Exemplo:

870

failed_steps
object[]
obrigatório

The steps that failed (status error), without their input and output.

skipped_steps
object[]
obrigatório

The steps that were skipped (status skipped) with their reason, without their input and output.

called_executions
object[]
obrigatório

The runs this run's run_flow blocks started (up to 25). A run_flow step with output outcome queued only queued its call: the called run starts later in its own job and its status is here, matched by call_id.

run_data
object
obrigatório

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.

Exemplo:
definition_snapshot
object
obrigatório

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.

Exemplo:
steps
object[]
obrigatório
flow_version_id
integer | null

Published version that ran. Null for test runs of a draft.

Exemplo:

31

conversation_id
integer | null

Null on a scheduled run, which has no conversation.

Exemplo:

4821

message_id
integer | null

Null on a scheduled run and on runs no message started.

Exemplo:

99120

started_at
string<date-time> | null
Exemplo:

"2026-10-27T14:10:02Z"

finished_at
string<date-time> | null
Exemplo:

"2026-10-27T14:10:03Z"

duration_ms
integer | null
Exemplo:

812

error_message
string | null
Exemplo:

null

created_at
string<date-time>
Exemplo:

"2026-10-27T14:10:02Z"

updated_at
string<date-time>
Exemplo:

"2026-10-27T14:10:03Z"