Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Flows — API reference

Automation flows: CRUD and flows as code (JSON or YAML definitions), versions, publish and roll back, runs with their steps, test runs, the webhook, credentials (metadata only — a secret goes in once and never comes back), templates, the n8n / JSON importer and process mining.

← All groups
GET /api/v1/flows

Flows the person may see

Scope: flows:read · paginated · flows.index

ParameterInTypeDescription
statusquery"draft" | "active" | "disabled"
kindquery"account" | "personal"
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

flows * [Flow]
fields

Flow

category string | null
current_version_id string | null
description string | null
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
updated_at string (date-time)
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/flows

Create a flow

With `definition` (a flow-as-code document, JSON or YAML text, or an n8n workflow) the flow is imported and the answer carries the import `report`. Account flows need `flows:manage`; `personal` flows are the person's own.

Scope: flows:write · Idempotency-Key · flows.create

Request body application/json
category "documents" | "crm" | "meetings" | "support" | "marketing" | "operations" | "finance" | "personal" | "other"
definition any A flow definition to import (object or JSON / YAML text)
description string
graph object The draft graph (nodes and edges)
name string
personal boolean A personal flow
run_as "owner" | "service" Account flows only
settings object Flow settings (merged)
workspace_id string (uuid)
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

flow * FlowDetail
fields

FlowDetail

category string | null
current_version_id string | null
description string | null
draft object The draft graph
email string | null The flow's inbound address
graph object The published graph
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
settings object
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
triggers [object]
fields
event_type string | null
kind string
next_run_at string | null
node_id string
updated_at string (date-time)
report FlowImportReport
fields

FlowImportReport

converted any
unsupported any
warnings [any]

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Not a flow

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/flows/compose

Draft a flow from words

AI (`flows.compose`, paid credits — the cost is in `GET /flows/partners` → `cost`) drafts a flow from `description`. The flow is a **draft** and never published: unknown steps, fields and ports are left out and listed in `notes`; resources to pick (mailbox, channel, calendar…) are left blank and appear in `problems`. Partner steps only for partners the person can use. Docs: docs/agentos.md.

Scope: flows:write · uses AI credits · Idempotency-Key · flows.compose

Request body application/json
description * string What the flow should do, in words (at most 2000 characters)
name string
personal boolean A personal flow (always in an individual account)
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429 · 503

201 Success

credits * string Credits charged
flow * FlowDetail
fields

FlowDetail

category string | null
current_version_id string | null
description string | null
draft object The draft graph
email string | null The flow's inbound address
graph object The published graph
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
settings object
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
triggers [object]
fields
event_type string | null
kind string
next_run_at string | null
node_id string
updated_at string (date-time)
notes * [string]
problems * [string]
published * boolean Always false

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

503 No AI provider available (nothing charged)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)
GET /api/v1/flows/credentials

Credentials (metadata only)

Scope: flows:read · paginated · flows.credentials

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 429

200 Success

credentials * [FlowCredential]
fields

FlowCredential

flow_ids [string (uuid)]
hint string Last characters of the secret
id * string (uuid)
inserted_at string (date-time)
kind "basic" | "bearer" | "header" | "hmac" | "n8n" | "query"
last_used_at string | null
name string
personal boolean
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/flows/credentials

Store a credential

The secret fields depend on `kind`: bearer `token`; basic `username`, `password`; header `header_name`, `value`; query `param`, `value`; hmac `secret` (`header` optional); n8n `header_name`, `value`. The secret is never answered back. Account credentials need `flows:manage`.

Scope: flows:write · Idempotency-Key · flows.create_credential

Request body application/json
flow_ids [string (uuid)] Flows allowed to use it
header string
header_name string
kind * "basic" | "bearer" | "header" | "hmac" | "n8n" | "query"
name * string At most 80 characters
param string
password string
personal boolean
secret string
token string
username string
value string
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

credential * FlowCredential
fields

FlowCredential

flow_ids [string (uuid)]
hint string Last characters of the secret
id * string (uuid)
inserted_at string (date-time)
kind "basic" | "bearer" | "header" | "hmac" | "n8n" | "query"
last_used_at string | null
name string
personal boolean

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/flows/credentials/{credential_id}

Delete a credential

Scope: flows:write · flows.delete_credential

ParameterInTypeDescription
credential_id *pathstring (uuid)The credential
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/flows/import

Import an n8n workflow or a flow definition

Converts what it can; `report` lists the converted and unsupported nodes and warnings.

Scope: flows:write · Idempotency-Key · flows.import

Request body application/json
definition any
name string
personal boolean
text string
workflow any n8n workflow JSON (or `definition` / `text`)
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

flow * FlowDetail
fields

FlowDetail

category string | null
current_version_id string | null
description string | null
draft object The draft graph
email string | null The flow's inbound address
graph object The published graph
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
settings object
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
triggers [object]
fields
event_type string | null
kind string
next_run_at string | null
node_id string
updated_at string (date-time)
report * FlowImportReport
fields

FlowImportReport

converted any
unsupported any
warnings [any]

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Not a flow

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/flows/mining

Process mining overview

Run numbers per flow; approval aggregates only for people with `flows:manage` (null otherwise).

Scope: flows:read · flows.mining

Responses 200 · 401 · 403 · 429

200 Success

approvals object | null Approval aggregates: total, by_status, by_subject, approval_rate, avg_hours, p95_hours, overdue, by_position, conformance
flows * [object]
fields
failed integer
flow_id string (uuid)
name string
runs integer
succeeded integer
success number | null
waiting integer
totals * object
fields
active integer
failed integer
flows integer
runs integer
waiting integer

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/flows/partners

Partner triggers and actions for flows

The partner platforms' manifest capabilities as flow steps for the key's person: each with its state (`available`, `connect`, `create_account`, `coming_soon`) and why not; triggers only from partners that send events to Record Sender. A partner action runs through the Action Center like *Run action*: `approval` says what the flow owner will be asked (`runs_at_once`, `confirm`, `confirm_and_authpermit`). Publishing a flow with a partner step its owner can't use answers 409 `partner_unavailable`.

Scope: flows:read · flows.partners

Responses 200 · 401 · 403 · 429

200 Success

cost object
fields
compose_credits integer | null
label string
out boolean
read_only boolean
partners * [object]
fields
actions * [object]
fields
approval "runs_at_once" | "confirm" | "confirm_and_authpermit"
description string | null
key * string
reason string | null
risk string
state string
title string
name * string
platform * string
reason string | null
state * "available" | "connect" | "create_account" | "coming_soon"
triggers * [object]
fields
event * string `*` = the partner sends no events yet
reason string | null
state string
title string

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/flows/runs

Runs, newest first

Scope: flows:read · paginated · flows.runs

ParameterInTypeDescription
statusquery"queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "refused"
flow_idquerystring (uuid)
limitqueryintegerDefault 50, at most 200
cursorquerystringThe `next_cursor` of the previous page
Responses 200 · 401 · 403 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
runs * [FlowRun]
fields

FlowRun

credits string Decimal credits
error string | null
error_node string | null
finished_at string | null
flow_id string (uuid)
id * string (uuid)
input any
inserted_at string (date-time)
path [string] Node ids in the order they ran
started_at string | null
status "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "refused"
steps integer Step count
test boolean
trigger string What started it (api, webhook, schedule …)
version_id string | null

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

GET /api/v1/flows/runs/{run_id}

One run with its steps

Scope: flows:read · flows.run

ParameterInTypeDescription
run_id *pathstring (uuid)The run
Responses 200 · 401 · 403 · 404 · 429

200 Success

run * object A FlowRun whose `steps` holds the step list
fields
steps [FlowStep]
fields

FlowStep

attempt integer
credits string Decimal credits
error string | null
finished_at string | null
id * string (uuid)
input any
item integer | null
ms integer | null
node string | null Node name
node_id string
output any
port string | null
started_at string | null
status string
type string Node type

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/flows/runs/{run_id}/cancel

Cancel a run

Scope: flows:write · Idempotency-Key · flows.cancel

ParameterInTypeDescription
run_id *pathstring (uuid)The run
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

run * FlowRun
fields

FlowRun

credits string Decimal credits
error string | null
error_node string | null
finished_at string | null
flow_id string (uuid)
id * string (uuid)
input any
inserted_at string (date-time)
path [string] Node ids in the order they ran
started_at string | null
status "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "refused"
steps integer Step count
test boolean
trigger string What started it (api, webhook, schedule …)
version_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Not possible in the run's state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/flows/runs/{run_id}/resume

Resume a run from a step

Scope: flows:write · uses AI credits · Idempotency-Key · flows.resume

ParameterInTypeDescription
run_id *pathstring (uuid)The run
Request body application/json
step_id * string (uuid) The step to run again from
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

run * FlowRun
fields

FlowRun

credits string Decimal credits
error string | null
error_node string | null
finished_at string | null
flow_id string (uuid)
id * string (uuid)
input any
inserted_at string (date-time)
path [string] Node ids in the order they ran
started_at string | null
status "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "refused"
steps integer Step count
test boolean
trigger string What started it (api, webhook, schedule …)
version_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Not possible in the run's state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/flows/runs/{run_id}/retry

Retry a failed run

Scope: flows:write · uses AI credits · Idempotency-Key · flows.retry

ParameterInTypeDescription
run_id *pathstring (uuid)The run
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

run * FlowRun
fields

FlowRun

credits string Decimal credits
error string | null
error_node string | null
finished_at string | null
flow_id string (uuid)
id * string (uuid)
input any
inserted_at string (date-time)
path [string] Node ids in the order they ran
started_at string | null
status "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "refused"
steps integer Step count
test boolean
trigger string What started it (api, webhook, schedule …)
version_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Not possible in the run's state

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/flows/templates

Flow templates

Scope: flows:read · flows.templates

Responses 200 · 401 · 403 · 429

200 Success

account * [FlowTemplate]
fields

FlowTemplate

category string | null
id * string (uuid)
installs integer
moderation string
name string
summary string | null
version integer
builtin * [object]
fields
category string
key string
name string
summary string
public * [FlowTemplate]
fields

FlowTemplate

category string | null
id * string (uuid)
installs integer
moderation string
name string
summary string | null
version integer

401 Problem details (401)

403 Problem details (403)

429 Problem details (429)

POST /api/v1/flows/templates/{template_id}/install

Install a template as a new flow

Scope: flows:write · Idempotency-Key · flows.install

ParameterInTypeDescription
template_id *pathstringA built-in template key or a template id
Request body application/json
personal boolean
Responses 201 · 401 · 402 · 403 · 404 · 409 · 422 · 429

201 Success

flow * FlowDetail
fields

FlowDetail

category string | null
current_version_id string | null
description string | null
draft object The draft graph
email string | null The flow's inbound address
graph object The published graph
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
settings object
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
triggers [object]
fields
event_type string | null
kind string
next_run_at string | null
node_id string
updated_at string (date-time)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

DELETE /api/v1/flows/{id}

Delete a flow

Scope: flows:write · flows.delete

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/flows/{id}

One flow with its draft, graph and triggers

Scope: flows:read · flows.show

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

flow * FlowDetail
fields

FlowDetail

category string | null
current_version_id string | null
description string | null
draft object The draft graph
email string | null The flow's inbound address
graph object The published graph
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
settings object
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
triggers [object]
fields
event_type string | null
kind string
next_run_at string | null
node_id string
updated_at string (date-time)

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

PATCH /api/v1/flows/{id}

Change a flow (and save its draft)

Scope: flows:write · flows.update

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
category "documents" | "crm" | "meetings" | "support" | "marketing" | "operations" | "finance" | "personal" | "other"
description string
expected_path [string] Node ids of the expected path (process mining)
graph object A new draft graph
name string
run_as "owner" | "service" Account flows only
settings object Flow settings (merged)
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

flow * FlowDetail
fields

FlowDetail

category string | null
current_version_id string | null
description string | null
draft object The draft graph
email string | null The flow's inbound address
graph object The published graph
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
settings object
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
triggers [object]
fields
event_type string | null
kind string
next_run_at string | null
node_id string
updated_at string (date-time)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/flows/{id}/definition

Export the flow as code

JSON by default; `format=yaml` answers `application/yaml` text.

Scope: flows:read · flows.definition

ParameterInTypeDescription
id *pathstring (uuid)
formatquery"json" | "yaml"
whichquery"current" | "draft"The published graph (default) or the draft
Responses 200 · 401 · 403 · 404 · 429

200 Success

FlowDefinition

category string | null
description string | null
graph object Nodes and edges
kind "account" | "personal"
name string
record_sender_flow integer Format version (1)
run_as string
settings object

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

PUT /api/v1/flows/{id}/definition

Replace the flow from code

Saves the definition as the draft; `publish: true` also publishes it as a new version.

Scope: flows:write · flows.put_definition

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
definition FlowDefinition
fields

FlowDefinition

category string | null
description string | null
graph object Nodes and edges
kind "account" | "personal"
name string
record_sender_flow integer Format version (1)
run_as string
settings object
publish boolean
Responses 200 · 401 · 402 · 403 · 404 · 422 · 429

200 Success

flow * FlowDetail
fields

FlowDetail

category string | null
current_version_id string | null
description string | null
draft object The draft graph
email string | null The flow's inbound address
graph object The published graph
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
settings object
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
triggers [object]
fields
event_type string | null
kind string
next_run_at string | null
node_id string
updated_at string (date-time)
version FlowVersion
fields

FlowVersion

graph object
id * string (uuid)
note string | null
number integer
published_at string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/flows/{id}/mining

Process map of one flow

Scope: flows:read · flows.flow_mining

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

bottlenecks [object]
conformance object
fields
deviations [object]
fields
count integer
where string
expected [string]
expected_names [string]
finished integer
fitness number | null
fitting integer
credits string Decimal credits
duration object
fields
avg_s number | null
p50_s number | null
p95_s number | null
failure_points [object]
flow_id * string (uuid)
nodes [object]
runs integer
statuses object Status → count
transitions [object]
fields
count integer
from string
from_name string
to string
to_name string
variants [object]
fields
count integer
names [string]
path [string]
share number | null

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/flows/{id}/publish

Publish the draft as a new version

Scope: flows:write · Idempotency-Key · flows.publish

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
note string
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

flow * FlowDetail
fields

FlowDetail

category string | null
current_version_id string | null
description string | null
draft object The draft graph
email string | null The flow's inbound address
graph object The published graph
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
settings object
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
triggers [object]
fields
event_type string | null
kind string
next_run_at string | null
node_id string
updated_at string (date-time)
version * FlowVersion
fields

FlowVersion

graph object
id * string (uuid)
note string | null
number integer
published_at string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/flows/{id}/rollback

Roll back to an earlier version

Scope: flows:write · Idempotency-Key · flows.rollback

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
version_id * string (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

flow * FlowDetail
fields

FlowDetail

category string | null
current_version_id string | null
description string | null
draft object The draft graph
email string | null The flow's inbound address
graph object The published graph
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
settings object
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
triggers [object]
fields
event_type string | null
kind string
next_run_at string | null
node_id string
updated_at string (date-time)
version * FlowVersion
fields

FlowVersion

graph object
id * string (uuid)
note string | null
number integer
published_at string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/flows/{id}/run

Start a run

Queues a run (202). A repeated `idempotency_key` answers 200 `{duplicate: true}` without a new run. AI nodes spend credits.

Scope: flows:write · uses AI credits · Idempotency-Key · flows.run_flow

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
idempotency_key string
input object The trigger payload
Responses 202 · 401 · 402 · 403 · 404 · 409 · 422 · 429

202 Success

object | object

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/flows/{id}/runs

A flow's last 100 runs

Scope: flows:read · paginated · flows.flow_runs

ParameterInTypeDescription
id *pathstring (uuid)
statusquery"queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "refused"
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 404 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
runs * [FlowRun]
fields

FlowRun

credits string Decimal credits
error string | null
error_node string | null
finished_at string | null
flow_id string (uuid)
id * string (uuid)
input any
inserted_at string (date-time)
path [string] Node ids in the order they ran
started_at string | null
status "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "refused"
steps integer Step count
test boolean
trigger string What started it (api, webhook, schedule …)
version_id string | null

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/flows/{id}/status

Turn a flow on or off

Scope: flows:write · Idempotency-Key · flows.status

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
status * "active" | "disabled"
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

flow * Flow
fields

Flow

category string | null
current_version_id string | null
description string | null
id * string (uuid)
inserted_at string (date-time)
kind "account" | "personal"
last_run_at string | null
name string
run_as "owner" | "service"
run_count integer
source "manual" | "template" | "n8n" | "code" | "marketplace"
status "draft" | "active" | "disabled"
updated_at string (date-time)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/flows/{id}/test

Start a test run

Runs the draft: every side effect and AI call is simulated unless `live: true` (then AI nodes spend credits).

Scope: flows:write · uses AI credits · Idempotency-Key · flows.test

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
input object
live boolean Perform real actions
Responses 202 · 401 · 402 · 403 · 404 · 409 · 422 · 429

202 Success

run * FlowRun
fields

FlowRun

credits string Decimal credits
error string | null
error_node string | null
finished_at string | null
flow_id string (uuid)
id * string (uuid)
input any
inserted_at string (date-time)
path [string] Node ids in the order they ran
started_at string | null
status "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "refused"
steps integer Step count
test boolean
trigger string What started it (api, webhook, schedule …)
version_id string | null

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/flows/{id}/versions

Published versions

Scope: flows:read · paginated · flows.versions

ParameterInTypeDescription
id *pathstring (uuid)
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 403 · 404 · 429

200 Success

has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last
versions * [FlowVersion]
fields

FlowVersion

graph object
id * string (uuid)
note string | null
number integer
published_at string | null

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

GET /api/v1/flows/{id}/webhook

The flow's webhook and email trigger

People who may edit the flow only.

Scope: flows:read · flows.webhook

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 403 · 404 · 429

200 Success

email string | null The flow's inbound address
secret string Signing secret
signature string How deliveries are signed
url * string (uri)

401 Problem details (401)

403 Problem details (403)

404 Problem details (404)

429 Problem details (429)

POST /api/v1/flows/{id}/webhook/rotate

Rotate the webhook URL and secret

The old URL and secret stop working at once.

Scope: flows:write · Idempotency-Key · flows.rotate_webhook

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 402 · 403 · 404 · 409 · 422 · 429

200 Success

secret * string
url * string (uri)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

404 Problem details (404)

409 Problem details (409)

422 Problem details (422)

429 Problem details (429)