Skip to main content

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​

MethodPathSummary
GET/status.jsonPublic status page data (anonymous, read-only, no internal identifiers or authors)
GET/v1/ops/kpisRevenue, retention, conversion and channel KPIs (docs/operations/kpis.md, definitions v1)
GET/v1/ops/kpis/crm-funnel/importsAccepted CRM funnel imports, newest first
POST/v1/ops/kpis/crm-funnel/importsImport a CRM funnel export (format dexwize-crm-funnel/v1)
GET/v1/ops/kpis/crm-funnel/template.csvAn example CRM funnel import file
GET/v1/ops/kpis/export.csvThe KPI report as CSV in long form (one value per row; formula-like text cells neutralised; audited)
GET/v1/ops/offboardinglistOffboarding
GET/v1/ops/offboarding/{id}getOffboarding
POST/v1/ops/offboarding/{id}/approveApprove (two-person rule; the requester cannot approve)
POST/v1/ops/offboarding/{id}/executeSuspend the tenant and run every deletion step; Completed only when every store is verified empty
POST/v1/ops/offboarding/{id}/rejectrejectOffboarding
GET/v1/ops/releasesAgent releases and rings (enrollment-service)
POST/v1/ops/releases/{id}/halthaltRelease
POST/v1/ops/releases/{id}/promoteAdvance the release one stage (internal, pilot, ten_percent, all); passthrough to enrollment-service
GET/v1/ops/status/componentslistComponents
POST/v1/ops/status/componentscreateComponent
PUT/v1/ops/status/components/{id}updateComponent
DELETE/v1/ops/status/components/{id}deleteComponent
GET/v1/ops/status/incidentslistIncidents
POST/v1/ops/status/incidentsopenIncident
POST/v1/ops/status/incidents/{id}/updatesupdateIncident
POST/v1/ops/support/access-requestsRequest JIT access to a customer tenant (forwarded to identity-service)
POST/v1/ops/support/access-requests/{id}/approveapproveJit
POST/v1/ops/tenantsCreate a tenant through tenant-service
POST/v1/ops/tenants/{id}/offboardingRequest offboarding with verified data deletion
POST/v1/ops/tenants/{id}/suspendopsSuspendTenant

GET /status.json​

Public status page data (anonymous, read-only, no internal identifiers or authors)

StatusDescriptionBody
200OKPublicStatus

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.

ParameterInTypeRequiredDescription
fromquerystringnoFirst month (yyyy-MM); defaults to 11 months before 'to'.
toquerystringnoLast month (yyyy-MM), which must have ended; defaults to last month.
StatusDescriptionBody
200OKKpiReport
400Malformed window, an open month, or more than 24 months

GET /v1/ops/kpis/crm-funnel/imports​

Accepted CRM funnel imports, newest first

StatusDescriptionBody
200OKCrmFunnelImport[]

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.

StatusDescriptionBody
201ImportedCrmFunnelImport
400Refused; errors.file lists the problems by line

GET /v1/ops/kpis/crm-funnel/template.csv​

An example CRM funnel import file

StatusDescriptionBody
200OK

GET /v1/ops/kpis/export.csv​

The KPI report as CSV in long form (one value per row; formula-like text cells neutralised; audited)

ParameterInTypeRequiredDescription
fromquerystringnoFirst month (yyyy-MM); defaults to 11 months before 'to'.
toquerystringnoLast month (yyyy-MM), which must have ended; defaults to last month.
StatusDescriptionBody
200definitions_version, month, currency, metric, dimension, key, value
400Malformed window

GET /v1/ops/offboarding​

StatusDescriptionBody
200OKOffboarding[]

GET /v1/ops/offboarding/{id}​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200OKOffboarding
404Not found

POST /v1/ops/offboarding/{id}/approve​

Approve (two-person rule; the requester cannot approve)

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200ApprovedOffboarding
400Wrong state
409self_approval_refused

POST /v1/ops/offboarding/{id}/execute​

Suspend the tenant and run every deletion step; Completed only when every store is verified empty

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200Completed (with evidence) or Failed (retryable)Offboarding
400Not approved

POST /v1/ops/offboarding/{id}/reject​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200RejectedOffboarding

GET /v1/ops/releases​

Agent releases and rings (enrollment-service)

StatusDescriptionBody
200OKobject[]

POST /v1/ops/releases/{id}/halt​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200Haltedobject

POST /v1/ops/releases/{id}/promote​

Advance the release one stage (internal, pilot, ten_percent, all); passthrough to enrollment-service

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200Promotedobject
404Not found
409Halted or already at all

GET /v1/ops/status/components​

StatusDescriptionBody
200OKStatusComponent[]

POST /v1/ops/status/components​

StatusDescriptionBody
200SavedStatusComponent

PUT /v1/ops/status/components/{id}​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200SavedStatusComponent
404Not found

DELETE /v1/ops/status/components/{id}​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
204Removed

GET /v1/ops/status/incidents​

StatusDescriptionBody
200OKIncident[]

POST /v1/ops/status/incidents​

StatusDescriptionBody
201OpenedIncident

POST /v1/ops/status/incidents/{id}/updates​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200UpdatedIncident
400Incident already resolved

POST /v1/ops/support/access-requests​

Request JIT access to a customer tenant (forwarded to identity-service)

Request body: object (JSON).

StatusDescriptionBody
200Grant as returned by identity-serviceobject

POST /v1/ops/support/access-requests/{id}/approve​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200Approvedobject
404Not found

POST /v1/ops/tenants​

Create a tenant through tenant-service

Request body: object (JSON).

StatusDescriptionBody
200Created tenant as returned by tenant-serviceobject
403Not a platform session

POST /v1/ops/tenants/{id}/offboarding​

Request offboarding with verified data deletion

ParameterInTypeRequiredDescription
idpathstringyes

Request body: object (JSON).

StatusDescriptionBody
201RequestedOffboarding

POST /v1/ops/tenants/{id}/suspend​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
204Suspended
404Not found