Dexwize Remediation Service
Remediation requests, approvals, rollout and rollback (E10), and the device command queue. User endpoints take a bearer token; device endpoints take the enrollment-service device credential ("Authorization: Device "). Every command is signed (dexwize-command-v1, ADR-0022) and carries the content-signed action document unchanged. Cross-tenant requests return 404.
Version 1.0.0. Download the OpenAPI specification.
Authentication: bearer, device.
Operations
| Method | Path | Summary |
|---|
GET | /v1/devices/self/commands | Commands waiting for this device (device credential) |
POST | /v1/devices/self/commands/{commandId}/result | Report the result of one command (device credential) |
GET | /v1/remediations | List remediation requests, newest first (FindingsRead) |
POST | /v1/remediations | Request a remediation (RemediationExecute) |
GET | /v1/remediations/{id} | getRemediation |
POST | /v1/remediations/{id}/approve | Approve (RecommendationsApprove); the requester can never approve their own request |
POST | /v1/remediations/{id}/cancel | cancelRemediation |
GET | /v1/remediations/{id}/handoff | Intune or SCCM detection and remediation scripts for this request |
POST | /v1/remediations/{id}/reject | rejectRemediation |
POST | /v1/remediations/{id}/rollback | Issue rollback commands for every device the request changed (within 7 days) |
GET | /v1/remediations/keys | Public command-signing key(s), delivered to devices by enrollment-service (ADR-0022) |
GET /v1/devices/self/commands
Commands waiting for this device (device credential)
| Status | Description | Body |
|---|
| 200 | Pending commands; expired commands are closed, not delivered | object |
| 401 | Missing or invalid device credential | |
POST /v1/devices/self/commands/{commandId}/result
Report the result of one command (device credential)
| Parameter | In | Type | Required | Description |
|---|
commandId | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 202 | Recorded | |
| 400 | Id mismatch, unknown status or already recorded | |
| 401 | Missing or invalid device credential | |
| 404 | Not this device's command | |
List remediation requests, newest first (FindingsRead)
| Parameter | In | Type | Required | Description |
|---|
status | query | string | no | Status name, case-insensitive |
recommendationId | query | string | no | Only requests made for this recommendation |
limit | query | integer | no | |
| Status | Description | Body |
|---|
| 200 | OK | RemediationSummary[] |
| 400 | Unknown status or limit out of range | |
| 403 | Missing permission | |
POST /v1/remediations
Request a remediation (RemediationExecute)
Request body: object (JSON).
| Status | Description | Body |
|---|
| 201 | Created (PendingApproval, Active or SuggestionOnly) | Remediation |
| 400 | Invalid parameters or window | |
| 403 | Missing permission, or the tenant plan does not include remote_actions (ADR-0053): {"error":"feature_not_entitled","feature":"remote_actions"} | FeatureRefusal |
| 404 | Unknown action or device (including another tenant's device) | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; remote_actions is refused (fail closed). Retry-After is set. | FeatureRefusal |
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | OK | Remediation |
| 404 | Not found | |
POST /v1/remediations/{id}/approve
Approve (RecommendationsApprove); the requester can never approve their own request
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Approved; commands issued for devices the policy allows now | Remediation |
| 400 | Self-approval or wrong state | |
| 403 | Missing permission, or the tenant plan does not include remote_actions (ADR-0053): {"error":"feature_not_entitled","feature":"remote_actions"} | FeatureRefusal |
| 404 | Not found | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; remote_actions is refused (fail closed). Retry-After is set. | FeatureRefusal |
POST /v1/remediations/{id}/cancel
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Cancelled; undelivered commands expire | Remediation |
| 400 | Wrong state | |
| 404 | Not found | |
Intune or SCCM detection and remediation scripts for this request
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Package | HandoffPackage |
| 400 | Operation not available as a package | |
| 403 | Missing permission, or the tenant plan does not include remote_actions (ADR-0053): {"error":"feature_not_entitled","feature":"remote_actions"} | FeatureRefusal |
| 404 | Not found | |
| 503 | Entitlements could not be confirmed and nothing usable is cached; remote_actions is refused (fail closed). Retry-After is set. | FeatureRefusal |
POST /v1/remediations/{id}/reject
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
Request body: Decision (JSON).
| Status | Description | Body |
|---|
| 200 | Rejected | Remediation |
| 400 | Wrong state | |
| 404 | Not found | |
POST /v1/remediations/{id}/rollback
Issue rollback commands for every device the request changed (within 7 days)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
Request body: Decision (JSON).
| Status | Description | Body |
|---|
| 200 | Rollback commands issued | RollbackIssued |
| 400 | Action cannot be rolled back automatically | |
| 404 | Not found | |
Public command-signing key(s), delivered to devices by enrollment-service (ADR-0022)
| Status | Description | Body |
|---|
| 200 | Current public keys | object[] |
| 401 | Not authenticated | |