Skip to main content

Dexwize Campaign Service

Surveys, notices and self-help prompts (E13). Management and results use user bearer tokens (tenant-scoped); /v1/device/* uses the enrollment device credential ("Authorization: Device "). Results and sentiment never describe fewer than 5 respondents; respondents are stored only as keyed pseudonyms.

Version 1.0.0. Download the OpenAPI specification.

Authentication: bearer, device.

Operations​

MethodPathSummary
GET/v1/campaignslistCampaigns
POST/v1/campaignscreateCampaign
GET/v1/campaigns/{id}getCampaign
POST/v1/campaigns/{id}/closecloseCampaign
POST/v1/campaigns/{id}/publishpublishCampaign
GET/v1/campaigns/{id}/resultsgetCampaignResults
GET/v1/device/campaignsdeviceCampaigns
POST/v1/device/campaigns/{id}/responsesrespondAsDevice
GET/v1/device/guidesdeviceGuides
GET/v1/device/promptsdevicePrompts
POST/v1/device/prompts/{ruleId}/decisiondecidePrompt
GET/v1/me/campaignsmyCampaigns
POST/v1/me/campaigns/{id}/responsesrespondAsEmployee
GET/v1/self-help/consentslistConsents
GET/v1/self-help/ruleslistSelfHelpRules
POST/v1/self-help/rulescreateSelfHelpRule
PUT/v1/self-help/rules/{id}/enabledsetSelfHelpRuleEnabled
GET/v1/sentimentGroup sentiment 0-100 for scoring-service (groups of at least 5 respondents)

GET /v1/campaigns​

StatusDescriptionBody
200OKCampaign[]
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)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

POST /v1/campaigns​

Request body: CreateCampaign (JSON).

StatusDescriptionBody
201Draft createdCampaign
400Invalid campaign
403Missing permission, or the tenant is not entitled to campaigns (and digital_adoption for guides) (error feature_not_entitled)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

GET /v1/campaigns/{id}​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200OKCampaign
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)EntitlementRefusal
404Not found
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/campaigns/{id}/close​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200ClosedCampaign
400Not published
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)EntitlementRefusal
404Not found
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/campaigns/{id}/publish​

Requires English and Arabic everywhere; free-text questions are refused in strict privacy mode.

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
200PublishedCampaign
400Publishing rule failed
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)EntitlementRefusal
404Not found
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

GET /v1/campaigns/{id}/results​

ParameterInTypeRequiredDescription
idpathstringyes
byGroupquerybooleanno
StatusDescriptionBody
200k-anonymous resultsResults
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)EntitlementRefusal
404Not found
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

GET /v1/device/campaigns​

ParameterInTypeRequiredDescription
localequerystringno
StatusDescriptionBody
200Open campaigns targeting this deviceCampaignView[]
401Invalid device credential
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)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

POST /v1/device/campaigns/{id}/responses​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
202Accepted
400Invalid answers
401Invalid device credential
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)EntitlementRefusal
404Not open or not targeted
409Already responded
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

GET /v1/device/guides​

Open digital adoption guides targeting this device (E30, ADR-0036), in English and Arabic. The agent caches them for the browser extension, which shows a guide only inside the allow-listed app it names.

StatusDescriptionBody
200Open guides targeting this deviceGuideView[]
401Invalid device credential
403Missing permission, or the tenant is not entitled to digital_adoption (error feature_not_entitled)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

GET /v1/device/prompts​

ParameterInTypeRequiredDescription
localequerystringno
StatusDescriptionBody
200Self-help prompts due for this deviceobject[]
401Invalid device credential
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)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

POST /v1/device/prompts/{ruleId}/decision​

ParameterInTypeRequiredDescription
ruleIdpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200Consent recorded; on acceptance the remediation request status is includedConsent
401Invalid device credential
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)EntitlementRefusal
404Prompt not currently offered to this device
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

GET /v1/me/campaigns​

ParameterInTypeRequiredDescription
localequerystringno
StatusDescriptionBody
200Open campaigns for the signed-in employee, in their languageCampaignView[]
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)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

POST /v1/me/campaigns/{id}/responses​

ParameterInTypeRequiredDescription
idpathstringyes
StatusDescriptionBody
202Accepted
400Invalid answers
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)EntitlementRefusal
404Not open or not targeted
409Already responded
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

GET /v1/self-help/consents​

ParameterInTypeRequiredDescription
deviceIdquerystringyes
StatusDescriptionBody
200Consent records for a device (auditors)Consent[]

GET /v1/self-help/rules​

StatusDescriptionBody
200OKSelfHelpRule[]
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)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

POST /v1/self-help/rules​

Request body: object (JSON).

StatusDescriptionBody
201CreatedSelfHelpRule
400Invalid rule
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)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

PUT /v1/self-help/rules/{id}/enabled​

ParameterInTypeRequiredDescription
idpathstringyes

Request body: object (JSON).

StatusDescriptionBody
200UpdatedSelfHelpRule
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)EntitlementRefusal
404Not found
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

GET /v1/sentiment​

Group sentiment 0-100 for scoring-service (groups of at least 5 respondents)

ParameterInTypeRequiredDescription
fromquerystringno
toquerystringno
StatusDescriptionBody
200OKobject
400Period over 180 days
403Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled)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