Dexwize Operator Console API
Vendor (NewTurn) operations backend (E25). Every /v1/ops route requires PlatformOperate, which requires a non-JIT platform-tenant session; anyone else receives 403. Downstream calls (tenant-service, identity-service, enrollment-service) forward the operator's own token so each service re-checks authorization. Every write is audited in the platform tenant's chain, and offboarding steps also in the customer's chain.
Version 1.0.0. Download the OpenAPI specification.
Authentication: bearer.
Operations
| Method | Path | Summary |
|---|
GET | /status.json | Public status page data (anonymous, read-only, no internal identifiers or authors) |
GET | /v1/ops/kpis | Revenue, retention, conversion and channel KPIs (docs/operations/kpis.md, definitions v1) |
GET | /v1/ops/kpis/crm-funnel/imports | Accepted CRM funnel imports, newest first |
POST | /v1/ops/kpis/crm-funnel/imports | Import a CRM funnel export (format dexwize-crm-funnel/v1) |
GET | /v1/ops/kpis/crm-funnel/template.csv | An example CRM funnel import file |
GET | /v1/ops/kpis/export.csv | The KPI report as CSV in long form (one value per row; formula-like text cells neutralised; audited) |
GET | /v1/ops/offboarding | listOffboarding |
GET | /v1/ops/offboarding/{id} | getOffboarding |
POST | /v1/ops/offboarding/{id}/approve | Approve (two-person rule; the requester cannot approve) |
POST | /v1/ops/offboarding/{id}/execute | Suspend the tenant and run every deletion step; Completed only when every store is verified empty |
POST | /v1/ops/offboarding/{id}/reject | rejectOffboarding |
GET | /v1/ops/releases | Agent releases and rings (enrollment-service) |
POST | /v1/ops/releases/{id}/halt | haltRelease |
POST | /v1/ops/releases/{id}/promote | Advance the release one stage (internal, pilot, ten_percent, all); passthrough to enrollment-service |
GET | /v1/ops/status/components | listComponents |
POST | /v1/ops/status/components | createComponent |
PUT | /v1/ops/status/components/{id} | updateComponent |
DELETE | /v1/ops/status/components/{id} | deleteComponent |
GET | /v1/ops/status/incidents | listIncidents |
POST | /v1/ops/status/incidents | openIncident |
POST | /v1/ops/status/incidents/{id}/updates | updateIncident |
POST | /v1/ops/support/access-requests | Request JIT access to a customer tenant (forwarded to identity-service) |
POST | /v1/ops/support/access-requests/{id}/approve | approveJit |
POST | /v1/ops/tenants | Create a tenant through tenant-service |
POST | /v1/ops/tenants/{id}/offboarding | Request offboarding with verified data deletion |
POST | /v1/ops/tenants/{id}/suspend | opsSuspendTenant |
GET /status.json
Public status page data (anonymous, read-only, no internal identifiers or authors)
| Status | Description | Body |
|---|
| 200 | OK | PublicStatus |
GET /v1/ops/kpis
Revenue, retention, conversion and channel KPIs (docs/operations/kpis.md, definitions v1)
Computed on demand from subscription-service revenue facts (from 12 months before the window), partner-service channel attribution, tenant-service regions and the CRM funnel (CSV imports, then Zaatly). Amounts are per currency and never converted. A source that is not connected leaves its KPIs out; ratios with a zero denominator are null.
| Parameter | In | Type | Required | Description |
|---|
from | query | string | no | First month (yyyy-MM); defaults to 11 months before 'to'. |
to | query | string | no | Last month (yyyy-MM), which must have ended; defaults to last month. |
| Status | Description | Body |
|---|
| 200 | OK | KpiReport |
| 400 | Malformed window, an open month, or more than 24 months | |
GET /v1/ops/kpis/crm-funnel/imports
Accepted CRM funnel imports, newest first
| Status | Description | Body |
|---|
| 200 | OK | CrmFunnelImport[] |
POST /v1/ops/kpis/crm-funnel/imports
Import a CRM funnel export (format dexwize-crm-funnel/v1)
The CSV is the raw request body (text/csv, at most 256 KB, 5000 rows). Header exactly month, channel, source, leads, assessments, trials, won, won_after_trial in any order; any other column (for example a contact field) is refused, so only aggregate counts are stored. The whole file is accepted or refused; errors name the line. Replaces the stored rows of every month in the file. Audited.
| Status | Description | Body |
|---|
| 201 | Imported | CrmFunnelImport |
| 400 | Refused; errors.file lists the problems by line | |
GET /v1/ops/kpis/crm-funnel/template.csv
An example CRM funnel import file
| Status | Description | Body |
|---|
| 200 | OK | |
GET /v1/ops/kpis/export.csv
The KPI report as CSV in long form (one value per row; formula-like text cells neutralised; audited)
| Parameter | In | Type | Required | Description |
|---|
from | query | string | no | First month (yyyy-MM); defaults to 11 months before 'to'. |
to | query | string | no | Last month (yyyy-MM), which must have ended; defaults to last month. |
| Status | Description | Body |
|---|
| 200 | definitions_version, month, currency, metric, dimension, key, value | |
| 400 | Malformed window | |
GET /v1/ops/offboarding
| Status | Description | Body |
|---|
| 200 | OK | Offboarding[] |
GET /v1/ops/offboarding/{id}
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | OK | Offboarding |
| 404 | Not found | |
POST /v1/ops/offboarding/{id}/approve
Approve (two-person rule; the requester cannot approve)
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Approved | Offboarding |
| 400 | Wrong state | |
| 409 | self_approval_refused | |
POST /v1/ops/offboarding/{id}/execute
Suspend the tenant and run every deletion step; Completed only when every store is verified empty
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Completed (with evidence) or Failed (retryable) | Offboarding |
| 400 | Not approved | |
POST /v1/ops/offboarding/{id}/reject
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Rejected | Offboarding |
GET /v1/ops/releases
Agent releases and rings (enrollment-service)
| Status | Description | Body |
|---|
| 200 | OK | object[] |
POST /v1/ops/releases/{id}/halt
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Halted | object |
POST /v1/ops/releases/{id}/promote
Advance the release one stage (internal, pilot, ten_percent, all); passthrough to enrollment-service
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Promoted | object |
| 404 | Not found | |
| 409 | Halted or already at all | |
GET /v1/ops/status/components
| Status | Description | Body |
|---|
| 200 | OK | StatusComponent[] |
POST /v1/ops/status/components
| Status | Description | Body |
|---|
| 200 | Saved | StatusComponent |
PUT /v1/ops/status/components/{id}
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Saved | StatusComponent |
| 404 | Not found | |
DELETE /v1/ops/status/components/{id}
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 204 | Removed | |
GET /v1/ops/status/incidents
| Status | Description | Body |
|---|
| 200 | OK | Incident[] |
POST /v1/ops/status/incidents
| Status | Description | Body |
|---|
| 201 | Opened | Incident |
POST /v1/ops/status/incidents/{id}/updates
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Updated | Incident |
| 400 | Incident already resolved | |
POST /v1/ops/support/access-requests
Request JIT access to a customer tenant (forwarded to identity-service)
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Grant as returned by identity-service | object |
POST /v1/ops/support/access-requests/{id}/approve
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Approved | object |
| 404 | Not found | |
POST /v1/ops/tenants
Create a tenant through tenant-service
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Created tenant as returned by tenant-service | object |
| 403 | Not a platform session | |
POST /v1/ops/tenants/{id}/offboarding
Request offboarding with verified data deletion
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 201 | Requested | Offboarding |
POST /v1/ops/tenants/{id}/suspend
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 204 | Suspended | |
| 404 | Not found | |