Flows API

List flows

GET/v1/flows

Newest first. The flow body is left out of the list; fetch one flow for it.

Query parameters

limitinteger

Default 50

pagination_keystring

Returns

200 with the fields below.

flowsarray<object>required

Flows, newest first. The flow body is left out; fetch one flow for it.

8 properties
idstringrequired

The flow's id.

flow_idstringrequired

The flow's id. Same value as `id`.

namestringrequired

Display name.

node_countintegerrequired

How many nodes the flow has.

languagestring

The language the flow's text is written in.

versioninteger

The flow's save counter. It goes up each time the flow body changes.

created_timestampinteger

Creation time in milliseconds since the Unix epoch.

last_modification_timestampinteger

Time of the last change in milliseconds since the Unix epoch.

has_morebooleanrequired

True if more flows remain.

pagination_keystring

Pass as `pagination_key` to get the next page. Null on the last page.

curl "https://api.dialgem.com/v1/flows" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "flows": [
    {
      "id": "string",
      "flow_id": "flow_123",
      "name": "Example",
      "language": "string",
      "version": 0,
      "node_count": 0,
      "created_timestamp": 0,
      "last_modification_timestamp": 0
    }
  ],
  "has_more": false,
  "pagination_key": "string"
}

Create flow

POST/v1/flows

Validate and save a flow. A flow with only warnings saves and returns them in `flow_validation`.

Request body application/json

namestringrequired
flow_configobjectrequired
languagestring

Default "en"

Returns

201 with the fields below.

idstringrequired

The flow's id.

flow_idstringrequired

The flow's id. Same value as `id`.

namestringrequired

Display name.

node_countintegerrequired

How many nodes the flow has.

flow_configobjectrequired

The flow body: its nodes, edges and settings.

languagestring

The language the flow's text is written in.

versioninteger

The flow's save counter. It goes up each time the flow body changes.

created_timestampinteger

Creation time in milliseconds since the Unix epoch.

last_modification_timestampinteger

Time of the last change in milliseconds since the Unix epoch.

flow_validationobject

Present only when the flow was saved with warnings.

1 properties
issuesarray<object>required

Warnings found in the flow. The flow was still saved. Each issue says where the problem is and what it is.

curl -X POST "https://api.dialgem.com/v1/flows" \
  -H "X-API-Key: $DIALGEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example",
    "flow_config": {}
  }'
Response 201
{
  "id": "string",
  "flow_id": "flow_123",
  "name": "Example",
  "language": "string",
  "version": 0,
  "node_count": 0,
  "created_timestamp": 0,
  "last_modification_timestamp": 0,
  "flow_config": {},
  "flow_validation": {
    "issues": [
      {}
    ]
  }
}

Get flow

GET/v1/flows/{flow_id}

Path parameters

flow_idstringrequired

Returns

200 with the fields below.

idstringrequired

The flow's id.

flow_idstringrequired

The flow's id. Same value as `id`.

namestringrequired

Display name.

node_countintegerrequired

How many nodes the flow has.

flow_configobjectrequired

The flow body: its nodes, edges and settings.

languagestring

The language the flow's text is written in.

versioninteger

The flow's save counter. It goes up each time the flow body changes.

created_timestampinteger

Creation time in milliseconds since the Unix epoch.

last_modification_timestampinteger

Time of the last change in milliseconds since the Unix epoch.

flow_validationobject

Present only when the flow was saved with warnings.

1 properties
issuesarray<object>required

Warnings found in the flow. The flow was still saved. Each issue says where the problem is and what it is.

curl "https://api.dialgem.com/v1/flows/FLOW_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "id": "string",
  "flow_id": "flow_123",
  "name": "Example",
  "language": "string",
  "version": 0,
  "node_count": 0,
  "created_timestamp": 0,
  "last_modification_timestamp": 0,
  "flow_config": {},
  "flow_validation": {
    "issues": [
      {}
    ]
  }
}

Update flow

PATCH/v1/flows/{flow_id}

Rename a flow and/or replace its body. The body is validated again, whether or not it changed.

Path parameters

flow_idstringrequired

Request body application/json

namestring
flow_configobject
23 properties
nodesarray<object>
21 properties
idstringrequired
typestringrequired
instructionobjectrequired
namestring
display_positionobject
global_node_settingobject
edgesarray<object>
else_edgeobject
always_edgeobject
skip_response_edgeobject
Show 11 more parameters
model_choiceobject
interruption_sensitivitynumber
responsivenessnumber
voice_speednumber
allow_dtmf_interruptionboolean
reminder_trigger_msnumber
reminder_max_countinteger
knowledge_base_idsarray<string>
kb_configobject
finetune_conversation_examplesarray<any>
finetune_transition_examplesarray<any>
start_node_idstring
start_speakerstring

One of user, agent

global_promptstring
model_choiceobject
3 properties
typestring
modelstring
high_priorityboolean
model_temperaturenumber
tool_call_strict_modeboolean
default_dynamic_variablesobject
knowledge_base_idsarray<string>
kb_configobject
2 properties
top_kinteger
filter_scorenumber
Show 13 more parameters
toolsarray<object>
11 properties
tool_idstringrequired
typestring
namestring
descriptionstring
urlstring
methodstring
parametersobject
timeout_msinteger
speak_during_executionboolean
speak_after_executionboolean
response_variablesobject
mcpsarray<any>
componentsarray<any>
notesarray<any>
begin_after_user_silence_msinteger
begin_tag_display_positionobject
2 properties
xnumber
ynumber
flex_modeboolean
is_transfer_llmboolean
conversation_flow_idstring
versioninteger
last_modification_timestampinteger
is_publishedboolean
dialgem_extensionsobject
5 properties
uses_extensionsboolean
featuresarray<string>
content_hashstring
equation_grammar_versioninteger
not_runnablearray<object>
languagestring

Returns

200 with the fields below.

idstringrequired

The flow's id.

flow_idstringrequired

The flow's id. Same value as `id`.

namestringrequired

Display name.

node_countintegerrequired

How many nodes the flow has.

flow_configobjectrequired

The flow body: its nodes, edges and settings.

languagestring

The language the flow's text is written in.

versioninteger

The flow's save counter. It goes up each time the flow body changes.

created_timestampinteger

Creation time in milliseconds since the Unix epoch.

last_modification_timestampinteger

Time of the last change in milliseconds since the Unix epoch.

flow_validationobject

Present only when the flow was saved with warnings.

1 properties
issuesarray<object>required

Warnings found in the flow. The flow was still saved. Each issue says where the problem is and what it is.

curl -X PATCH "https://api.dialgem.com/v1/flows/FLOW_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Example"
  }'
Response 200
{
  "id": "string",
  "flow_id": "flow_123",
  "name": "Example",
  "language": "string",
  "version": 0,
  "node_count": 0,
  "created_timestamp": 0,
  "last_modification_timestamp": 0,
  "flow_config": {},
  "flow_validation": {
    "issues": [
      {}
    ]
  }
}

Delete flow

DELETE/v1/flows/{flow_id}

Delete a saved flow. Agents it was attached to keep their copy.

Path parameters

flow_idstringrequired

Returns

200 with the fields below.

deletedbooleanrequired

Always true on success.

idstringrequired

The id that was deleted.

curl -X DELETE "https://api.dialgem.com/v1/flows/FLOW_ID" \
  -H "X-API-Key: $DIALGEM_API_KEY"
Response 200
{
  "deleted": false,
  "id": "string"
}