هذه الصفحة غير متاحة بالعربية بعد، وتُعرض بالإنجليزية.
Dexwize Report Service
Instant Assessment engagements and versioned, immutable reports (HTML and PDF, English and Arabic). Every request needs a bearer token with tid, sub and role claims; another tenant's report or engagement returns 404. On-demand generation forwards the caller's token to upstream services. Reports are retained for 7 years in WORM storage; regenerating creates a new version and never overwrites one.
Version 1.0.0. Download the OpenAPI specification.
Authentication: bearer.
Operations
| Method | Path | Summary |
|---|---|---|
GET | /v1/assessments | List engagements (ReportsRead) |
POST | /v1/assessments | Start an Instant Assessment (TenantManage) |
GET | /v1/assessments/{id} | Engagement with progress (enrolled devices, days of data, coverage) |
POST | /v1/assessments/{id}/cancel | Cancel an engagement (TenantManage) |
POST | /v1/assessments/{id}/report | Generate the assessment report now from data so far (ReportsGenerate); the engagement keeps collecting |
POST | /v1/report-schedules/executive | Schedule a monthly executive report on the first day of each month (TenantManage; audited) |
GET | /v1/report-settings | Per-tenant report settings (ReportsRead) |
PUT | /v1/report-settings | Change report settings (TenantManage; audited) |
GET | /v1/reports | List the tenant's reports, newest first (ReportsRead) |
POST | /v1/reports | Generate an on-demand executive report (ReportsGenerate) |
GET | /v1/reports/{id} | Report metadata, artifacts and hashes (ReportsRead) |
GET | /v1/reports/{id}/artifacts/{format} | Download an artifact (audited). Refused if the stored bytes no longer match the recorded SHA-256. |
GET | /v1/reports/{id}/verify | Re-read and re-hash every artifact and the manifest (ReportsRead; auditors included) |
POST | /v1/reports/ia-evidence | Store an IA evidence pack built by compliance-service as an immutable ia_evidence report version (ReportsGenerate) |
POST | /v1/reports/sustainability | Generate an immutable sustainability report version for a month in English and Arabic (ReportsGenerate; Enterprise feature sustainability_reporting) |
GET /v1/assessments
List engagements (ReportsRead)
| Status | Description | Body |
|---|---|---|
| 200 | OK | Assessment[] |
POST /v1/assessments
Start an Instant Assessment (TenantManage)
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 201 | Started | AssessmentView |
| 400 | Window or target out of range | |
| 403 | Missing TenantManage |
GET /v1/assessments/{id}
Engagement with progress (enrolled devices, days of data, coverage)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | OK | AssessmentView |
| 404 | Not found or another tenant |
POST /v1/assessments/{id}/cancel
Cancel an engagement (TenantManage)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | Cancelled | Assessment |
| 404 | Not found | |
| 409 | Not collecting |
POST /v1/assessments/{id}/report
Generate the assessment report now from data so far (ReportsGenerate); the engagement keeps collecting
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 201 | Generated | Report |
| 404 | Not found or another tenant | |
| 409 | Engagement cancelled |
POST /v1/report-schedules/executive
Schedule a monthly executive report on the first day of each month (TenantManage; audited)
| Status | Description | Body |
|---|---|---|
| 202 | Scheduled |
GET /v1/report-settings
Per-tenant report settings (ReportsRead)
| Status | Description | Body |
|---|---|---|
| 200 | OK | Settings |
PUT /v1/report-settings
Change report settings (TenantManage; audited)
Request body: Settings (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Saved | Settings |
| 403 | Missing TenantManage |
GET /v1/reports
List the tenant's reports, newest first (ReportsRead)
| Status | Description | Body |
|---|---|---|
| 200 | OK | Report[] |
POST /v1/reports
Generate an on-demand executive report (ReportsGenerate)
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 201 | Generated | Report |
| 400 | Unsupported type or invalid period | |
| 403 | Missing ReportsGenerate |
GET /v1/reports/{id}
Report metadata, artifacts and hashes (ReportsRead)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | OK | Report |
| 404 | Not found or another tenant |
GET /v1/reports/{id}/artifacts/{format}
Download an artifact (audited). Refused if the stored bytes no longer match the recorded SHA-256.
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes | |
format | path | string | yes | |
language | query | string | no |
| Status | Description | Body |
|---|---|---|
| 200 | The artifact (csv and json are the results and signed manifest of an ia_evidence pack) | object |
| 404 | Not found, another tenant, or unknown format or language | |
| 409 | Integrity check failed |
GET /v1/reports/{id}/verify
Re-read and re-hash every artifact and the manifest (ReportsRead; auditors included)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 200 | Verification result | object |
| 404 | Not found or another tenant |
POST /v1/reports/ia-evidence
Store an IA evidence pack built by compliance-service as an immutable ia_evidence report version (ReportsGenerate)
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 201 | Stored | Report |
| 400 | Invalid files, source reference or manifest | |
| 403 | The caller lacks the permission (empty body), or the tenant's plan, add-ons, licence and overrides do not include the feature (error feature_not_entitled, ADR-0053). | EntitlementRefusal |
| 413 | A file exceeds 20 MB | |
| 503 | The tenant's entitlements could not be confirmed and nothing usable was cached, so the paid feature is refused (fail closed, ADR-0053). Retry-After is set. | EntitlementRefusal |
POST /v1/reports/sustainability
Generate an immutable sustainability report version for a month in English and Arabic (ReportsGenerate; Enterprise feature sustainability_reporting)
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 201 | Stored as sustainability.en.html, sustainability.ar.html and sustainability.json | Report |
| 400 | The period is not a month in the form yyyy-MM | |
| 403 | The caller lacks the permission (empty body), or the tenant's plan, add-ons, licence and overrides do not include the feature (error feature_not_entitled, ADR-0053). | EntitlementRefusal |
| 503 | The tenant's entitlements could not be confirmed and nothing usable was cached, so the paid feature is refused (fail closed, ADR-0053). Retry-After is set. | EntitlementRefusal |