إنتقل إلى المحتوى الرئيسي

هذه الصفحة غير متاحة بالعربية بعد، وتُعرض بالإنجليزية.

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​

MethodPathSummary
GET/v1/assessmentsList engagements (ReportsRead)
POST/v1/assessmentsStart an Instant Assessment (TenantManage)
GET/v1/assessments/{id}Engagement with progress (enrolled devices, days of data, coverage)
POST/v1/assessments/{id}/cancelCancel an engagement (TenantManage)
POST/v1/assessments/{id}/reportGenerate the assessment report now from data so far (ReportsGenerate); the engagement keeps collecting
POST/v1/report-schedules/executiveSchedule a monthly executive report on the first day of each month (TenantManage; audited)
GET/v1/report-settingsPer-tenant report settings (ReportsRead)
PUT/v1/report-settingsChange report settings (TenantManage; audited)
GET/v1/reportsList the tenant's reports, newest first (ReportsRead)
POST/v1/reportsGenerate 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}/verifyRe-read and re-hash every artifact and the manifest (ReportsRead; auditors included)
POST/v1/reports/ia-evidenceStore an IA evidence pack built by compliance-service as an immutable ia_evidence report version (ReportsGenerate)
POST/v1/reports/sustainabilityGenerate an immutable sustainability report version for a month in English and Arabic (ReportsGenerate; Enterprise feature sustainability_reporting)

GET /v1/assessments​

List engagements (ReportsRead)

StatusDescriptionBody
200OKAssessment[]

POST /v1/assessments​

Start an Instant Assessment (TenantManage)

Request body: object (JSON).

StatusDescriptionBody
201StartedAssessmentView
400Window or target out of range
403Missing TenantManage

GET /v1/assessments/{id}​

Engagement with progress (enrolled devices, days of data, coverage)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200OKAssessmentView
404Not found or another tenant

POST /v1/assessments/{id}/cancel​

Cancel an engagement (TenantManage)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200CancelledAssessment
404Not found
409Not collecting

POST /v1/assessments/{id}/report​

Generate the assessment report now from data so far (ReportsGenerate); the engagement keeps collecting

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
201GeneratedReport
404Not found or another tenant
409Engagement cancelled

POST /v1/report-schedules/executive​

Schedule a monthly executive report on the first day of each month (TenantManage; audited)

StatusDescriptionBody
202Scheduled

GET /v1/report-settings​

Per-tenant report settings (ReportsRead)

StatusDescriptionBody
200OKSettings

PUT /v1/report-settings​

Change report settings (TenantManage; audited)

Request body: Settings (JSON).

StatusDescriptionBody
200SavedSettings
403Missing TenantManage

GET /v1/reports​

List the tenant's reports, newest first (ReportsRead)

StatusDescriptionBody
200OKReport[]

POST /v1/reports​

Generate an on-demand executive report (ReportsGenerate)

Request body: object (JSON).

StatusDescriptionBody
201GeneratedReport
400Unsupported type or invalid period
403Missing ReportsGenerate

GET /v1/reports/{id}​

Report metadata, artifacts and hashes (ReportsRead)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200OKReport
404Not 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.

ParameterInTypeRequiredDescription
idpathstringyes
formatpathstringyes
languagequerystringno
StatusDescriptionBody
200The artifact (csv and json are the results and signed manifest of an ia_evidence pack)object
404Not found, another tenant, or unknown format or language
409Integrity check failed

GET /v1/reports/{id}/verify​

Re-read and re-hash every artifact and the manifest (ReportsRead; auditors included)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200Verification resultobject
404Not 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).

StatusDescriptionBody
201StoredReport
400Invalid files, source reference or manifest
403The 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
413A file exceeds 20 MB
503The 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).

StatusDescriptionBody
201Stored as sustainability.en.html, sustainability.ar.html and sustainability.jsonReport
400The period is not a month in the form yyyy-MM
403The 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
503The 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