Flow Management API
Flows in ThunderID are node-graph definitions that orchestrate authentication and registration sessions; use this API to create, version, and activate flow definitions that the execution engine steps through at runtime.
Download the OpenAPI definition (YAML)
Security schemes
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:8090/oauth2/token, authorization URL https://localhost:8090/oauth2/authorize
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
clientCredentials flow, token URL https://localhost:8090/oauth2/token
1 scopes
| Scope | Description |
|---|---|
system | Access to system management APIs |
Flow Management
CRUD operations for flow definitions.
List all flows
GET /flows
Retrieves a paginated list of all flow definitions
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowType | query | string | Filter by flow type Allowed values: | |
limit | query | integer | Maximum number of flows to return Default: | |
offset | query | integer | Number of flows to skip Default: | |
filter | query | string | Filter flows by organization unit with |
Responses
| Code | Description | Schema |
|---|---|---|
200 | List of flows retrieved successfully | FlowListResponse |
400 | Invalid query parameters | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
500 | Internal server error | Error |
Create a new flow
POST /flows
Creates a new flow definition
Scopes: system
Request body (required): application/json
Schema: FlowDefinitionCreateRequest
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the flow |
handle | string | Yes | URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed. |
flowType | string | Yes | Type of flow Allowed values: |
nodes | array of Node | Yes | List of nodes that define the flow graph |
ouId | string | Yes | ID of the organization unit that owns the flow. Required on create, and the organization unit has to exist. It cannot change afterwards: an update can leave it out to keep the current owner, or send the id the flow already has. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Flow created successfully | FlowDefinitionResponse |
400 | Invalid flow definition | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
500 | Internal server error | Error |
Get flow by ID
GET /flows/{flowId}
Retrieves a specific flow definition by its unique identifier
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
ouId | query | string | The organization unit to see the flow as. A flow it owns comes back whole, one shared with it comes back as its variables only. Leave it out for the whole definition. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Flow retrieved successfully | one of: FlowDefinitionResponse, SharedFlowResponse |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | Flow not found | Error |
500 | Internal server error | Error |
Update flow
PUT /flows/{flowId}
Updates an existing flow definition by its unique identifier
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow to update |
Request body (required): application/json
Schema: FlowDefinitionUpdateRequest
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the flow |
handle | string | Yes | URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed. |
flowType | string | Yes | Type of flow Allowed values: |
nodes | array of Node | Yes | List of nodes that define the flow graph |
ouId | string | ID of the organization unit that owns the flow. Required on create, and the organization unit has to exist. It cannot change afterwards: an update can leave it out to keep the current owner, or send the id the flow already has. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Flow updated successfully | FlowDefinitionResponse |
400 | Invalid flow definition or update not permitted | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | The caller does not act for the organization unit that owns the flow, as is the case for a flow that was only shared with it, so it cannot be changed (FLM-1039) | Error |
404 | Flow not found | Error |
409 | The new definition breaks a sharing policy of a variable it keeps (FLM-1041) or invalidates a value an organization unit saved (FLM-1042) | Error |
500 | Internal server error | Error |
Delete flow
DEL /flows/{flowId}
Deletes an existing flow definition by its unique identifier
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow to delete |
ouId | query | string | The organization unit the call is made for. When given, only the organization unit that owns the flow may read its definition and change it. Leave it out for a call that is not made for an organization unit. |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Flow deleted successfully | |
400 | Bad request — missing/invalid flow ID or attempting to delete a declarative (read-only) flow | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | The caller may not delete the flow. With | Error |
404 | Flow not found (FLM-1003), or with | Error |
500 | Internal server error | Error |
Get flow usages
GET /flows/{flowId}/usages
Returns the resources that reference this flow (through its authentication, registration, or recovery flow slots), aggregated across all resource types. This endpoint is informational only — it drives the pre-delete confirmation dialog in the UI and does not gate deletion on the server.
When usage data is unavailable (e.g. the server has not fully initialised),
totalResults and summary are null rather than 0/empty.
Consumers must treat null as "unknown" and 0 as "confirmed empty".
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
ouId | query | string | The organization unit the call is made for. When given, only the organization unit that owns the flow may read its definition and change it. Leave it out for a call that is not made for an organization unit. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Resources that reference this flow | ResourceUsagesResponse |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | Flow not found | Error |
500 | Internal server error | Error |
Flow Versioning
Operations for listing and activating flow versions.
Get flow version history
GET /flows/{flowId}/versions
Retrieves the complete version history of a specific flow.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
ouId | query | string | The organization unit the call is made for. When given, only the organization unit that owns the flow may read its definition and change it. Leave it out for a call that is not made for an organization unit. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Flow version history retrieved successfully | FlowVersionListResponse |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | Flow not found | Error |
500 | Internal server error | Error |
Get specific flow version
GET /flows/{flowId}/versions/{version}
Retrieves a specific version of a flow by version number
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
version | path | integer | Yes | Version number to retrieve |
ouId | query | string | The organization unit the call is made for. When given, only the organization unit that owns the flow may read its definition and change it. Leave it out for a call that is not made for an organization unit. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Flow version retrieved successfully | FlowVersionResponse |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | Flow or version not found | Error |
500 | Internal server error | Error |
Restore flow to a previous version
POST /flows/{flowId}/restore
Restores a flow to a specific previous version. This creates a new version with the content from the specified version.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
ouId | query | string | The organization unit the call is made for. When given, only the organization unit that owns the flow may read its definition and change it. Leave it out for a call that is not made for an organization unit. |
Request body (required): application/json
Schema: RestoreVersionRequest
1 property
| Name | Type | Required | Description |
|---|---|---|---|
version | integer | Yes | Version number to restore to |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Flow restored successfully — returns the updated flow definition with the new active version | FlowDefinitionResponse |
400 | Invalid request | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | Flow or version not found | Error |
409 | The version breaks a sharing policy of a variable it keeps (FLM-1041) or invalidates a value an organization unit saved (FLM-1042) | Error |
500 | Internal server error | Error |
Flow Sharing
Share a flow with child organization units, and see what was shared.
List how a flow is shared
GET /flows/{flowId}/sharing-policies
Lists the flow's sharing policies, for the owner and for a unit that re-shared it. A unit the flow was shared with reads its own terms from GET /flows/{flowId}/overlay-rules.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
limit | query | integer | Maximum number of records to return. Default: | |
offset | query | integer | Number of records to skip. Default: |
Responses
| Code | Description | Schema |
|---|---|---|
200 | One page of policies | SharingPolicyListResponse |
400 | The limit or offset is invalid (FLM-1006, FLM-1007) | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | Flow not found (FLM-1003) | Error |
Share a flow with child organization units
POST /flows/{flowId}/sharing-policies
Records how the flow is shared: the organization units it reaches and, per variable (variables.<identifier>), the terms each holds it on. There is one policy per flow per initiating organization unit.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
Request body (required): application/json
Schema: SharingPolicyRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
initiatingOuId | string | The organization unit whose decision this is. Omitted means the flow's owner. A unit other than the owner may only issue a | |
childUnits | ChildUnits | The organization units beneath the issuer, in one of the two shapes below, chosen by | |
otherTreeRoots | OtherTreeRootsSelected | Named root organization units of other trees, and nothing below them. Owner only, and below a root it also needs | |
version | integer | The policy version the caller believes it is editing. Required on an edit, ignored on a create. |
Responses
| Code | Description | Schema |
|---|---|---|
201 | Sharing policy created | SharingPolicy |
400 | Invalid policy (FLM-1034), or a policy reaching every unit or every other tree, which only a resource file or an import may create (FLM-1043). | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | Flow not found (FLM-1003) | Error |
409 | The issuing organization unit already has a policy for this flow (FLM-1031). Edit it instead. | Error |
Get a sharing policy of a flow
GET /flows/{flowId}/sharing-policies/{policyId}
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
policyId | path | string | Yes | Unique identifier of the sharing policy |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The policy | SharingPolicy |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | Flow or policy not found (FLM-1003, FLM-1030) | Error |
Replace a sharing policy of a flow
PUT /flows/{flowId}/sharing-policies/{policyId}
Replaces the policy's sections, with the version the caller read, and refuses any other version. A unit the policy no longer reaches loses the flow and the values it held.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
policyId | path | string | Yes | Unique identifier of the sharing policy |
Request body (required): application/json
Schema: SharingPolicyUpdateRequest
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
allUnits | AllUnits | Every organization unit in the deployment, at any depth, including later ones. It stands alone, and only a resource file or an import may create it. | |
childUnits | ChildUnits | The organization units beneath the issuer, in one of the two shapes below, chosen by | |
otherTreeRoots | OtherTreeRoots | The roots of other trees. A create may send the named shape only, while a policy that reaches every other tree keeps that reach on an edit. | |
version | integer | Yes | The policy version the caller believes it is editing. An edit against any other version is refused. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The updated policy | SharingPolicy |
400 | Invalid policy (FLM-1034) | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | Flow or policy not found (FLM-1003, FLM-1030) | Error |
409 | The policy changed since it was read (FLM-1032) | Error |
Remove a sharing policy of a flow
DEL /flows/{flowId}/sharing-policies/{policyId}
Removes the policy and what depended on it, including policies issued by units it reached. Deleting a policy that is already gone succeeds.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
policyId | path | string | Yes | Unique identifier of the sharing policy |
Responses
| Code | Description | Schema |
|---|---|---|
204 | Policy removed | |
400 | The policy is declared in a resource file and cannot be removed here (FLM-1033) | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
See what was shared with an organization unit
GET /flows/{flowId}/overlay-rules
Returns, for the organization unit in ouId, whether it owns or can see the flow and the effective rule for each variable. It is the same ResolvedOverlay answer as GET /applications/{id}/overlay-rules, and a unit no policy reaches gets 404.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
ouId | query | string | Yes | The organization unit to resolve for. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The resolved overlay | ResolvedOverlay |
400 | The | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | The flow does not exist, or no policy reaches the organization unit. The two answer alike (FLM-1003) | Error |
Flow Variables
Read and override the variables of a flow for an organization unit.
Get the variables of a flow for an organization unit
GET /flows/{flowId}/variables
Returns the values the organization unit in ouId has set for the flow's variables, in the shape PUT takes. The value in force is this override, or else the defaultValue from GET /flows/{flowId}.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
ouId | query | string | Yes | The organization unit to act for. It decides how the flow is seen (owned or shared) and whose values are read or written. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The flow's variables | VariablesResponse |
400 | The | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | Forbidden - insufficient permissions to perform this operation | Error |
404 | The flow does not exist, or is neither owned by nor shared with the organization unit. The two answer alike (FLM-1003) | Error |
Override the variables of a flow for an organization unit
PUT /flows/{flowId}/variables
Sets the values the organization unit named in the ouId of the body holds for the flow's variables, replacing what it held, so a variable left out returns to its default. Every value is validated before any is written (FLM-1035, FLM-1036, FLM-1037), and a connection must be one the unit owns or was shared.
Scopes: system
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
flowId | path | string | Yes | Unique identifier of the flow |
Request body (required): application/json
Schema: SetVariablesRequest
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | Yes | The organization unit whose values are set. The flow has to be owned by, or shared with, it. |
values | object | Yes | The value of each variable to set, keyed by identifier, in the variable's own type: a string, a number or a boolean. A value is never null. |
Responses
| Code | Description | Schema |
|---|---|---|
200 | The flow's variables after the change | VariablesResponse |
400 | The | Error |
401 | Unauthorized - missing or invalid authentication token | Error |
403 | The organization unit may not set the variable (FLM-1037) | Error |
404 | The flow does not exist, or is neither owned by nor shared with the organization unit. The two answer alike (FLM-1003) | Error |
Schemas
ResourceUsage
Type: object
A single resource that references the target resource.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
resourceType | string | Yes | Type of the referencing resource. Allowed values: |
id | string (uuid) | Yes | Identifier of the referencing resource. |
displayName | string | Yes | Human-readable name of the referencing resource. |
behaviorOnDelete | string | Yes | What happens to this resource when the target resource is deleted.
Allowed values: |
ResourceUsagesSummary
Type: object
Per-resource-type count of usages, keyed by resource type
(e.g. application, agent). Null when the counts could not be determined.
ResourceUsagesResponse
Type: object
Resources that reference a target resource, aggregated across all resource types. Drives pre-delete confirmation dialogs; informational only.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | Total number of resources that reference the target resource. Null when usage data is unavailable; 0 means confirmed empty. | |
count | integer | Number of results returned. | |
summary | ResourceUsagesSummary | Per-resource-type count of usages, keyed by resource type
(e.g. | |
usages | array of ResourceUsage |
FlowListResponse
Type: object
One page of the flows the requested organization unit owns or has been shared.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | Number of results that match the listing operation. | |
startIndex | integer | Index of the first element of the page, which will be equal to offset + 1. | |
count | integer | Number of elements in the returned page. | |
flows | array of BasicFlowDefinitionResponse | ||
links | array of Link | Navigation links for pagination. |
FlowVersionListResponse
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalVersions | integer | Total number of versions available for this flow | |
versions | array of FlowVersionInfo | List of flow versions (most recent first) |
FlowVersionInfo
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
version | integer | Yes | Version number |
createdAt | string (date-time) | Yes | Timestamp when this specific version was created |
isActive | boolean | Yes | Indicates if this is the currently active version |
RestoreVersionRequest
Type: object
1 property
| Name | Type | Required | Description |
|---|---|---|---|
version | integer | Yes | Version number to restore to |
Link
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
href | string | Yes | The URI of the link |
rel | string | Yes | The link relation type (first, next, previous, last) |
BasicFlowDefinitionResponse
Type: object
A flow in a listing. A flow shared with the requested organization unit is listed as one it owns is, with isOwnedByOU false and isReadOnly true.
10 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier for the flow |
flowType | string | Yes | Allowed values: |
name | string | Yes | Name of the flow |
handle | string | Yes | URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed. |
activeVersion | integer | Yes | The version number that is currently active |
isReadOnly | boolean | Yes | Whether this flow is immutable (declarative resource — cannot be modified or deleted) |
isOwnedByOU | boolean | With an | |
ouId | string | Yes | ID of the organization unit that owns the flow. In a list or read made for an organization unit the flow was shared with, the ID of that organization unit instead. |
createdAt | string (date-time) | Yes | Timestamp when the flow was initially created |
updatedAt | string (date-time) | Yes | Timestamp when the flow was last modified |
FlowDefinitionUpdateRequest
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the flow |
handle | string | Yes | URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed. |
flowType | string | Yes | Type of flow Allowed values: |
nodes | array of Node | Yes | List of nodes that define the flow graph |
ouId | string | ID of the organization unit that owns the flow. Required on create, and the organization unit has to exist. It cannot change afterwards: an update can leave it out to keep the current owner, or send the id the flow already has. |
FlowDefinitionCreateRequest
Type: FlowDefinitionUpdateRequest
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the flow |
handle | string | Yes | URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed. |
flowType | string | Yes | Type of flow Allowed values: |
nodes | array of Node | Yes | List of nodes that define the flow graph |
ouId | string | Yes | ID of the organization unit that owns the flow. Required on create, and the organization unit has to exist. It cannot change afterwards: an update can leave it out to keep the current owner, or send the id the flow already has. |
FlowDefinitionResponse
Type: object
A flow as the organization unit that owns it sees it: the whole definition, the variables included.
11 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier for the flow |
name | string | Yes | Name of the flow |
flowType | string | Yes | Type of flow Allowed values: |
handle | string | Yes | URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed. |
activeVersion | integer | Yes | The version number that is currently active |
isReadOnly | boolean | Yes | Whether this flow is immutable (declarative resource — cannot be modified or deleted) |
isOwnedByOU | boolean | With Allowed values: | |
ouId | string | Yes | ID of the organization unit that owns the flow. |
nodes | array of Node | Yes | List of nodes that define the flow graph |
createdAt | string (date-time) | Yes | Timestamp when the flow was initially created |
updatedAt | string (date-time) | Yes | Timestamp when the flow was last modified |
FlowVersionResponse
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier for the flow |
name | string | Yes | Name of the flow |
flowType | string | Yes | Type of flow Allowed values: |
handle | string | Yes | URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed. |
version | integer | Yes | Version number of this flow snapshot |
isActive | boolean | Yes | Indicates if this is the currently active version of the flow |
nodes | array of Node | Yes | List of nodes that define the flow graph |
createdAt | string (date-time) | Yes | Timestamp when this specific version was created |
Node
Type: object
26 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier for the node within the flow |
type | string | Yes | Type of node Allowed values: |
layout | NodeLayout | ||
layout.size | object | Dimensions of the node in the flow composer canvas | |
layout.position | object | Position of the node in the flow composer canvas | |
meta | NodeMeta | Optional UI metadata for PROMPT nodes (verbose mode) | |
meta.components | array of Component | UI components to render (headings, inputs, buttons, etc.) | |
prompts | array of PromptDefinition | Prompt groups for PROMPT nodes. Each entry pairs a set of inputs with a single
action (navigation target). Mutually exclusive with | |
variant | string | Optional PROMPT node sub-type. Use Allowed values: | |
inputs | array of VariableDefinition | Only on a | |
condition | ConditionDefinition | Optional condition that gates whether this node executes | |
condition.key | string | Yes | Runtime data key to evaluate |
condition.value | string | Yes | Expected value to match against the runtime key |
condition.onSkip | string | Yes | ID of the node to transition to when the condition is not met |
properties | object | Node-level properties for configuration (e.g., senderId for notification executors, idpId for social login executors). | |
executor | Executor | Executor configuration for TASK_EXECUTION nodes (required) | |
executor.name | string | Yes | Name of the registered executor |
executor.mode | string | Optional execution mode or configuration hint for the executor | |
executor.inputs | array of NodeInput | Input references the executor should read from the accumulated user inputs. Each entry maps a flow input (by ref/identifier) to the executor's expected parameter. | |
flow | FlowReference | Flow reference for CALL nodes (required) | |
flow.ref | string | Yes | Handle of the target flow to invoke |
onSuccess | string | Next node ID on successful execution (START, TASK_EXECUTION, CALL, and VARIABLES nodes) | |
onFailure | string | Next node ID on failed execution (TASK_EXECUTION nodes) | |
onIncomplete | string | For TASK_EXECUTION nodes: ID of the PROMPT node to transition to when user input is required to complete the task. | |
next | string | For display-only PROMPT nodes: ID of the next node to automatically transition to
after the display content is rendered. Mutually exclusive with | |
message | string | For display-only PROMPT nodes: a plain-text message returned in non-verbose mode alongside the flow status, intended for lightweight clients that do not process the full meta/components payload. |
VariableDefinition
Type: object
One variable of a flow, with a type and a default.
11 properties
| Name | Type | Required | Description |
|---|---|---|---|
identifier | string | Yes | Name of the variable. Starts with a letter and holds letters, digits and underscores. |
type | string | Yes | How the value is entered and checked Allowed values: |
label | string | ||
description | string | ||
defaultValue | any | Yes | The value the variable has until another is set |
validation | array of object | Rules a text, email or phone value has to meet | |
options | array of any | For a | |
min | number | ||
max | number | ||
category | string | For a Allowed values: | |
connectionTypes | array of string | For a |
NodeLayout
Type: object
Layout information for the flow composer UI. This metadata is used only by the visual flow composer to position and size nodes on the canvas.
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
size | object | Dimensions of the node in the flow composer canvas | |
size.width | number | Yes | Width of the node in pixels |
size.height | number | Yes | Height of the node in pixels |
position | object | Position of the node in the flow composer canvas | |
position.x | number | Yes | X-coordinate of the node |
position.y | number | Yes | Y-coordinate of the node |
NodeMeta
Type: object
UI metadata for rendering PROMPT nodes in verbose mode
1 property
| Name | Type | Required | Description |
|---|---|---|---|
components | array of Component | UI components to render (headings, inputs, buttons, etc.) |
NodeInput
Type: object
6 properties
| Name | Type | Required | Description |
|---|---|---|---|
ref | string | Reference to the input component ID. For PROMPT nodes, this refers to components in meta.components. Optional but recommended for better flow visualization and debugging. | |
type | string | Yes | Input type (TEXT_INPUT, PASSWORD_INPUT, OTP_INPUT, etc.) |
identifier | string | Yes | The mapped attribute identifier (e.g., username, password, otp) |
required | boolean | Yes | Whether this input is required |
defaultValue | string | A value the flow supplies for the input. On an executor input it is written before the executor runs, and only when the flow has no non-empty value for the input. On a prompt input the person is still asked, and the prompt returns it as the input's defaultValue, and as the meta component's value when the request sets verbose, so a client can show it prefilled. It is used when the person submits the prompt and the input is empty or missing. For a constant input it is the fixed value. An empty defaultValue is never written. Always a string, so a boolean defaultValue is "true" or "false". Not allowed on PASSWORD_INPUT and OTP_INPUT inputs. A BOOLEAN_INPUT defaultValue must read as a boolean and a NUMBER_INPUT defaultValue as a number. The defaultValue of any other type is not checked. On a prompt input the defaultValue must also satisfy the input's validation rules. It is not checked against the schema of the user type, which is applied when the flow runs. | |
constant | boolean | When true, defaultValue always replaces any existing value for the input at the node, and a non-empty defaultValue is required. Supported on executor inputs only: a prompt input cannot be constant, and no prompt in the flow can list an input that an executor node holds constant. Not allowed on PASSWORD_INPUT and OTP_INPUT inputs. |
NodeAction
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
ref | string | Yes | Reference to the action component ID in meta.components |
type | string | Optional action type forwarded to the next node's executor so it can determine which processing path to take. The value is an opaque string: the flow author and the executor that consumes it agree on the vocabulary, so the recognized values are documented by that executor rather than fixed here. If omitted, no action-type hint is forwarded. | |
nextNode | string | Yes | ID of the next node to navigate to when this action is triggered |
Executor
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Name of the registered executor |
mode | string | Optional execution mode or configuration hint for the executor | |
inputs | array of NodeInput | Input references the executor should read from the accumulated user inputs. Each entry maps a flow input (by ref/identifier) to the executor's expected parameter. |
Component
Type: object
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Unique identifier for the component |
type | string | Yes | Component type. Common types:
|
label | string | Display label or text content (use {{ t(namespace:key) }} for i18n or plain text) | |
variant | string | Component style variant (e.g., HEADING_01, PRIMARY, etc.) | |
required | boolean | Whether the component is required (for input fields) | |
placeholder | string | Placeholder text for input fields (use {{ t(namespace:key) }} for i18n or plain text) | |
length | integer | Length specification (e.g., for OTP_INPUT) | |
components | array of Component | Nested child components (for BLOCK type) |
PromptDefinition
Type: object
Groups a set of inputs with the action taken when the user submits them. A PROMPT node may have multiple prompt groups — one per available action path.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
inputs | array of NodeInput | Input fields presented to the user for this prompt group | |
action | NodeAction | The action triggered when the user submits this prompt group | |
action.ref | string | Yes | Reference to the action component ID in meta.components |
action.type | string | Optional action type forwarded to the next node's executor so it can determine which processing path to take. The value is an opaque string: the flow author and the executor that consumes it agree on the vocabulary, so the recognized values are documented by that executor rather than fixed here. If omitted, no action-type hint is forwarded. | |
action.nextNode | string | Yes | ID of the next node to navigate to when this action is triggered |
ConditionDefinition
Type: object
Optional condition that determines whether a node should execute.
If the condition is not met, the engine skips the node and transitions to onSkip.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Runtime data key to evaluate |
value | string | Yes | Expected value to match against the runtime key |
onSkip | string | Yes | ID of the node to transition to when the condition is not met |
FlowReference
Type: object
Reference to another flow, used by CALL nodes.
1 property
| Name | Type | Required | Description |
|---|---|---|---|
ref | string | Yes | Handle of the target flow to invoke |
Error
Type: object
Error response. Validation errors (FLM-1020 through FLM-1024) use consolidated
error codes; the description.defaultValue field carries context-specific details
(e.g., which node or input caused the failure).
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Error code. Client errors follow the FLM-XXXX convention; server errors use SSE-XXXX. | |
message | I18nMessage | Internationalized message with translation key and default value. | |
description | I18nMessage | Internationalized message with translation key and default value. |
I18nMessage
Type: object
Internationalized message with translation key and default value.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
key | string | Yes | Translation key for fetching localized message. |
defaultValue | string | Yes | Default message in English (fallback). |
SharedFlowResponse
Type: object
A flow as an organization unit it was shared with sees it. It holds the variables that apply to that unit and nothing else of the definition: no nodes, no interceptors, no layout, no versions and no timestamps. What it shows of each variable is resolved for the unit from the owner's flow and the sharing policy, so the unit sees only what applies to it. The unit's own overrides are read from GET /flows/{flowId}/variables.
8 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | |
handle | string | Yes | |
name | string | Yes | |
flowType | string | Yes | Allowed values: |
ouId | string | Yes | ID of the organization unit the flow is shown for, the one in the request's |
isOwnedByOU | boolean | Yes | Always Allowed values: |
isReadOnly | boolean | Yes | Always true: a shared flow cannot be changed or deleted by the organization unit it is shared with. Allowed values: |
variables | array of VariableDefinition | Yes | The variables the sharing policy names for the organization unit, each resolved for it. |
SharingPolicyRequest
Type: any of: any, any
One organization unit's decision about this flow: a childUnits and otherTreeRoots section, at least one, each reaching a whole group or naming units, never both.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
initiatingOuId | string | The organization unit whose decision this is. Omitted means the flow's owner. A unit other than the owner may only issue a | |
childUnits | ChildUnits | The organization units beneath the issuer, in one of the two shapes below, chosen by | |
otherTreeRoots | OtherTreeRootsSelected | Named root organization units of other trees, and nothing below them. Owner only, and below a root it also needs | |
version | integer | The policy version the caller believes it is editing. Required on an edit, ignored on a create. |
SharingPolicyUpdateRequest
Type: any of: any, any, any
A replacement for a policy's sections. It names no initiatingOuId, and a section that already reaches a whole group keeps that reach but cannot be introduced by editing.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
allUnits | AllUnits | Every organization unit in the deployment, at any depth, including later ones. It stands alone, and only a resource file or an import may create it. | |
childUnits | ChildUnits | The organization units beneath the issuer, in one of the two shapes below, chosen by | |
otherTreeRoots | OtherTreeRoots | The roots of other trees. A create may send the named shape only, while a policy that reaches every other tree keeps that reach on an edit. | |
version | integer | Yes | The policy version the caller believes it is editing. An edit against any other version is refused. |
AllUnits
Type: object
Every organization unit in the deployment, at any depth, including later ones. It stands alone, and only a resource file or an import may create it.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
excludedOuIds | array of string | Organization units withheld from the section, each taking everything beneath it out of reach as well. Any organization unit may be excluded. | |
overlayRules | object | The terms the organization units reached hold the flow on, keyed by field. For a flow the field is a variable: |
ChildUnits
Type: one of: ChildUnitsAll, ChildUnitsSelected
The organization units beneath the issuer, in one of the two shapes below, chosen by mode.
ChildUnitsAll
Type: object
Everything beneath the issuing organization unit, at any depth, including units created later.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
excludedOuIds | array of string | Organization units withheld from the section, with everything beneath each. Only units directly beneath the issuer may be excluded. | |
overlayRules | object | The terms the organization units reached hold the flow on, keyed by field. For a flow the field is a variable: |
ChildUnitsSelected
Type: object
Named organization units directly beneath the issuer. It takes no excludedOuIds: leave a unit out of units to withhold it.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
units | array of ChildUnit | Yes | The organization units reached. An organization unit is listed only once in a policy. |
ChildUnit
Type: object
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | Yes | A direct child of the issuing organization unit. |
reach | string | Yes | How far the flow carries from the named unit: Allowed values: |
overlayRules | object | The terms the organization units reached hold the flow on, keyed by field. For a flow the field is a variable: |
OtherTreeRoots
Type: one of: OtherTreeRootsSelected, OtherTreeRootsAll
The roots of other trees. A create may send the named shape only, while a policy that reaches every other tree keeps that reach on an edit.
OtherTreeRootsSelected
Type: object
Named root organization units of other trees, and nothing below them. Owner only, and below a root it also needs resource_sharing.allow_child_ou_cross_tree_sharing.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
units | array of RootUnit | Yes | The root organization units reached. An organization unit is listed only once in a policy. |
OtherTreeRootsAll
Type: object
The root of every other tree, including later ones. Only a resource file or an import may introduce it.
3 properties
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | Yes | Allowed values: |
excludedOuIds | array of string | Root organization units withheld from the section, and with them their trees. | |
overlayRules | object | The terms the organization units reached hold the flow on, keyed by field. For a flow the field is a variable: |
RootUnit
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | Yes | The root organization unit of another tree. |
overlayRules | object | The terms the organization units reached hold the flow on, keyed by field. For a flow the field is a variable: |
SharingPolicy
Type: object
A recorded sharing policy, with its sections in the shape a request states them, so an edit can copy them with version into a SharingPolicyUpdateRequest. Other fields are set by the server.
9 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | The policy's own identifier. | |
initiatingOuId | string | The organization unit whose decision this policy is. The owning unit belongs to the flow and is not repeated. | |
stage | string |
Allowed values: | |
parentPolicyId | string | The policy that made this one's issuer able to see the flow. Empty for an owner-issued policy. | |
isReadOnly | boolean | Indicates if the policy is defined in declarative configuration and cannot be modified. | |
version | integer | Bumped on every edit, and carried back on the next one. | |
allUnits | AllUnits | Every organization unit in the deployment, at any depth, including later ones. It stands alone, and only a resource file or an import may create it. | |
childUnits | ChildUnits | The organization units beneath the issuer, in one of the two shapes below, chosen by | |
otherTreeRoots | OtherTreeRoots | The roots of other trees. A create may send the named shape only, while a policy that reaches every other tree keeps that reach on an edit. |
SharingPolicyListResponse
Type: object
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
totalResults | integer | How many policies the flow has, not how many this page holds. | |
startIndex | integer | The one-based position of the first policy in this page. | |
count | integer | How many policies this page holds. | |
policies | array of SharingPolicy | ||
links | array of Link | Links to the first, previous, next and last pages, where they exist. |
ResolvedOverlay
Type: object
What one organization unit may do with the flow: whether it owns it or was shared it, which policies reached it, and the effective rule for each variable a policy named.
5 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | ||
owned | boolean | Whether the organization unit owns the flow rather than being shared it. | |
visible | boolean | Whether the organization unit can see the flow at all, which decides whether it may be named as the accessing unit on a token request. | |
policyIds | array of string | Every policy that contributed, so an answer is traceable to its inputs. | |
rules | object | The effective rule per variable, keyed |
OverlayRule
Type: object
What an organization unit may do with one variable of a flow.
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
editable | boolean | Whether the organization unit may set its own value for the variable. Default: | |
value | array of string | The value the organization unit starts with, or is pinned to when | |
allowedValues | array of string | The values the organization unit may choose from. Absent means anything the variable accepts. Empty permits nothing. | |
excludedValues | array of string | Values taken out of |
VariablesResponse
Type: object
The values an organization unit has set for the flow's variables: its overrides, keyed by variable identifier. The organization unit is the one named in the request.
1 property
| Name | Type | Required | Description |
|---|---|---|---|
values | object | Yes | The unit's own overrides, in the variable's own type. A variable the unit has not set is absent, and the value from |
SetVariablesRequest
Type: object
The organization unit and the values to set for its variables, keyed by identifier, in the same shape as the values that GET /flows/{flowId}/variables returns. Each is stored as the unit's own override. A value is never null.
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
ouId | string | Yes | The organization unit whose values are set. The flow has to be owned by, or shared with, it. |
values | object | Yes | The value of each variable to set, keyed by identifier, in the variable's own type: a string, a number or a boolean. A value is never null. |
Was this page helpful?