enbbox 1.0.1

Notification infrastructure API — open-source alternative to Novu/Courier
Documentation
# \WorkflowsApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**create_workflow**]WorkflowsApi.md#create_workflow | **POST** /v1/workflows/ | POST /v1/workflows
[**delete_workflow**]WorkflowsApi.md#delete_workflow | **DELETE** /v1/workflows/{id}/ | DELETE /v1/workflows/:id
[**duplicate_workflow**]WorkflowsApi.md#duplicate_workflow | **POST** /v1/workflows/{id}/duplicate/ | POST /v1/workflows/:id/duplicate — clone workflow
[**get_step**]WorkflowsApi.md#get_step | **GET** /v1/workflows/{id}/steps/{step_id}/ | GET /v1/workflows/:id/steps/:step_id — get step details
[**get_workflow**]WorkflowsApi.md#get_workflow | **GET** /v1/workflows/{id}/ | GET /v1/workflows/:id
[**list_workflows**]WorkflowsApi.md#list_workflows | **GET** /v1/workflows/ | GET /v1/workflows
[**step_preview**]WorkflowsApi.md#step_preview | **POST** /v1/workflows/{id}/step/{step_id}/preview/ | POST /v1/workflows/:id/step/:step_id/preview — render step template
[**sync_workflow**]WorkflowsApi.md#sync_workflow | **PUT** /v1/workflows/{id}/sync/ | PUT /v1/workflows/:id/sync — sync from code-first workflow definition
[**update_workflow**]WorkflowsApi.md#update_workflow | **PUT** /v1/workflows/{id}/ | PUT /v1/workflows/:id
[**update_workflow_status**]WorkflowsApi.md#update_workflow_status | **PUT** /v1/workflows/{id}/status/ | PUT /v1/workflows/:id/status



## create_workflow

> models::WorkflowRecord create_workflow(create_workflow)
POST /v1/workflows

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**create_workflow** | [**CreateWorkflow**]CreateWorkflow.md |  | [required] |

### Return type

[**models::WorkflowRecord**](WorkflowRecord.md)

### Authorization

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

### 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(id)
DELETE /v1/workflows/:id

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Workflow ID | [required] |

### Return type

 (empty response body)

### Authorization

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

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined

[[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::WorkflowRecord duplicate_workflow(id)
POST /v1/workflows/:id/duplicate — clone workflow

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** |  | [required] |

### Return type

[**models::WorkflowRecord**](WorkflowRecord.md)

### Authorization

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

### 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_step

> models::StepRecord get_step(id, step_id)
GET /v1/workflows/:id/steps/:step_id — get step details

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** |  | [required] |
**step_id** | **String** |  | [required] |

### Return type

[**models::StepRecord**](StepRecord.md)

### Authorization

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

### 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::WorkflowRecord get_workflow(id)
GET /v1/workflows/:id

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Workflow ID | [required] |

### Return type

[**models::WorkflowRecord**](WorkflowRecord.md)

### Authorization

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

### 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::PaginatedWorkflowRecord list_workflows(limit, offset, q, filter_by)
GET /v1/workflows

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**limit** | Option<**u32**> | Maximum number of items to return (1–100, default: 10). |  |
**offset** | Option<**u32**> | Number of items to skip before returning results (default: 0). |  |
**q** | Option<**String**> | Optional full-text search query. When present, listing is powered by Typesense full-text search. |  |
**filter_by** | Option<**String**> | Optional Typesense filter expression for narrowing results. Example: `identifier:=acme-corp` or `name:=General`. |  |

### Return type

[**models::PaginatedWorkflowRecord**](Paginated_WorkflowRecord.md)

### Authorization

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

### 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)


## step_preview

> models::PreviewResult step_preview(id, step_id, step_preview)
POST /v1/workflows/:id/step/:step_id/preview — render step template

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** |  | [required] |
**step_id** | **String** |  | [required] |
**step_preview** | [**StepPreview**]StepPreview.md |  | [required] |

### Return type

[**models::PreviewResult**](PreviewResult.md)

### Authorization

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

### 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)


## sync_workflow

> models::WorkflowRecord sync_workflow(id, sync_workflow)
PUT /v1/workflows/:id/sync — sync from code-first workflow definition

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** |  | [required] |
**sync_workflow** | [**SyncWorkflow**]SyncWorkflow.md |  | [required] |

### Return type

[**models::WorkflowRecord**](WorkflowRecord.md)

### Authorization

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

### 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::WorkflowRecord update_workflow(id, update_workflow)
PUT /v1/workflows/:id

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Workflow ID | [required] |
**update_workflow** | [**UpdateWorkflow**]UpdateWorkflow.md |  | [required] |

### Return type

[**models::WorkflowRecord**](WorkflowRecord.md)

### Authorization

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

### 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_status

> models::WorkflowRecord update_workflow_status(id, workflow_status)
PUT /v1/workflows/:id/status

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**id** | **uuid::Uuid** | Workflow ID | [required] |
**workflow_status** | [**WorkflowStatus**]WorkflowStatus.md |  | [required] |

### Return type

[**models::WorkflowRecord**](WorkflowRecord.md)

### Authorization

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

### 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)