late 0.0.355

API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
# \WorkflowsApi

All URIs are relative to *https://zernio.com/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**activate_workflow**]WorkflowsApi.md#activate_workflow | **POST** /v1/workflows/{workflowId}/activate | Activate workflow
[**create_workflow**]WorkflowsApi.md#create_workflow | **POST** /v1/workflows | Create workflow
[**delete_workflow**]WorkflowsApi.md#delete_workflow | **DELETE** /v1/workflows/{workflowId} | Delete workflow
[**duplicate_workflow**]WorkflowsApi.md#duplicate_workflow | **POST** /v1/workflows/{workflowId}/duplicate | Duplicate a workflow
[**get_workflow**]WorkflowsApi.md#get_workflow | **GET** /v1/workflows/{workflowId} | Get workflow with graph
[**get_workflow_version**]WorkflowsApi.md#get_workflow_version | **GET** /v1/workflows/{workflowId}/versions/{version} | Get a specific workflow version
[**list_workflow_execution_events**]WorkflowsApi.md#list_workflow_execution_events | **GET** /v1/workflows/{workflowId}/executions/{executionId}/events | Get an execution's timeline
[**list_workflow_executions**]WorkflowsApi.md#list_workflow_executions | **GET** /v1/workflows/{workflowId}/executions | List workflow runs
[**list_workflow_versions**]WorkflowsApi.md#list_workflow_versions | **GET** /v1/workflows/{workflowId}/versions | List a workflow's version history
[**list_workflows**]WorkflowsApi.md#list_workflows | **GET** /v1/workflows | List workflows
[**pause_workflow**]WorkflowsApi.md#pause_workflow | **POST** /v1/workflows/{workflowId}/pause | Pause workflow
[**restore_workflow_version**]WorkflowsApi.md#restore_workflow_version | **POST** /v1/workflows/{workflowId}/versions/{version}/restore | Restore a previous workflow version
[**trigger_workflow**]WorkflowsApi.md#trigger_workflow | **POST** /v1/workflows/{workflowId}/executions | Manually start a workflow run
[**update_workflow**]WorkflowsApi.md#update_workflow | **PATCH** /v1/workflows/{workflowId} | Update workflow



## activate_workflow

> models::ActivateWorkflow200Response activate_workflow(workflow_id)
Activate workflow

Validate the graph is runnable and set the workflow live. Once active, matching inbound messages start executions. Idempotent.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |

### Return type

[**models::ActivateWorkflow200Response**](activateWorkflow_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## create_workflow

> models::CreateWorkflow200Response create_workflow(create_workflow_request)
Create workflow

Create a branching conversation workflow (draft) from a node/edge graph. Created in `draft` status; activate it to start matching inbound messages. The graph is validated structurally; completeness (a trigger node + reachable entry) is required at activation. 

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_workflow_request** | [**CreateWorkflowRequest**]CreateWorkflowRequest.md |  | [required] |

### Return type

[**models::CreateWorkflow200Response**](createWorkflow_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## delete_workflow

> delete_workflow(workflow_id)
Delete workflow

Permanently delete a workflow and all of its executions.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |

### Return type

 (empty response body)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## duplicate_workflow

> models::DuplicateWorkflow201Response duplicate_workflow(workflow_id)
Duplicate a workflow

Create an independent copy of a workflow's graph, name, description, and account binding. The copy is created in `draft` status with fresh execution counters and a new id — execution history is NOT copied. Useful for branching off a known-good workflow before making experimental edits. 

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |

### Return type

[**models::DuplicateWorkflow201Response**](duplicateWorkflow_201_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_workflow

> models::GetWorkflow200Response get_workflow(workflow_id)
Get workflow with graph

Returns a workflow including its full node/edge graph and run stats.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |

### Return type

[**models::GetWorkflow200Response**](getWorkflow_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## get_workflow_version

> models::GetWorkflowVersion200Response get_workflow_version(workflow_id, version)
Get a specific workflow version

Returns the full snapshot for a single historical version, including the graph.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |
**version** | **i32** |  | [required] |

### Return type

[**models::GetWorkflowVersion200Response**](getWorkflowVersion_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_workflow_execution_events

> models::ListWorkflowExecutionEvents200Response list_workflow_execution_events(workflow_id, execution_id)
Get an execution's timeline

Returns the per-step run-log for a single workflow execution: trigger fired, each node visited, edge handles taken, errors, and durations. Backed by Tinybird (90-day retention). Used by the Runs UI drawer to render the timeline. 

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |
**execution_id** | **String** |  | [required] |

### Return type

[**models::ListWorkflowExecutionEvents200Response**](listWorkflowExecutionEvents_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_workflow_executions

> models::ListWorkflowExecutions200Response list_workflow_executions(workflow_id, status, limit, skip)
List workflow runs

Returns recent executions (runs) with their status, current node, and accumulated variables.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |
**status** | Option<**String**> |  |  |
**limit** | Option<**i32**> |  |  |[default to 25]
**skip** | Option<**i32**> |  |  |[default to 0]

### Return type

[**models::ListWorkflowExecutions200Response**](listWorkflowExecutions_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_workflow_versions

> models::ListWorkflowVersions200Response list_workflow_versions(workflow_id)
List a workflow's version history

Returns the snapshot history. A new version is recorded automatically before every PATCH to `nodes` / `edges` / `entryNodeId`, and explicitly when a previous version is restored. Lightweight list — call `getWorkflowVersion` for the full snapshot graph. 

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |

### Return type

[**models::ListWorkflowVersions200Response**](listWorkflowVersions_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## list_workflows

> models::ListWorkflows200Response list_workflows(profile_id, status, limit, skip)
List workflows

Returns workflows with run stats. Filter by status or profile.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**profile_id** | Option<**String**> | Filter by profile. Omit to list across all profiles |  |
**status** | Option<**String**> |  |  |
**limit** | Option<**i32**> |  |  |[default to 50]
**skip** | Option<**i32**> |  |  |[default to 0]

### Return type

[**models::ListWorkflows200Response**](listWorkflows_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## pause_workflow

> models::PauseWorkflow200Response pause_workflow(workflow_id)
Pause workflow

Stop matching new inbound messages. In-flight executions continue to completion. Idempotent.

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |

### Return type

[**models::PauseWorkflow200Response**](pauseWorkflow_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## restore_workflow_version

> models::RestoreWorkflowVersion200Response restore_workflow_version(workflow_id, version)
Restore a previous workflow version

Replace the current graph with the named version's snapshot. Before the swap, the current graph is itself snapshotted as a new version, so a restore is reversible. The workflow must be in `draft` or `paused` status (same gate as a normal graph edit). The returned workflow carries `restoredFromVersion` so the UI can surface which version was rolled back to. 

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |
**version** | **i32** |  | [required] |

### Return type

[**models::RestoreWorkflowVersion200Response**](restoreWorkflowVersion_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## trigger_workflow

> models::TriggerWorkflow200Response trigger_workflow(workflow_id, trigger_workflow_request)
Manually start a workflow run

Kick off a run without waiting for an inbound message (useful for testing). Target an existing conversation by `conversationId`, or — WhatsApp only — a phone number via `to` (a conversation is found or created). `text` seeds the run's `lastMessage` variable. The graph must be runnable. 

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |
**trigger_workflow_request** | [**TriggerWorkflowRequest**]TriggerWorkflowRequest.md |  | [required] |

### Return type

[**models::TriggerWorkflow200Response**](triggerWorkflow_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## update_workflow

> models::UpdateWorkflow200Response update_workflow(workflow_id, update_workflow_request)
Update workflow

Update name, description, the graph, or reassign to a different account. The graph can only be modified while the workflow is draft or paused. Account swaps re-validate the graph against the new platform (so e.g. moving from WhatsApp to Facebook surfaces a `start_call` node as an error instead of silently saving an unrunnable graph). 

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**workflow_id** | **String** |  | [required] |
**update_workflow_request** | Option<[**UpdateWorkflowRequest**]UpdateWorkflowRequest.md> |  |  |

### Return type

[**models::UpdateWorkflow200Response**](updateWorkflow_200_response.md)

### Authorization

[bearerAuth](../README.md#bearerAuth)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)