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
Flows the person may see
Scope: flows:read
· paginated
· flows.index
Parameter In Type Description
status query "draft" | "active" | "disabled" kind query "account" | "personal" cursor query string The `next_cursor` of the previous page limit query integer Page 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)
Example
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)
Example
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>)
Example
GET
/api/v1/flows/credentials
Credentials (metadata only)
Scope: flows:read
· paginated
· flows.credentials
Parameter In Type Description
cursor query string The `next_cursor` of the previous page limit query integer Page 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)
Example
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)
Example
DELETE
/api/v1/flows/credentials/{credential_id}
Delete a credential
Scope: flows:write
· flows.delete_credential
Parameter In Type Description
credential_id * path string (uuid) The credential
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
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)
Example
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)
Example
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)
Example
Runs, newest first
Scope: flows:read
· paginated
· flows.runs
Parameter In Type Description
status query "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "refused" flow_id query string (uuid) limit query integer Default 50, at most 200 cursor query string The `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)
Example
GET
/api/v1/flows/runs/{run_id}
One run with its steps
Scope: flows:read
· flows.run
Parameter In Type Description
run_id * path string (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)
Example
POST
/api/v1/flows/runs/{run_id}/cancel
Cancel a run
Scope: flows:write
· Idempotency-Key
· flows.cancel
Parameter In Type Description
run_id * path string (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)
Example
POST
/api/v1/flows/runs/{run_id}/resume
Resume a run from a step
Scope: flows:write
· uses AI credits
· Idempotency-Key
· flows.resume
Parameter In Type Description
run_id * path string (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)
Example
POST
/api/v1/flows/runs/{run_id}/retry
Retry a failed run
Scope: flows:write
· uses AI credits
· Idempotency-Key
· flows.retry
Parameter In Type Description
run_id * path string (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)
Example
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)
Example
POST
/api/v1/flows/templates/{template_id}/install
Install a template as a new flow
Scope: flows:write
· Idempotency-Key
· flows.install
Parameter In Type Description
template_id * path string A built-in template key or a template id
Request body application/json
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)
Example
DELETE
/api/v1/flows/{id}
Delete a flow
Scope: flows:write
· flows.delete
Parameter In Type Description
id * path string (uuid)
Responses 204 · 401 · 402 · 403 · 404 · 422 · 429
401 Problem details (401)
402 Problem details (402)
403 Problem details (403)
404 Problem details (404)
422 Problem details (422)
429 Problem details (429)
Example
One flow with its draft, graph and triggers
Scope: flows:read
· flows.show
Parameter In Type Description
id * path string (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)
Example
Change a flow (and save its draft)
Scope: flows:write
· flows.update
Parameter In Type Description
id * path string (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)
Example
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
Parameter In Type Description
id * path string (uuid) format query "json" | "yaml" which query "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)
Example
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
Parameter In Type Description
id * path string (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)
Example
GET
/api/v1/flows/{id}/mining
Process map of one flow
Scope: flows:read
· flows.flow_mining
Parameter In Type Description
id * path string (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)
Example
POST
/api/v1/flows/{id}/publish
Publish the draft as a new version
Scope: flows:write
· Idempotency-Key
· flows.publish
Parameter In Type Description
id * path string (uuid)
Request body application/json
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)
Example
POST
/api/v1/flows/{id}/rollback
Roll back to an earlier version
Scope: flows:write
· Idempotency-Key
· flows.rollback
Parameter In Type Description
id * path string (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)
Example
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
Parameter In Type Description
id * path string (uuid)
Request body application/json
idempotency_key
string
input
object
The trigger payload
Responses 202 · 401 · 402 · 403 · 404 · 409 · 422 · 429
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)
Example
GET
/api/v1/flows/{id}/runs
A flow's last 100 runs
Scope: flows:read
· paginated
· flows.flow_runs
Parameter In Type Description
id * path string (uuid) status query "queued" | "running" | "waiting" | "succeeded" | "failed" | "cancelled" | "refused" cursor query string The `next_cursor` of the previous page limit query integer Page 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)
Example
POST
/api/v1/flows/{id}/status
Turn a flow on or off
Scope: flows:write
· Idempotency-Key
· flows.status
Parameter In Type Description
id * path string (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)
Example
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
Parameter In Type Description
id * path string (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)
Example
GET
/api/v1/flows/{id}/versions
Published versions
Scope: flows:read
· paginated
· flows.versions
Parameter In Type Description
id * path string (uuid) cursor query string The `next_cursor` of the previous page limit query integer Page 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)
Example
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
Parameter In Type Description
id * path string (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)
Example
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
Parameter In Type Description
id * path string (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)
Example