For the complete documentation index, see llms.txt. This page is also available as Markdown.

Agent Flows

Manage conversational flows for agents. Use these APIs to create, update, retrieve, publish, list, and run draft flows. Ideal for designing, testing, and deploying multi-step agent behaviors.

Create Or Update Draft Flow Tool

post
Path parameters
tool_idstring · uuidRequired

Tool id

Query parameters
tenant_idstring · nullableOptional

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
tenant_unit_idstring · nullableOptional

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
Body
created_bystring · nullableOptional
updated_bystring · nullableOptional
created_by_rolestring · nullableOptional
updated_by_rolestring · nullableOptional
created_timestring · date-time · nullableOptional
updated_timestring · date-time · nullableOptional
owner_idstring · nullableOptional

The ID of the flow this definition belongs to

Example: uuid-of-flow
owner_typeobject · nullableOptional

Type of flow [flow, tool]

Example: flow
modestring · nullableOptional

Flow mode, e.g., chat or job

Example: job
versionstring · nullableOptional

Version of the flow

Example: draft
graphobject · GraphOptional

Flow graph

Default: {}Example: {}
featuresobject · Features · nullableOptional

Additional features for the flow

Example: {}
flow_variablesobject · Flow Variables · nullableOptional

Environment variables for the flow

Example: {}
Responses
201

Successful Response

application/json

Full flow model with additional fields used for responses.

created_bystringRequired

ID of the creator

Example: user123
updated_bystring · nullableOptional

ID of the last updater

Example: user124
created_by_rolestring · nullableOptional
updated_by_rolestring · nullableOptional
created_timestring · date-timeOptional

Timestamp of creation

updated_timestring · date-timeOptional

Timestamp of last update

owner_idstring · nullableOptional

The ID of the flow this definition belongs to

Example: uuid-of-flow
owner_typestring · enum · nullableOptional

Type of flow [flow, tool]

Example: flowPossible values:
modestring · nullableOptional

Flow mode, e.g., chat or job

Example: job
versionstring · nullableOptional

Version of the flow

Example: draft
graphobject · Graph · nullableOptional

Flow graph

Example: {}
featuresobject · Features · nullableOptional

Additional features for the flow

Example: {}
flow_variablesobject · Flow Variables · nullableOptional

Environment variables for the flow

Example: {}
idstringRequired

The ID of the created FlowDefinitionDO

Example: uuid-of-definition
tenant_idstringRequired

Tenant ID

Example: uuid-of-tenant
tenant_unit_idstringRequired

Tenant Unit ID

Example: tenant-unit-id
post/admin/api/v2/tools/{tool_id}/flows

Get Draft

get

Get the DRAFT version of a flow

Path parameters
agent_idstring · uuidRequired
Query parameters
tenant_idstring · nullableOptional

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
tenant_unit_idstring · nullableOptional

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
Responses
200

Successful Response

application/json

Full flow model with additional fields used for responses.

created_bystringRequired

ID of the creator

Example: user123
updated_bystring · nullableOptional

ID of the last updater

Example: user124
created_by_rolestring · nullableOptional
updated_by_rolestring · nullableOptional
created_timestring · date-timeOptional

Timestamp of creation

updated_timestring · date-timeOptional

Timestamp of last update

owner_idstring · nullableOptional

The ID of the flow this definition belongs to

Example: uuid-of-flow
owner_typestring · enum · nullableOptional

Type of flow [flow, tool]

Example: flowPossible values:
modestring · nullableOptional

Flow mode, e.g., chat or job

Example: job
versionstring · nullableOptional

Version of the flow

Example: draft
graphobject · Graph · nullableOptional

Flow graph

Example: {}
featuresobject · Features · nullableOptional

Additional features for the flow

Example: {}
flow_variablesobject · Flow Variables · nullableOptional

Environment variables for the flow

Example: {}
idstringRequired

The ID of the created FlowDefinitionDO

Example: uuid-of-definition
tenant_idstringRequired

Tenant ID

Example: uuid-of-tenant
tenant_unit_idstringRequired

Tenant Unit ID

Example: tenant-unit-id
get/admin/api/v2/agents/{agent_id}/flows/draft

Publish

post

Publish the current DRAFT version as a formal version

Path parameters
agent_idstring · uuidRequired
Query parameters
tenant_idstring · nullableOptional

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
tenant_unit_idstring · nullableOptional

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
Responses
200

Successful Response

application/json

Response model for the created FlowDefinitionDO.

created_bystringRequired

ID of the creator

Example: user123
updated_bystring · nullableOptional

ID of the last updater

Example: user124
created_by_rolestring · nullableOptional
updated_by_rolestring · nullableOptional
created_timestring · date-timeOptional

Timestamp of creation

updated_timestring · date-timeOptional

Timestamp of last update

owner_idstring · nullableOptional

The ID of the flow this definition belongs to

Example: uuid-of-flow
owner_typestring · enum · nullableOptional

Type of flow [flow, tool]

Example: flowPossible values:
modestring · nullableOptional

Flow mode, e.g., chat or job

Example: job
versionstring · nullableOptional

Version of the flow

Example: draft
graphobject · Graph · nullableOptional

Flow graph

Example: {}
featuresobject · Features · nullableOptional

Additional features for the flow

Example: {}
flow_variablesobject · Flow Variables · nullableOptional

Environment variables for the flow

Example: {}
idstringRequired

The ID of the created FlowDefinitionDO

Example: uuid-of-definition
tenant_idstringRequired

Tenant ID

Example: uuid-of-tenant
tenant_unit_idstringRequired

Tenant Unit ID

Example: tenant-unit-id
post/admin/api/v2/agents/{agent_id}/flows/publish

List Versions

get

Get a list of all versions for a specific flow

Path parameters
agent_idstring · uuidRequired

Agent id

Query parameters
page_numintegerOptional

Current page number

Default: 1
page_sizeintegerOptional

Items per page

Default: 20
tenant_idstring · nullableOptional

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
tenant_unit_idstring · nullableOptional

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
Responses
200

Successful Response

application/json

Response model for the created flowDefinition.

page_numintegerRequired

Current page number

page_sizeintegerRequired

Number of items per page

total_countintegerRequired

Total number of flows

has_next_pagebooleanRequired

Whether there is a next page

dataobject[]Required

List of flow_definitions

get/admin/api/v2/agents/{agent_id}/flows

Run Draft Workflow

post

Run the draft version of the workflow

Path parameters
agent_idstring · uuidRequiredExample: 22a976a1-4f6d-4357-a167-26684daa60c5
Query parameters
tenant_idstring · nullableOptional

Tenant Id

Example: 40d39c4b-9585-4123-8fd4-f1cc23a1184c
tenant_unit_idstring · nullableOptional

Tenant Unit ID

Example: da114de3-d7e6-4161-bc55-0ce85dbee589
Body
or
Responses
200

Successful Response

application/json
stringOptional
post/admin/api/v2/agents/{agent_id}/flows/draft/runs

Last updated

Was this helpful?