Docs
OverviewPlatformPlatform APIA2P Messaging API
AI & MCP
Open dashboard
OverviewPlatformPlatform APIA2P Messaging API
AI & MCP
  • Overview
  • Introduction
  • Create an account
  • Choose your API
  • Authentication
  • AI & MCP
Product API
  • Guide
  • Quickstart
    • API tokens
    • Connected apps (OAuth)
    • Project readiness
    • Channel readiness
    • Senders
    • Attention
    • Recommendations
    • Overview
    • Contacts and attributes
    • Events
    • Query filter
    • Event query filter
    • Probes
    • Counting and retrieval
    • Segments
    • Overview
    • Creating a draft
    • Audience targeting
    • Message content
    • Dates and scheduling
    • Reading campaigns
    • Estimating and deleting
    • OverviewBeta
    • Templates
    • Creating and editing drafts
    • Triggers and exits
    • Nodes
    • Delays and waits
    • Overview
    • Statistics catalog
    • Building queries
    • Conversions & revenue
    • Reading results
    • Flow reports
    • Rate limits
    • Errors
  • Full API Reference
Ingest API
  • Guide
  • Quickstart
  • Authentication
  • Rate limits
  • Errors
  • Best practices
  • Full API Reference
Further reading
  • Query Filter
DashboardSupportinstasent.com

Platform API · Product API · Flows

Flows

How the Product API models a flow: a branching automation made of a trigger event, steps and exits. This page covers the drafts-only contract, the endpoints and scopes, and how a flow moves from an API draft to something a person publishes in the dashboard.

On this page▾
  • Drafts only
  • The endpoints
  • The life of a flow
  • Reading flows
  • What's next

A flow Beta is an automation that branches. One trigger event enrols a contact — a checkout started, an order placed, a contact created — and from there each contact follows their own path through the steps you place: messages, waits, and branches that route them depending on who they are or what they do. Exit events take a contact out early, typically when the goal of the journey happens: a reminder about an abandoned checkout stops the moment the order arrives.

The Product API lets an integration or an AI assistant turn "remind people who abandon their checkout" into a complete, validated flow that a person can open in the dashboard, review and publish. It does not let you switch one on.

Flows is in beta, in the dashboard and in this API. The endpoints and fields on these pages are the ones to build on, but the section may still grow and change while the feature evolves. For how customers build and publish flows in the dashboard, see Flows in the Platform guides.

Drafts only

The API writes drafts, a person publishes. Nothing in this section publishes, enables, disables or archives a flow, runs a test, or makes a contact enter one. A flow created through the API sends nothing until someone publishes it in the dashboard.

That split is deliberate. A live flow is what reaches contacts and spends balance, so the last step stays with a person who has seen the graph. What the API gives you is everything up to that point:

  • Start from a template. GET /flow/templates returns ready-made flows scored against the events the project really receives, each with a graph whose senders, trigger source and known values are already filled in. POST /flow with the template's key and no draft has the server build the draft, with the values only the customer knows passed as inputs; send your own draft with the key and the server substitutes the inputs and fills the senders and the source it leaves empty. See Templates.
  • Create, read, replace and validate the draft. A flow is created together with its first draft, and the draft is always replaced whole. See Creating and editing drafts.
  • Rename the flow. PATCH /flow/{id} changes the flow's name and nothing else, with no new draft: the graph, the draft and the status stay as they were.
  • Write the graph. The trigger and exits, the nodes you may place, and the delays. See Triggers and exits, Nodes and Delays and waits.

The endpoints

EndpointWhat it doesScopeRate limit
GET /flow/templatesLists the templates worth offering this project, with a graph ready to create.PROJECT_AUTOMATION_READmedium
POST /flowCreates a flow with its first draft: the graph you send, or one the server builds from a template.PROJECT_AUTOMATION_WRITErestrictive
GET /flow/{id}/draftReads the draft, with the draftId a replace expects.PROJECT_AUTOMATION_READlarge
PUT /flow/{id}/draftReplaces the whole draft.PROJECT_AUTOMATION_WRITErestrictive
POST /flow/{id}/draft/validateValidates a graph without saving anything.PROJECT_AUTOMATION_WRITElarge
GET /flowLists the project's flows, with each one's trigger and exits.PROJECT_AUTOMATION_READlarge
GET /flow/{id}Reads one flow.PROJECT_AUTOMATION_READlarge
PATCH /flow/{id}Renames the flow: it takes only name, and the graph, the draft and the status stay as they were.PROJECT_AUTOMATION_WRITE20 per minute
GET /flow/{id}/versionsLists a flow's versions. See Flow reports.PROJECT_AUTOMATION_READlarge

Every path is relative to /v1/project/{project}. Scopes are chosen when the token is minted, under Project settings → API tokens; PROJECT_AUTOMATION_WRITE only ever produces drafts and renames. See Authentication and Rate limits, where each class ceiling follows the organization's subscription plan; the rename has a fixed ceiling of 20 requests per minute, whatever the plan.

The two write endpoints that save a draft, and the rename, also require the organization owner to be verified, like creating a campaign: an unverified organization gets a 403 with code: "organization.verification_required".

The life of a flow

A flow is a container with a status — enabled, disabled or archived — that points at versions. The API only ever writes one of them: the draft, the single editable version, which never runs on live traffic.

stateDiagram-v2
    state "Draft only" as DraftOnly
    [*] --> DraftOnly: created through the API (disabled, nothing published)
    DraftOnly --> DraftOnly: draft replaced through the API or the dashboard
    DraftOnly --> Enabled: a person publishes the draft in the dashboard
    Enabled --> Disabled: a person disables it
    Disabled --> Enabled: a person enables it
    Enabled --> Archived: a person archives it
    Disabled --> Archived: a person archives it
    Archived --> [*]
    class Enabled success
    class Archived destructive
  • Creating makes a flow that is disabled, with its draft and nothing published.
  • Publishing copies the draft into a new, numbered version that new entrants follow. The draft stays as the base for the next change, so editing it later never changes what is live. The first publish switches the flow on by itself, unless the project is already at its plan's limit of enabled flows. A person can also publish a version as a live test that takes a small share of new entrants beside the live one.
  • Disabling stops new entries. Contacts already inside finish the version they entered on, and their messages are billed. To stop them too, a person cancels that version's executions in the dashboard (Managing flows).
  • Archiving is final: the flow stops admitting contacts and its draft can no longer be replaced. As with disabling, contacts already inside finish unless their executions are cancelled.

Versions, their roles and how to report on each one are covered in Flow reports. The customer-facing description of the builder is Flows in the Platform guides; testing, publishing and versions are covered in Testing, publishing and versions.

Reading flows

GET /flow and GET /flow/{id} return each flow's id, name and status, and two fields that help an integration before it creates anything:

templatestring

The key of the template the flow was created from, or null. A template stays marked used in the template list while a flow created from it is not archived.

triggerobject

What the flow reacts to, taken from the live version or, when nothing is published, from the draft.

triggerEventstring

The event type that enrols a contact.

triggerDatasourcestring

The data source the trigger listens to. null means any source.

exitEventsstring[]

The event types that take a contact out.

exitDatasourcesstring[]

The data sources the exits listen to.

fromstring

live or draft: which version the trigger was read from.

List the flows before you create one. Two flows on the same trigger event both enrol the same contact and message them twice. Checking trigger.triggerEvent across the existing flows is the cheapest way to avoid it. A disabled flow with a trigger may never have run: from: "draft" says nothing has been published.

What's next

Templates

Ready-made flows scored against the project's real events, in SMS or RCS, in the project's language.

Creating and editing drafts

Create, read, replace and validate a draft, and the errors each call returns.

Triggers and exits

The trigger event and its source, who may enter, re-entry, exits and goals.

Nodes

How the graph chains, the nodes the API accepts, and how a send is written.

Delays and waits

Fixed delays, window and smart delays configured by name, and waits for an event or a delivery.

Flow reports

Versions, and the totals and time series that measure a published flow.

Last updated November 12, 2026

PreviousEstimating and deletingNextTemplates
  • Drafts only
  • The endpoints
  • The life of a flow
  • Reading flows
  • What's next

© 2026 Instasent

Privacy PolicyTerms & ConditionsCookie PolicyLegal Notice
All systems operational