Workflows
Generated from openapi.json (API version 0.54.3). 27 endpoints. See the API overview for the base URL and how to sign requests.
Fetch Facet Options
Section titled “Fetch Facet Options”POST /workflows/facets/options
Needs read:workflows.
Query workflows facet options. Accepts dictionary where key is facet id and value is cel to query facet
Body (application/json, required): FacetOptionsQueryDto
| Field | Type | Required | Description |
|---|---|---|---|
cel |
string or null | no | |
facet_queries |
object or null | no |
Responses
200Successful Response: object
Fetch Facets
Section titled “Fetch Facets”GET /workflows/facets
Needs read:workflows.
Get workflow facets
Responses
200Successful Response: array of object
Fetch Facet Fields
Section titled “Fetch Facet Fields”GET /workflows/facets/fields
Needs read:workflows.
Get potential fields for workflow facets
Responses
200Successful Response: array of object
Get Workflows
Section titled “Get Workflows”GET /workflows
Needs read:workflows.
Get workflows
Responses
200Successful Response: array ofWorkflowDTOor array of object
Create Workflow
Section titled “Create Workflow”POST /workflows
Needs write:workflows.
Create or update a workflow
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
lookup_by_name |
boolean | no |
Body (multipart/form-data, required): Body_create_workflow_workflows_post
| Field | Type | Required | Description |
|---|---|---|---|
file |
string | yes |
Responses
201Successful Response:WorkflowCreateOrUpdateDTO
Query Workflows
Section titled “Query Workflows”POST /workflows/query
Needs read:workflows.
Query workflows
Body (application/json, required): QueryDto
| Field | Type | Required | Description |
|---|---|---|---|
cel |
string or null | no | |
limit |
integer or null | no | |
offset |
integer or null | no | |
sort_by |
string or null | no | |
sort_dir |
string or null | no | |
sort_options |
array of SortOptionsDto or null |
no |
Responses
200Successful Response: object
Export Workflows
Section titled “Export Workflows”GET /workflows/export
Needs read:workflows.
export all workflow Yamls
Responses
200Successful Response: array of string
Run Workflow With Query Params
Section titled “Run Workflow With Query Params”GET /workflows/{workflow_id}/run
Needs execute:workflows.
Run a workflow
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Responses
200Successful Response: object
Run Workflow
Section titled “Run Workflow”POST /workflows/{workflow_id}/run
Needs execute:workflows.
Run a workflow
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
event_type |
string or null | no | |
event_id |
string or null | no |
Body (application/json): object or null
Responses
200Successful Response: object
Run Workflow From Definition
Section titled “Run Workflow From Definition”POST /workflows/test
Needs write:workflows.
Test run a workflow from a definition
Body (application/json): object
Responses
200Successful Response:WorkflowRunResponseDTO
Get Workflow Executions By Alert Fingerprint
Section titled “Get Workflow Executions By Alert Fingerprint”GET /workflows/executions
Needs read:workflows.
Get workflow executions by alert fingerprint
Responses
200Successful Response: array ofWorkflowToAlertExecutionDTO
Create Workflow From Body
Section titled “Create Workflow From Body”POST /workflows/json
Needs write:workflows.
Create or update a workflow
Responses
201Successful Response:WorkflowCreateOrUpdateDTO
Get Random Workflow Templates
Section titled “Get Random Workflow Templates”GET /workflows/random-templates
Needs read:workflows.
Get random workflow templates
Responses
200Successful Response: array of object
Query Workflow Templates
Section titled “Query Workflow Templates”POST /workflows/templates/query
Needs read:workflows.
Query workflow templates
Body (application/json, required): QueryDto
| Field | Type | Required | Description |
|---|---|---|---|
cel |
string or null | no | |
limit |
integer or null | no | |
offset |
integer or null | no | |
sort_by |
string or null | no | |
sort_dir |
string or null | no | |
sort_options |
array of SortOptionsDto or null |
no |
Responses
200Successful Response: object
Get Workflow By ID
Section titled “Get Workflow By ID”GET /workflows/{workflow_id}
Needs read:workflows.
Get workflow by ID
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
revision |
integer or null | no |
Responses
200Successful Response: object
Update Workflow By ID
Section titled “Update Workflow By ID”PUT /workflows/{workflow_id}
Needs write:workflows.
Update a workflow
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Responses
201Successful Response:WorkflowCreateOrUpdateDTO
Delete Workflow By ID
Section titled “Delete Workflow By ID”DELETE /workflows/{workflow_id}
Needs delete:workflows.
Delete workflow
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Responses
200Successful Response: object
Get Raw Workflow By ID
Section titled “Get Raw Workflow By ID”GET /workflows/{workflow_id}/raw
Needs read:workflows.
Get raw workflow by ID
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Responses
200Successful Response:WorkflowRawDto
Get Workflow By ID
Section titled “Get Workflow By ID”GET /workflows/{workflow_id}/versions/{revision}
Needs read:workflows.
Get workflow by ID and revision
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes | |
revision |
integer or null | yes |
Responses
200Successful Response: object
List Workflow Versions
Section titled “List Workflow Versions”GET /workflows/{workflow_id}/versions
Needs read:workflows.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Responses
200Successful Response: object
Get Workflow Runs By ID
Section titled “Get Workflow Runs By ID”GET /workflows/{workflow_id}/runs
Needs read:workflows.
Get workflow executions by ID
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
tab |
integer | no | |
limit |
integer | no | |
offset |
integer | no | |
status |
array of string or null | no | |
trigger |
array of string or null | no | |
execution_id |
string or null | no |
Responses
200Successful Response:WorkflowExecutionsPaginatedResultsDto
Get Workflow Execution Status
Section titled “Get Workflow Execution Status”GET /workflows/{workflow_id}/runs/{workflow_execution_id}
Needs read:workflows.
Get a workflow execution status, results, and logs
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_execution_id |
string | yes |
Responses
200Successful Response:WorkflowExecutionDTO
Get Workflow Execution Status
Section titled “Get Workflow Execution Status”GET /workflows/runs/{workflow_execution_id}
Needs read:workflows.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_execution_id |
string | yes |
Responses
200Successful Response:WorkflowExecutionDTO
Toggle Workflow State
Section titled “Toggle Workflow State”PUT /workflows/{workflow_id}/toggle
Needs write:workflows.
Enable or disable a workflow
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Responses
200Successful Response: object
Read Workflow Secret
Section titled “Read Workflow Secret”GET /workflows/{workflow_id}/secrets
Needs write:secrets.
Read a workflow secret
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
is_json |
boolean | no |
Responses
200Successful Response: object or string
Write Workflow Secret
Section titled “Write Workflow Secret”POST /workflows/{workflow_id}/secrets
Needs write:secrets.
Write a new secret or update existing secret for a workflow
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes |
Body (application/json, required): object
Responses
200Successful Response: object
Delete Workflow Secret
Section titled “Delete Workflow Secret”DELETE /workflows/{workflow_id}/secrets/{secret_name}
Needs write:secrets.
Delete a specific secret key for a workflow
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
workflow_id |
string | yes | |
secret_name |
string | yes |
Responses
200Successful Response: object