Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Flow Management API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:8090

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
ScopeDescription
systemAccess to system management APIs

clientCredentials flow, token URL https://localhost:8090/oauth2/token

1 scopes
ScopeDescription
systemAccess 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

NameInTypeRequiredDescription
flowTypequerystring

Filter by flow type

Allowed values: AUTHENTICATION, REGISTRATION, USER_ONBOARDING, SELF, RECOVERY, SIGNOUT, ADMINISTRATION, INVITATION, DEVICE_GRANT

limitqueryinteger

Maximum number of flows to return

Default: 30

offsetqueryinteger

Number of flows to skip

Default: 0

filterquerystring

Filter flows by organization unit with ouId eq "<id>", the only supported expression. A list shows the flows the unit owns, then the flows shared with it.

Responses

CodeDescriptionSchema
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
NameTypeRequiredDescription
namestringYes

Name of the flow

handlestringYes

URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed.

flowTypestringYes

Type of flow

Allowed values: AUTHENTICATION, REGISTRATION, USER_ONBOARDING, SELF, RECOVERY, SIGNOUT, ADMINISTRATION, INVITATION, DEVICE_GRANT

nodesarray of NodeYes

List of nodes that define the flow graph

ouIdstringYes

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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

ouIdquerystring

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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow to update

Request body (required): application/json

Schema: FlowDefinitionUpdateRequest

5 properties
NameTypeRequiredDescription
namestringYes

Name of the flow

handlestringYes

URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed.

flowTypestringYes

Type of flow

Allowed values: AUTHENTICATION, REGISTRATION, USER_ONBOARDING, SELF, RECOVERY, SIGNOUT, ADMINISTRATION, INVITATION, DEVICE_GRANT

nodesarray of NodeYes

List of nodes that define the flow graph

ouIdstring

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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow to delete

ouIdquerystring

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

CodeDescriptionSchema
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 ouId naming an organization unit the flow was only shared with, FLM-1039.

Error
404

Flow not found (FLM-1003), or with ouId, not owned by that organization unit

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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

ouIdquerystring

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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

ouIdquerystring

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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

versionpathintegerYes

Version number to retrieve

ouIdquerystring

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

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

ouIdquerystring

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
NameTypeRequiredDescription
versionintegerYes

Version number to restore to

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

limitqueryinteger

Maximum number of records to return.

Default: 30

offsetqueryinteger

Number of records to skip.

Default: 0

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

Request body (required): application/json

Schema: SharingPolicyRequest

4 properties
NameTypeRequiredDescription
initiatingOuIdstring

The organization unit whose decision this is. Omitted means the flow's owner. A unit other than the owner may only issue a childUnits policy where the flow reached it and stopped.

childUnitsChildUnits

The organization units beneath the issuer, in one of the two shapes below, chosen by mode.

otherTreeRootsOtherTreeRootsSelected

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.

versioninteger

The policy version the caller believes it is editing. Required on an edit, ignored on a create.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

policyIdpathstringYes

Unique identifier of the sharing policy

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

policyIdpathstringYes

Unique identifier of the sharing policy

Request body (required): application/json

Schema: SharingPolicyUpdateRequest

4 properties
NameTypeRequiredDescription
allUnitsAllUnits

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.

childUnitsChildUnits

The organization units beneath the issuer, in one of the two shapes below, chosen by mode.

otherTreeRootsOtherTreeRoots

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.

versionintegerYes

The policy version the caller believes it is editing. An edit against any other version is refused.

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

policyIdpathstringYes

Unique identifier of the sharing policy

Responses

CodeDescriptionSchema
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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

ouIdquerystringYes

The organization unit to resolve for.

Responses

CodeDescriptionSchema
200

The resolved overlay

ResolvedOverlay
400

The ouId is missing (FLM-1038)

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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

ouIdquerystringYes

The organization unit to act for. It decides how the flow is seen (owned or shared) and whose values are read or written.

Responses

CodeDescriptionSchema
200

The flow's variables

VariablesResponse
400

The ouId is missing (FLM-1038)

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

NameInTypeRequiredDescription
flowIdpathstringYes

Unique identifier of the flow

Request body (required): application/json

Schema: SetVariablesRequest

2 properties
NameTypeRequiredDescription
ouIdstringYes

The organization unit whose values are set. The flow has to be owned by, or shared with, it.

valuesobjectYes

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

CodeDescriptionSchema
200

The flow's variables after the change

VariablesResponse
400

The ouId is missing (FLM-1038), a variable the flow does not declare, or that no policy names for the unit (FLM-1035), or a value that is not valid (FLM-1036)

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
NameTypeRequiredDescription
resourceTypestringYes

Type of the referencing resource.

Allowed values: application, agent

idstring (uuid)Yes

Identifier of the referencing resource.

displayNamestringYes

Human-readable name of the referencing resource.

behaviorOnDeletestringYes

What happens to this resource when the target resource is deleted.

  • fallback: the reference is kept and resolved to the system default at read time.
  • cascade: the resource is permanently deleted.

Allowed values: fallback, cascade

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
NameTypeRequiredDescription
totalResultsinteger

Total number of resources that reference the target resource. Null when usage data is unavailable; 0 means confirmed empty.

countinteger

Number of results returned.

summaryResourceUsagesSummary

Per-resource-type count of usages, keyed by resource type (e.g. application, agent). Null when the counts could not be determined.

usagesarray of ResourceUsage

FlowListResponse​

Type: object

One page of the flows the requested organization unit owns or has been shared.

5 properties
NameTypeRequiredDescription
totalResultsinteger

Number of results that match the listing operation.

startIndexinteger

Index of the first element of the page, which will be equal to offset + 1.

countinteger

Number of elements in the returned page.

flowsarray of BasicFlowDefinitionResponse
linksarray of Link

Navigation links for pagination.

FlowVersionListResponse​

Type: object

2 properties
NameTypeRequiredDescription
totalVersionsinteger

Total number of versions available for this flow

versionsarray of FlowVersionInfo

List of flow versions (most recent first)

FlowVersionInfo​

Type: object

3 properties
NameTypeRequiredDescription
versionintegerYes

Version number

createdAtstring (date-time)Yes

Timestamp when this specific version was created

isActivebooleanYes

Indicates if this is the currently active version

RestoreVersionRequest​

Type: object

1 property
NameTypeRequiredDescription
versionintegerYes

Version number to restore to

Type: object

2 properties
NameTypeRequiredDescription
hrefstringYes

The URI of the link

relstringYes

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
NameTypeRequiredDescription
idstringYes

Unique identifier for the flow

flowTypestringYes

Allowed values: AUTHENTICATION, REGISTRATION, USER_ONBOARDING, SELF, RECOVERY, SIGNOUT, ADMINISTRATION, INVITATION, DEVICE_GRANT

namestringYes

Name of the flow

handlestringYes

URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed.

activeVersionintegerYes

The version number that is currently active

isReadOnlybooleanYes

Whether this flow is immutable (declarative resource — cannot be modified or deleted)

isOwnedByOUboolean

With an ouId filter or query parameter, whether that organization unit owns the flow. false means it was shared with it. An unfiltered list says true.

ouIdstringYes

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.

createdAtstring (date-time)Yes

Timestamp when the flow was initially created

updatedAtstring (date-time)Yes

Timestamp when the flow was last modified

FlowDefinitionUpdateRequest​

Type: object

5 properties
NameTypeRequiredDescription
namestringYes

Name of the flow

handlestringYes

URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed.

flowTypestringYes

Type of flow

Allowed values: AUTHENTICATION, REGISTRATION, USER_ONBOARDING, SELF, RECOVERY, SIGNOUT, ADMINISTRATION, INVITATION, DEVICE_GRANT

nodesarray of NodeYes

List of nodes that define the flow graph

ouIdstring

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
NameTypeRequiredDescription
namestringYes

Name of the flow

handlestringYes

URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed.

flowTypestringYes

Type of flow

Allowed values: AUTHENTICATION, REGISTRATION, USER_ONBOARDING, SELF, RECOVERY, SIGNOUT, ADMINISTRATION, INVITATION, DEVICE_GRANT

nodesarray of NodeYes

List of nodes that define the flow graph

ouIdstringYes

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
NameTypeRequiredDescription
idstringYes

Unique identifier for the flow

namestringYes

Name of the flow

flowTypestringYes

Type of flow

Allowed values: AUTHENTICATION, REGISTRATION, USER_ONBOARDING, SELF, RECOVERY, SIGNOUT, ADMINISTRATION, INVITATION, DEVICE_GRANT

handlestringYes

URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed.

activeVersionintegerYes

The version number that is currently active

isReadOnlybooleanYes

Whether this flow is immutable (declarative resource — cannot be modified or deleted)

isOwnedByOUboolean

With ouId in the request, always true, as the organization unit owns the flow.

Allowed values: true

ouIdstringYes

ID of the organization unit that owns the flow.

nodesarray of NodeYes

List of nodes that define the flow graph

createdAtstring (date-time)Yes

Timestamp when the flow was initially created

updatedAtstring (date-time)Yes

Timestamp when the flow was last modified

FlowVersionResponse​

Type: object

8 properties
NameTypeRequiredDescription
idstringYes

Unique identifier for the flow

namestringYes

Name of the flow

flowTypestringYes

Type of flow

Allowed values: AUTHENTICATION, REGISTRATION, USER_ONBOARDING, SELF, RECOVERY, SIGNOUT, ADMINISTRATION, INVITATION, DEVICE_GRANT

handlestringYes

URL-friendly handle for the flow (lowercase letters, numbers, hyphens, and underscores only) Once set, the handle cannot be changed.

versionintegerYes

Version number of this flow snapshot

isActivebooleanYes

Indicates if this is the currently active version of the flow

nodesarray of NodeYes

List of nodes that define the flow graph

createdAtstring (date-time)Yes

Timestamp when this specific version was created

Node​

Type: object

26 properties
NameTypeRequiredDescription
idstringYes

Unique identifier for the node within the flow

typestringYes

Type of node

Allowed values: START, PROMPT, TASK_EXECUTION, CALL, VARIABLES, END

layoutNodeLayout
layout.sizeobject

Dimensions of the node in the flow composer canvas

layout.positionobject

Position of the node in the flow composer canvas

metaNodeMeta

Optional UI metadata for PROMPT nodes (verbose mode)

meta.componentsarray of Component

UI components to render (headings, inputs, buttons, etc.)

promptsarray of PromptDefinition

Prompt groups for PROMPT nodes. Each entry pairs a set of inputs with a single action (navigation target). Mutually exclusive with next.

variantstring

Optional PROMPT node sub-type. Use LOGIN_OPTIONS to activate login method filtering on this node.

Allowed values: LOGIN_OPTIONS

inputsarray of VariableDefinition

Only on a VARIABLES node. The variables the node declares.

conditionConditionDefinition

Optional condition that gates whether this node executes

condition.keystringYes

Runtime data key to evaluate

condition.valuestringYes

Expected value to match against the runtime key

condition.onSkipstringYes

ID of the node to transition to when the condition is not met

propertiesobject

Node-level properties for configuration (e.g., senderId for notification executors, idpId for social login executors).

executorExecutor

Executor configuration for TASK_EXECUTION nodes (required)

executor.namestringYes

Name of the registered executor

executor.modestring

Optional execution mode or configuration hint for the executor

executor.inputsarray 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.

flowFlowReference

Flow reference for CALL nodes (required)

flow.refstringYes

Handle of the target flow to invoke

onSuccessstring

Next node ID on successful execution (START, TASK_EXECUTION, CALL, and VARIABLES nodes)

onFailurestring

Next node ID on failed execution (TASK_EXECUTION nodes)

onIncompletestring

For TASK_EXECUTION nodes: ID of the PROMPT node to transition to when user input is required to complete the task.

nextstring

For display-only PROMPT nodes: ID of the next node to automatically transition to after the display content is rendered. Mutually exclusive with prompts.

messagestring

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
NameTypeRequiredDescription
identifierstringYes

Name of the variable. Starts with a letter and holds letters, digits and underscores.

typestringYes

How the value is entered and checked

Allowed values: TEXT_INPUT, EMAIL_INPUT, PHONE_INPUT, NUMBER_INPUT, DATE_INPUT, BOOLEAN_INPUT, SELECT, CONNECTION_SELECT

labelstring
descriptionstring
defaultValueanyYes

The value the variable has until another is set

validationarray of object

Rules a text, email or phone value has to meet

optionsarray of any

For a SELECT, the values it can take

minnumber
maxnumber
categorystring

For a CONNECTION_SELECT, the kind of connection it takes

Allowed values: IDENTITY_PROVIDER

connectionTypesarray of string

For a CONNECTION_SELECT, limits it to these vendors

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
NameTypeRequiredDescription
sizeobject

Dimensions of the node in the flow composer canvas

size.widthnumberYes

Width of the node in pixels

size.heightnumberYes

Height of the node in pixels

positionobject

Position of the node in the flow composer canvas

position.xnumberYes

X-coordinate of the node

position.ynumberYes

Y-coordinate of the node

NodeMeta​

Type: object

UI metadata for rendering PROMPT nodes in verbose mode

1 property
NameTypeRequiredDescription
componentsarray of Component

UI components to render (headings, inputs, buttons, etc.)

NodeInput​

Type: object

6 properties
NameTypeRequiredDescription
refstring

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.

typestringYes

Input type (TEXT_INPUT, PASSWORD_INPUT, OTP_INPUT, etc.)

identifierstringYes

The mapped attribute identifier (e.g., username, password, otp)

requiredbooleanYes

Whether this input is required

defaultValuestring

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.

constantboolean

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
NameTypeRequiredDescription
refstringYes

Reference to the action component ID in meta.components

typestring

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.

nextNodestringYes

ID of the next node to navigate to when this action is triggered

Executor​

Type: object

3 properties
NameTypeRequiredDescription
namestringYes

Name of the registered executor

modestring

Optional execution mode or configuration hint for the executor

inputsarray 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
NameTypeRequiredDescription
idstringYes

Unique identifier for the component

typestringYes

Component type. Common types:

  • TEXT, HEADING: Display text elements
  • TEXT_INPUT, PASSWORD_INPUT, OTP_INPUT: Input fields
  • ACTION: Buttons and clickable elements
  • BLOCK: Container for grouping components
  • DIVIDER: Visual separator
labelstring

Display label or text content (use {{ t(namespace:key) }} for i18n or plain text)

variantstring

Component style variant (e.g., HEADING_01, PRIMARY, etc.)

requiredboolean

Whether the component is required (for input fields)

placeholderstring

Placeholder text for input fields (use {{ t(namespace:key) }} for i18n or plain text)

lengthinteger

Length specification (e.g., for OTP_INPUT)

componentsarray 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
NameTypeRequiredDescription
inputsarray of NodeInput

Input fields presented to the user for this prompt group

actionNodeAction

The action triggered when the user submits this prompt group

action.refstringYes

Reference to the action component ID in meta.components

action.typestring

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.nextNodestringYes

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
NameTypeRequiredDescription
keystringYes

Runtime data key to evaluate

valuestringYes

Expected value to match against the runtime key

onSkipstringYes

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
NameTypeRequiredDescription
refstringYes

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
NameTypeRequiredDescription
codestring

Error code. Client errors follow the FLM-XXXX convention; server errors use SSE-XXXX.

messageI18nMessage

Internationalized message with translation key and default value.

descriptionI18nMessage

Internationalized message with translation key and default value.

I18nMessage​

Type: object

Internationalized message with translation key and default value.

2 properties
NameTypeRequiredDescription
keystringYes

Translation key for fetching localized message.

defaultValuestringYes

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
NameTypeRequiredDescription
idstringYes
handlestringYes
namestringYes
flowTypestringYes

Allowed values: AUTHENTICATION, REGISTRATION, INVITATION

ouIdstringYes

ID of the organization unit the flow is shown for, the one in the request's ouId, not the one that owns the flow.

isOwnedByOUbooleanYes

Always false, as the flow is owned by another organization unit and was shared with the organization unit in the request's ouId.

Allowed values: false

isReadOnlybooleanYes

Always true: a shared flow cannot be changed or deleted by the organization unit it is shared with.

Allowed values: true

variablesarray of VariableDefinitionYes

The variables the sharing policy names for the organization unit, each resolved for it. defaultValue is the value the policy sets for the unit, or the owner's defaultValue when the policy sets none, and a SELECT lists only the options the unit may choose from. A variable no policy names for the unit is not listed, and nothing the owner holds beyond this is shown.

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
NameTypeRequiredDescription
initiatingOuIdstring

The organization unit whose decision this is. Omitted means the flow's owner. A unit other than the owner may only issue a childUnits policy where the flow reached it and stopped.

childUnitsChildUnits

The organization units beneath the issuer, in one of the two shapes below, chosen by mode.

otherTreeRootsOtherTreeRootsSelected

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.

versioninteger

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
NameTypeRequiredDescription
allUnitsAllUnits

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.

childUnitsChildUnits

The organization units beneath the issuer, in one of the two shapes below, chosen by mode.

otherTreeRootsOtherTreeRoots

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.

versionintegerYes

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
NameTypeRequiredDescription
excludedOuIdsarray of string

Organization units withheld from the section, each taking everything beneath it out of reach as well. Any organization unit may be excluded.

overlayRulesobject

The terms the organization units reached hold the flow on, keyed by field. For a flow the field is a variable: variables.<identifier>. A variable no rule names is not editable by the organization unit and keeps the owner's default.

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
NameTypeRequiredDescription
modestringYes

Allowed values: all

excludedOuIdsarray of string

Organization units withheld from the section, with everything beneath each. Only units directly beneath the issuer may be excluded.

overlayRulesobject

The terms the organization units reached hold the flow on, keyed by field. For a flow the field is a variable: variables.<identifier>. A variable no rule names is not editable by the organization unit and keeps the owner's default.

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
NameTypeRequiredDescription
modestringYes

Allowed values: selected

unitsarray of ChildUnitYes

The organization units reached. An organization unit is listed only once in a policy.

ChildUnit​

Type: object

3 properties
NameTypeRequiredDescription
ouIdstringYes

A direct child of the issuing organization unit.

reachstringYes

How far the flow carries from the named unit: unit reaches it alone, leaving it free to pass the flow on, and subtree reaches it and everything below.

Allowed values: unit, subtree

overlayRulesobject

The terms the organization units reached hold the flow on, keyed by field. For a flow the field is a variable: variables.<identifier>. A variable no rule names is not editable by the organization unit and keeps the owner's default.

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
NameTypeRequiredDescription
modestringYes

Allowed values: selected

unitsarray of RootUnitYes

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
NameTypeRequiredDescription
modestringYes

Allowed values: all

excludedOuIdsarray of string

Root organization units withheld from the section, and with them their trees.

overlayRulesobject

The terms the organization units reached hold the flow on, keyed by field. For a flow the field is a variable: variables.<identifier>. A variable no rule names is not editable by the organization unit and keeps the owner's default.

RootUnit​

Type: object

2 properties
NameTypeRequiredDescription
ouIdstringYes

The root organization unit of another tree.

overlayRulesobject

The terms the organization units reached hold the flow on, keyed by field. For a flow the field is a variable: variables.<identifier>. A variable no rule names is not editable by the organization unit and keeps the owner's default.

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
NameTypeRequiredDescription
idstring

The policy's own identifier.

initiatingOuIdstring

The organization unit whose decision this policy is. The owning unit belongs to the flow and is not repeated.

stagestring

share when the owner issued it, reshare when a sharee did.

Allowed values: share, reshare

parentPolicyIdstring

The policy that made this one's issuer able to see the flow. Empty for an owner-issued policy.

isReadOnlyboolean

Indicates if the policy is defined in declarative configuration and cannot be modified.

versioninteger

Bumped on every edit, and carried back on the next one.

allUnitsAllUnits

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.

childUnitsChildUnits

The organization units beneath the issuer, in one of the two shapes below, chosen by mode.

otherTreeRootsOtherTreeRoots

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
NameTypeRequiredDescription
totalResultsinteger

How many policies the flow has, not how many this page holds.

startIndexinteger

The one-based position of the first policy in this page.

countinteger

How many policies this page holds.

policiesarray of SharingPolicy
linksarray 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
NameTypeRequiredDescription
ouIdstring
ownedboolean

Whether the organization unit owns the flow rather than being shared it.

visibleboolean

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.

policyIdsarray of string

Every policy that contributed, so an answer is traceable to its inputs.

rulesobject

The effective rule per variable, keyed variables.<identifier>, after every policy that reached the organization unit has been combined and each narrowed by the unit above it. A variable no policy named has no entry: the organization unit cannot edit it and it keeps the owner's default.

OverlayRule​

Type: object

What an organization unit may do with one variable of a flow.

4 properties
NameTypeRequiredDescription
editableboolean

Whether the organization unit may set its own value for the variable.

Default: false

valuearray of string

The value the organization unit starts with, or is pinned to when editable is false. A variable holds one value, written in its raw string form: "true", "120", an option, or a connection id.

allowedValuesarray of string

The values the organization unit may choose from. Absent means anything the variable accepts. Empty permits nothing.

excludedValuesarray of string

Values taken out of value and allowedValues, last.

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
NameTypeRequiredDescription
valuesobjectYes

The unit's own overrides, in the variable's own type. A variable the unit has not set is absent, and the value from GET /flows/{flowId} applies to it. An empty object means the unit has set nothing.

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
NameTypeRequiredDescription
ouIdstringYes

The organization unit whose values are set. The flow has to be owned by, or shared with, it.

valuesobjectYes

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?