Dexwize workflow service
No-code remediation workflows (E31, ADR-0037). Definitions are drafts until published; each publish creates an immutable, hashed version and rollback republishes an older one as a new version. Runs are pinned to the version they started on and are interpreted deterministically on Temporal. Remediation steps go through remediation-service, so tenant autonomy and approval policy always apply; approval steps cannot be decided by the run starter or the workflow owner.
Version 1.0.0. Download the OpenAPI specification.
Authentication: bearer.
Operations
| Method | Path | Summary |
|---|---|---|
GET | /v1/workflow-runs/{runId} | Get a run with its step history (FindingsRead) |
POST | /v1/workflow-runs/{runId}/steps/{stepId}/decision | Approve or reject a waiting approval step (RecommendationsApprove; audited) |
GET | /v1/workflows | List workflows (FindingsRead) |
POST | /v1/workflows | Create a workflow from a draft definition (RemediationExecute; audited) |
GET | /v1/workflows/{id} | Get a workflow with its draft and versions (FindingsRead) |
POST | /v1/workflows/{id}/disable | Disable triggers and new runs (RemediationExecute; audited) |
PUT | /v1/workflows/{id}/draft | Replace the draft (RemediationExecute; audited) |
POST | /v1/workflows/{id}/enable | Enable triggers and runs (RemediationExecute; audited) |
POST | /v1/workflows/{id}/publish | Validate the draft and publish it as a new immutable version (RemediationExecute; audited) |
POST | /v1/workflows/{id}/rollback | Republish an earlier version as a new version (RemediationExecute; audited) |
GET | /v1/workflows/{id}/runs | Run history for a workflow (FindingsRead) |
POST | /v1/workflows/{id}/runs | Start a manual run on the current version (RemediationExecute; audited) |
GET | /v1/workflows/actions | Library action ids a remediation step may use (FindingsRead) |
POST | /v1/workflows/triggers | Start every enabled workflow whose trigger matches an event (WorkflowsTrigger) |
POST | /v1/workflows/validate | Validate a definition without saving it (RemediationExecute) |
GET /v1/workflow-runs/{runId}
Get a run with its step history (FindingsRead)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
runId | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | Run | Run |
| 404 | Not found |
POST /v1/workflow-runs/{runId}/steps/{stepId}/decision
Approve or reject a waiting approval step (RecommendationsApprove; audited)
The run starter and the workflow owner are refused; the caller must hold the step approver role.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
runId | path | string | yes | |
stepId | path | string | yes |
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Decision recorded | Run |
| 400 | Not waiting on this step, self-approval, or missing approver role | |
| 403 | Missing permission, or the tenant plan does not include approval_workflow (ADR-0053): {"error":"feature_not_entitled","feature":"approval_workflow"} | FeatureRefusal |
| 404 | Not found | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; approval_workflow is refused (fail closed). Retry-After is set. | FeatureRefusal |
GET /v1/workflows
List workflows (FindingsRead)
| Status | Description | Body |
|---|---|---|
| 200 | Workflows | Workflow[] |
| 403 | Missing FindingsRead |
POST /v1/workflows
Create a workflow from a draft definition (RemediationExecute; audited)
Request body: Definition (JSON).
| Status | Description | Body |
|---|---|---|
| 201 | Created | Workflow |
| 400 | Invalid draft | |
| 403 | Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"} | FeatureRefusal |
| 503 | Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set. | FeatureRefusal |
GET /v1/workflows/{id}
Get a workflow with its draft and versions (FindingsRead)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | Workflow | Workflow |
| 404 | Not found |
POST /v1/workflows/{id}/disable
Disable triggers and new runs (RemediationExecute; audited)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | Disabled | Workflow |
| 404 | Not found |
PUT /v1/workflows/{id}/draft
Replace the draft (RemediationExecute; audited)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body: Definition (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Updated | Workflow |
| 403 | Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"} | FeatureRefusal |
| 404 | Not found | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set. | FeatureRefusal |
POST /v1/workflows/{id}/enable
Enable triggers and runs (RemediationExecute; audited)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | Enabled | Workflow |
| 403 | Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"} | FeatureRefusal |
| 404 | Not found | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set. | FeatureRefusal |
POST /v1/workflows/{id}/publish
Validate the draft and publish it as a new immutable version (RemediationExecute; audited)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Published | Workflow |
| 400 | Validation errors | |
| 403 | Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"} | FeatureRefusal |
| 404 | Not found | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set. | FeatureRefusal |
POST /v1/workflows/{id}/rollback
Republish an earlier version as a new version (RemediationExecute; audited)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Rolled back | Workflow |
| 400 | Unknown version, or it no longer validates | |
| 403 | Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"} | FeatureRefusal |
| 404 | Not found | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set. | FeatureRefusal |
GET /v1/workflows/{id}/runs
Run history for a workflow (FindingsRead)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | Runs, newest first | Run[] |
POST /v1/workflows/{id}/runs
Start a manual run on the current version (RemediationExecute; audited)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 202 | Run started | Run |
| 400 | Not published, disabled, or too many devices | |
| 403 | Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"} | FeatureRefusal |
| 404 | Not found | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set. | FeatureRefusal |
GET /v1/workflows/actions
Library action ids a remediation step may use (FindingsRead)
| Status | Description | Body |
|---|---|---|
| 200 | Action ids from the signed content library | string[] |
POST /v1/workflows/triggers
Start every enabled workflow whose trigger matches an event (WorkflowsTrigger)
People with the analyst role and services holding workflow_trigger_sender (rules-engine when a finding opens, scoring-service when an alert opens). With an idempotency key a repeated event starts nothing. Schedule triggers are started by workflow-service itself, once per slot.
Request body: TriggerEvent (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Runs started | Run[] |
| 403 | Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"} | FeatureRefusal |
| 503 | Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set. | FeatureRefusal |
POST /v1/workflows/validate
Validate a definition without saving it (RemediationExecute)
Request body: Definition (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Validation report | Validation |
| 403 | Missing permission, or the tenant plan does not include workflows (ADR-0053): {"error":"feature_not_entitled","feature":"workflows"} | FeatureRefusal |
| 503 | Entitlements could not be confirmed and nothing usable is cached; workflows is refused (fail closed). Retry-After is set. | FeatureRefusal |