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

Corpo

application/json
flow
object
obrigatório

Flow attributes. Any trigger_type sent is ignored; it is always derived from the trigger node of definition.

Resposta

Flow created as a draft.

id
integer
obrigatório

Flow identifier.

Exemplo:

12

name
string
obrigatório

Flow name, unique within the account.

Exemplo:

"Welcome new customers"

status
enum<string>
obrigatório

Lifecycle status. Only published flows run on live events.

Opções disponíveis:
draft,
published,
paused
Exemplo:

"published"

trigger_type
string
obrigatório

Event of the trigger node, derived from the draft definition when the flow is saved (message_received is stored as message_created; a schedule start, which has no event, is stored as schedule). Read-only.

Exemplo:

"message_created"

definition
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:
created_at
string<date-time>
obrigatório
Exemplo:

"2026-10-20T09:30:00Z"

updated_at
string<date-time>
obrigatório
Exemplo:

"2026-10-27T14:05:00Z"

description
string | null

Optional description of what the flow does.

Exemplo:

"Greets every new conversation and hands it to the sales team."

published_at
string<date-time> | null

When the flow was last published.

Exemplo:

"2026-10-27T14:05:00Z"

published_version_id
integer | null

ID of the version that runs on live events.

Exemplo:

31

published_version
object

Present only when the flow has a published version.