All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| activateWorkflow | POST /v1/workflows/{workflowId}/activate | Activate workflow |
| activateWorkflowWithHttpInfo | POST /v1/workflows/{workflowId}/activate | Activate workflow |
| createWorkflow | POST /v1/workflows | Create workflow |
| createWorkflowWithHttpInfo | POST /v1/workflows | Create workflow |
| deleteWorkflow | DELETE /v1/workflows/{workflowId} | Delete workflow |
| deleteWorkflowWithHttpInfo | DELETE /v1/workflows/{workflowId} | Delete workflow |
| duplicateWorkflow | POST /v1/workflows/{workflowId}/duplicate | Duplicate a workflow |
| duplicateWorkflowWithHttpInfo | POST /v1/workflows/{workflowId}/duplicate | Duplicate a workflow |
| getWorkflow | GET /v1/workflows/{workflowId} | Get workflow with graph |
| getWorkflowWithHttpInfo | GET /v1/workflows/{workflowId} | Get workflow with graph |
| getWorkflowVersion | GET /v1/workflows/{workflowId}/versions/{version} | Get a specific workflow version |
| getWorkflowVersionWithHttpInfo | GET /v1/workflows/{workflowId}/versions/{version} | Get a specific workflow version |
| listWorkflowExecutionEvents | GET /v1/workflows/{workflowId}/executions/{executionId}/events | Get an execution's timeline |
| listWorkflowExecutionEventsWithHttpInfo | GET /v1/workflows/{workflowId}/executions/{executionId}/events | Get an execution's timeline |
| listWorkflowExecutions | GET /v1/workflows/{workflowId}/executions | List workflow runs |
| listWorkflowExecutionsWithHttpInfo | GET /v1/workflows/{workflowId}/executions | List workflow runs |
| listWorkflowVersions | GET /v1/workflows/{workflowId}/versions | List a workflow's version history |
| listWorkflowVersionsWithHttpInfo | GET /v1/workflows/{workflowId}/versions | List a workflow's version history |
| listWorkflows | GET /v1/workflows | List workflows |
| listWorkflowsWithHttpInfo | GET /v1/workflows | List workflows |
| pauseWorkflow | POST /v1/workflows/{workflowId}/pause | Pause workflow |
| pauseWorkflowWithHttpInfo | POST /v1/workflows/{workflowId}/pause | Pause workflow |
| restoreWorkflowVersion | POST /v1/workflows/{workflowId}/versions/{version}/restore | Restore a workflow version |
| restoreWorkflowVersionWithHttpInfo | POST /v1/workflows/{workflowId}/versions/{version}/restore | Restore a workflow version |
| triggerWorkflow | POST /v1/workflows/{workflowId}/executions | Manually start a workflow run |
| triggerWorkflowWithHttpInfo | POST /v1/workflows/{workflowId}/executions | Manually start a workflow run |
| updateWorkflow | PATCH /v1/workflows/{workflowId} | Update workflow |
| updateWorkflowWithHttpInfo | PATCH /v1/workflows/{workflowId} | Update workflow |
ActivateWorkflow200Response activateWorkflow(workflowId)
Activate workflow
Validate the graph is runnable and set the workflow live. Once active, matching inbound messages start executions. Idempotent.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
ActivateWorkflow200Response result = apiInstance.activateWorkflow(workflowId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#activateWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow activated | - |
| 400 | Incomplete or invalid graph | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse activateWorkflow activateWorkflowWithHttpInfo(workflowId)
Activate workflow
Validate the graph is runnable and set the workflow live. Once active, matching inbound messages start executions. Idempotent.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
ApiResponse<ActivateWorkflow200Response> response = apiInstance.activateWorkflowWithHttpInfo(workflowId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#activateWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
ApiResponse<ActivateWorkflow200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow activated | - |
| 400 | Incomplete or invalid graph | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
CreateWorkflow200Response createWorkflow(createWorkflowRequest)
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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
CreateWorkflowRequest createWorkflowRequest = new CreateWorkflowRequest(); // CreateWorkflowRequest |
try {
CreateWorkflow200Response result = apiInstance.createWorkflow(createWorkflowRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#createWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| createWorkflowRequest | CreateWorkflowRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow created | - |
| 400 | Invalid graph (duplicate node ids, edges referencing missing nodes, or a WhatsApp-only node on another platform) | - |
| 401 | Unauthorized | - |
ApiResponse createWorkflow createWorkflowWithHttpInfo(createWorkflowRequest)
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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
CreateWorkflowRequest createWorkflowRequest = new CreateWorkflowRequest(); // CreateWorkflowRequest |
try {
ApiResponse<CreateWorkflow200Response> response = apiInstance.createWorkflowWithHttpInfo(createWorkflowRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#createWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| createWorkflowRequest | CreateWorkflowRequest |
ApiResponse<CreateWorkflow200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow created | - |
| 400 | Invalid graph (duplicate node ids, edges referencing missing nodes, or a WhatsApp-only node on another platform) | - |
| 401 | Unauthorized | - |
void deleteWorkflow(workflowId)
Delete workflow
Permanently delete a workflow and all of its executions.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
apiInstance.deleteWorkflow(workflowId);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#deleteWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
null (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow deleted | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse deleteWorkflow deleteWorkflowWithHttpInfo(workflowId)
Delete workflow
Permanently delete a workflow and all of its executions.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
ApiResponse<Void> response = apiInstance.deleteWorkflowWithHttpInfo(workflowId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#deleteWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
ApiResponse
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow deleted | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
DuplicateWorkflow201Response duplicateWorkflow(workflowId)
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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
DuplicateWorkflow201Response result = apiInstance.duplicateWorkflow(workflowId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#duplicateWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Workflow duplicated | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse duplicateWorkflow duplicateWorkflowWithHttpInfo(workflowId)
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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
ApiResponse<DuplicateWorkflow201Response> response = apiInstance.duplicateWorkflowWithHttpInfo(workflowId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#duplicateWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
ApiResponse<DuplicateWorkflow201Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 201 | Workflow duplicated | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
GetWorkflow200Response getWorkflow(workflowId)
Get workflow with graph
Returns a workflow including its full node/edge graph and run stats.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
GetWorkflow200Response result = apiInstance.getWorkflow(workflowId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#getWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow details | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse getWorkflow getWorkflowWithHttpInfo(workflowId)
Get workflow with graph
Returns a workflow including its full node/edge graph and run stats.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
ApiResponse<GetWorkflow200Response> response = apiInstance.getWorkflowWithHttpInfo(workflowId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#getWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
ApiResponse<GetWorkflow200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow details | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
GetWorkflowVersion200Response getWorkflowVersion(workflowId, version)
Get a specific workflow version
Returns the full snapshot for a single historical version, including the graph.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
Integer version = 56; // Integer |
try {
GetWorkflowVersion200Response result = apiInstance.getWorkflowVersion(workflowId, version);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#getWorkflowVersion");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| version | Integer |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Version snapshot | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse getWorkflowVersion getWorkflowVersionWithHttpInfo(workflowId, version)
Get a specific workflow version
Returns the full snapshot for a single historical version, including the graph.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
Integer version = 56; // Integer |
try {
ApiResponse<GetWorkflowVersion200Response> response = apiInstance.getWorkflowVersionWithHttpInfo(workflowId, version);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#getWorkflowVersion");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| version | Integer |
ApiResponse<GetWorkflowVersion200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Version snapshot | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ListWorkflowExecutionEvents200Response listWorkflowExecutionEvents(workflowId, executionId)
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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
String executionId = "executionId_example"; // String |
try {
ListWorkflowExecutionEvents200Response result = apiInstance.listWorkflowExecutionEvents(workflowId, executionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#listWorkflowExecutionEvents");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| executionId | String |
ListWorkflowExecutionEvents200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Timeline events for the execution | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse listWorkflowExecutionEvents listWorkflowExecutionEventsWithHttpInfo(workflowId, executionId)
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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
String executionId = "executionId_example"; // String |
try {
ApiResponse<ListWorkflowExecutionEvents200Response> response = apiInstance.listWorkflowExecutionEventsWithHttpInfo(workflowId, executionId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#listWorkflowExecutionEvents");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| executionId | String |
ApiResponse<ListWorkflowExecutionEvents200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Timeline events for the execution | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ListWorkflowExecutions200Response listWorkflowExecutions(workflowId, status, limit, skip)
List workflow runs
Returns recent executions (runs) with their status, current node, and accumulated variables.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
String status = "running"; // String |
Integer limit = 25; // Integer |
Integer skip = 0; // Integer |
try {
ListWorkflowExecutions200Response result = apiInstance.listWorkflowExecutions(workflowId, status, limit, skip);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#listWorkflowExecutions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| status | String | [optional] [enum: running, waiting, completed, exited, failed] | |
| limit | Integer | [optional] [default to 25] | |
| skip | Integer | [optional] [default to 0] |
ListWorkflowExecutions200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Executions list | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse listWorkflowExecutions listWorkflowExecutionsWithHttpInfo(workflowId, status, limit, skip)
List workflow runs
Returns recent executions (runs) with their status, current node, and accumulated variables.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
String status = "running"; // String |
Integer limit = 25; // Integer |
Integer skip = 0; // Integer |
try {
ApiResponse<ListWorkflowExecutions200Response> response = apiInstance.listWorkflowExecutionsWithHttpInfo(workflowId, status, limit, skip);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#listWorkflowExecutions");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| status | String | [optional] [enum: running, waiting, completed, exited, failed] | |
| limit | Integer | [optional] [default to 25] | |
| skip | Integer | [optional] [default to 0] |
ApiResponse<ListWorkflowExecutions200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Executions list | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ListWorkflowVersions200Response listWorkflowVersions(workflowId)
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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
ListWorkflowVersions200Response result = apiInstance.listWorkflowVersions(workflowId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#listWorkflowVersions");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
ListWorkflowVersions200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Versions list | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse listWorkflowVersions listWorkflowVersionsWithHttpInfo(workflowId)
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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
ApiResponse<ListWorkflowVersions200Response> response = apiInstance.listWorkflowVersionsWithHttpInfo(workflowId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#listWorkflowVersions");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
ApiResponse<ListWorkflowVersions200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Versions list | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ListWorkflows200Response listWorkflows(profileId, status, limit, skip)
List workflows
Returns workflows with run stats. Filter by status or profile.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String profileId = "profileId_example"; // String | Filter by profile. Omit to list across all profiles
String status = "draft"; // String |
Integer limit = 50; // Integer |
Integer skip = 0; // Integer |
try {
ListWorkflows200Response result = apiInstance.listWorkflows(profileId, status, limit, skip);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#listWorkflows");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | String | Filter by profile. Omit to list across all profiles | [optional] |
| status | String | [optional] [enum: draft, active, paused] | |
| limit | Integer | [optional] [default to 50] | |
| skip | Integer | [optional] [default to 0] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflows list | - |
| 401 | Unauthorized | - |
ApiResponse listWorkflows listWorkflowsWithHttpInfo(profileId, status, limit, skip)
List workflows
Returns workflows with run stats. Filter by status or profile.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String profileId = "profileId_example"; // String | Filter by profile. Omit to list across all profiles
String status = "draft"; // String |
Integer limit = 50; // Integer |
Integer skip = 0; // Integer |
try {
ApiResponse<ListWorkflows200Response> response = apiInstance.listWorkflowsWithHttpInfo(profileId, status, limit, skip);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#listWorkflows");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| profileId | String | Filter by profile. Omit to list across all profiles | [optional] |
| status | String | [optional] [enum: draft, active, paused] | |
| limit | Integer | [optional] [default to 50] | |
| skip | Integer | [optional] [default to 0] |
ApiResponse<ListWorkflows200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflows list | - |
| 401 | Unauthorized | - |
PauseWorkflow200Response pauseWorkflow(workflowId)
Pause workflow
Stop matching new inbound messages. In-flight executions continue to completion. Idempotent.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
PauseWorkflow200Response result = apiInstance.pauseWorkflow(workflowId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#pauseWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow paused | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse pauseWorkflow pauseWorkflowWithHttpInfo(workflowId)
Pause workflow
Stop matching new inbound messages. In-flight executions continue to completion. Idempotent.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
try {
ApiResponse<PauseWorkflow200Response> response = apiInstance.pauseWorkflowWithHttpInfo(workflowId);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#pauseWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String |
ApiResponse<PauseWorkflow200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow paused | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
RestoreWorkflowVersion200Response restoreWorkflowVersion(workflowId, version)
Restore a 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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
Integer version = 56; // Integer |
try {
RestoreWorkflowVersion200Response result = apiInstance.restoreWorkflowVersion(workflowId, version);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#restoreWorkflowVersion");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| version | Integer |
RestoreWorkflowVersion200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow restored to the named version | - |
| 400 | Workflow is not draft/paused, or the named version's graph is invalid for the current platform | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse restoreWorkflowVersion restoreWorkflowVersionWithHttpInfo(workflowId, version)
Restore a 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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
Integer version = 56; // Integer |
try {
ApiResponse<RestoreWorkflowVersion200Response> response = apiInstance.restoreWorkflowVersionWithHttpInfo(workflowId, version);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#restoreWorkflowVersion");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| version | Integer |
ApiResponse<RestoreWorkflowVersion200Response>
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow restored to the named version | - |
| 400 | Workflow is not draft/paused, or the named version's graph is invalid for the current platform | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
TriggerWorkflow200Response triggerWorkflow(workflowId, triggerWorkflowRequest)
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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
TriggerWorkflowRequest triggerWorkflowRequest = new TriggerWorkflowRequest(); // TriggerWorkflowRequest |
try {
TriggerWorkflow200Response result = apiInstance.triggerWorkflow(workflowId, triggerWorkflowRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#triggerWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| triggerWorkflowRequest | TriggerWorkflowRequest |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Run started | - |
| 400 | Missing target, invalid graph, or `to` used on a non-WhatsApp workflow | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse triggerWorkflow triggerWorkflowWithHttpInfo(workflowId, triggerWorkflowRequest)
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.
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
TriggerWorkflowRequest triggerWorkflowRequest = new TriggerWorkflowRequest(); // TriggerWorkflowRequest |
try {
ApiResponse<TriggerWorkflow200Response> response = apiInstance.triggerWorkflowWithHttpInfo(workflowId, triggerWorkflowRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#triggerWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| triggerWorkflowRequest | TriggerWorkflowRequest |
ApiResponse<TriggerWorkflow200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Run started | - |
| 400 | Missing target, invalid graph, or `to` used on a non-WhatsApp workflow | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
UpdateWorkflow200Response updateWorkflow(workflowId, updateWorkflowRequest)
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).
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
UpdateWorkflowRequest updateWorkflowRequest = new UpdateWorkflowRequest(); // UpdateWorkflowRequest |
try {
UpdateWorkflow200Response result = apiInstance.updateWorkflow(workflowId, updateWorkflowRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#updateWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| updateWorkflowRequest | UpdateWorkflowRequest | [optional] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow updated | - |
| 400 | Invalid graph, or a graph edit attempted while the workflow is active | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |
ApiResponse updateWorkflow updateWorkflowWithHttpInfo(workflowId, updateWorkflowRequest)
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).
// Import classes:
import dev.zernio.ApiClient;
import dev.zernio.ApiException;
import dev.zernio.ApiResponse;
import dev.zernio.Configuration;
import dev.zernio.auth.*;
import dev.zernio.models.*;
import dev.zernio.api.WorkflowsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://zernio.com/api");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
WorkflowsApi apiInstance = new WorkflowsApi(defaultClient);
String workflowId = "workflowId_example"; // String |
UpdateWorkflowRequest updateWorkflowRequest = new UpdateWorkflowRequest(); // UpdateWorkflowRequest |
try {
ApiResponse<UpdateWorkflow200Response> response = apiInstance.updateWorkflowWithHttpInfo(workflowId, updateWorkflowRequest);
System.out.println("Status code: " + response.getStatusCode());
System.out.println("Response headers: " + response.getHeaders());
System.out.println("Response body: " + response.getData());
} catch (ApiException e) {
System.err.println("Exception when calling WorkflowsApi#updateWorkflow");
System.err.println("Status code: " + e.getCode());
System.err.println("Response headers: " + e.getResponseHeaders());
System.err.println("Reason: " + e.getResponseBody());
e.printStackTrace();
}
}
}| Name | Type | Description | Notes |
|---|---|---|---|
| workflowId | String | ||
| updateWorkflowRequest | UpdateWorkflowRequest | [optional] |
ApiResponse<UpdateWorkflow200Response>
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Workflow updated | - |
| 400 | Invalid graph, or a graph edit attempted while the workflow is active | - |
| 401 | Unauthorized | - |
| 404 | Resource not found | - |