Skip to content

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.

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

  • 200 Successful Response: object

GET /workflows/facets

Needs read:workflows.

Get workflow facets

Responses

  • 200 Successful Response: array of object

GET /workflows/facets/fields

Needs read:workflows.

Get potential fields for workflow facets

Responses

  • 200 Successful Response: array of object

GET /workflows

Needs read:workflows.

Get workflows

Responses

  • 200 Successful Response: array of WorkflowDTO or array of object

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

  • 201 Successful Response: WorkflowCreateOrUpdateDTO

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

  • 200 Successful Response: object

GET /workflows/export

Needs read:workflows.

export all workflow Yamls

Responses

  • 200 Successful Response: array of string

GET /workflows/{workflow_id}/run

Needs execute:workflows.

Run a workflow

Path parameters

Name Type Required Description
workflow_id string yes

Responses

  • 200 Successful Response: object

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

  • 200 Successful Response: object

POST /workflows/test

Needs write:workflows.

Test run a workflow from a definition

Body (application/json): object

Responses

  • 200 Successful 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

  • 200 Successful Response: array of WorkflowToAlertExecutionDTO

POST /workflows/json

Needs write:workflows.

Create or update a workflow

Responses

  • 201 Successful Response: WorkflowCreateOrUpdateDTO

GET /workflows/random-templates

Needs read:workflows.

Get random workflow templates

Responses

  • 200 Successful Response: array of object

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

  • 200 Successful Response: object

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

  • 200 Successful Response: object

PUT /workflows/{workflow_id}

Needs write:workflows.

Update a workflow

Path parameters

Name Type Required Description
workflow_id string yes

Responses

  • 201 Successful Response: WorkflowCreateOrUpdateDTO

DELETE /workflows/{workflow_id}

Needs delete:workflows.

Delete workflow

Path parameters

Name Type Required Description
workflow_id string yes

Responses

  • 200 Successful Response: object

GET /workflows/{workflow_id}/raw

Needs read:workflows.

Get raw workflow by ID

Path parameters

Name Type Required Description
workflow_id string yes

Responses

  • 200 Successful Response: WorkflowRawDto

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

  • 200 Successful Response: object

GET /workflows/{workflow_id}/versions

Needs read:workflows.

Path parameters

Name Type Required Description
workflow_id string yes

Responses

  • 200 Successful Response: object

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

  • 200 Successful Response: WorkflowExecutionsPaginatedResultsDto

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

  • 200 Successful Response: WorkflowExecutionDTO

GET /workflows/runs/{workflow_execution_id}

Needs read:workflows.

Path parameters

Name Type Required Description
workflow_execution_id string yes

Responses

  • 200 Successful Response: WorkflowExecutionDTO

PUT /workflows/{workflow_id}/toggle

Needs write:workflows.

Enable or disable a workflow

Path parameters

Name Type Required Description
workflow_id string yes

Responses

  • 200 Successful Response: object

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

  • 200 Successful Response: object or string

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

  • 200 Successful Response: object

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

  • 200 Successful Response: object