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
| Method | Path | Summary |
|---|
GET | /v1/campaigns | listCampaigns |
POST | /v1/campaigns | createCampaign |
GET | /v1/campaigns/{id} | getCampaign |
POST | /v1/campaigns/{id}/close | closeCampaign |
POST | /v1/campaigns/{id}/publish | publishCampaign |
GET | /v1/campaigns/{id}/results | getCampaignResults |
GET | /v1/device/campaigns | deviceCampaigns |
POST | /v1/device/campaigns/{id}/responses | respondAsDevice |
GET | /v1/device/guides | deviceGuides |
GET | /v1/device/prompts | devicePrompts |
POST | /v1/device/prompts/{ruleId}/decision | decidePrompt |
GET | /v1/me/campaigns | myCampaigns |
POST | /v1/me/campaigns/{id}/responses | respondAsEmployee |
GET | /v1/self-help/consents | listConsents |
GET | /v1/self-help/rules | listSelfHelpRules |
POST | /v1/self-help/rules | createSelfHelpRule |
PUT | /v1/self-help/rules/{id}/enabled | setSelfHelpRuleEnabled |
GET | /v1/sentiment | Group sentiment 0-100 for scoring-service (groups of at least 5 respondents) |
GET /v1/campaigns
| Status | Description | Body |
|---|
| 200 | OK | Campaign[] |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | 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 |
POST /v1/campaigns
Request body: CreateCampaign (JSON).
| Status | Description | Body |
|---|
| 201 | Draft created | Campaign |
| 400 | Invalid campaign | |
| 403 | Missing permission, or the tenant is not entitled to campaigns (and digital_adoption for guides) (error feature_not_entitled) | 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 |
GET /v1/campaigns/{id}
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | OK | Campaign |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | EntitlementRefusal |
| 404 | Not found | |
| 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/campaigns/{id}/close
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Closed | Campaign |
| 400 | Not published | |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | EntitlementRefusal |
| 404 | Not found | |
| 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/campaigns/{id}/publish
Requires English and Arabic everywhere; free-text questions are refused in strict privacy mode.
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 200 | Published | Campaign |
| 400 | Publishing rule failed | |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | EntitlementRefusal |
| 404 | Not found | |
| 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 |
GET /v1/campaigns/{id}/results
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
byGroup | query | boolean | no | |
| Status | Description | Body |
|---|
| 200 | k-anonymous results | Results |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | EntitlementRefusal |
| 404 | Not found | |
| 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 |
GET /v1/device/campaigns
| Parameter | In | Type | Required | Description |
|---|
locale | query | string | no | |
| Status | Description | Body |
|---|
| 200 | Open campaigns targeting this device | CampaignView[] |
| 401 | Invalid device credential | |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | 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 |
POST /v1/device/campaigns/{id}/responses
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 202 | Accepted | |
| 400 | Invalid answers | |
| 401 | Invalid device credential | |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | EntitlementRefusal |
| 404 | Not open or not targeted | |
| 409 | Already responded | |
| 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 |
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.
| Status | Description | Body |
|---|
| 200 | Open guides targeting this device | GuideView[] |
| 401 | Invalid device credential | |
| 403 | Missing permission, or the tenant is not entitled to digital_adoption (error feature_not_entitled) | 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 |
GET /v1/device/prompts
| Parameter | In | Type | Required | Description |
|---|
locale | query | string | no | |
| Status | Description | Body |
|---|
| 200 | Self-help prompts due for this device | object[] |
| 401 | Invalid device credential | |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | 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 |
POST /v1/device/prompts/{ruleId}/decision
| Parameter | In | Type | Required | Description |
|---|
ruleId | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Consent recorded; on acceptance the remediation request status is included | Consent |
| 401 | Invalid device credential | |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | EntitlementRefusal |
| 404 | Prompt not currently offered to this device | |
| 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 |
GET /v1/me/campaigns
| Parameter | In | Type | Required | Description |
|---|
locale | query | string | no | |
| Status | Description | Body |
|---|
| 200 | Open campaigns for the signed-in employee, in their language | CampaignView[] |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | 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 |
POST /v1/me/campaigns/{id}/responses
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
| Status | Description | Body |
|---|
| 202 | Accepted | |
| 400 | Invalid answers | |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | EntitlementRefusal |
| 404 | Not open or not targeted | |
| 409 | Already responded | |
| 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 |
GET /v1/self-help/consents
| Parameter | In | Type | Required | Description |
|---|
deviceId | query | string | yes | |
| Status | Description | Body |
|---|
| 200 | Consent records for a device (auditors) | Consent[] |
GET /v1/self-help/rules
| Status | Description | Body |
|---|
| 200 | OK | SelfHelpRule[] |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | 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 |
POST /v1/self-help/rules
Request body: object (JSON).
| Status | Description | Body |
|---|
| 201 | Created | SelfHelpRule |
| 400 | Invalid rule | |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | 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 |
PUT /v1/self-help/rules/{id}/enabled
| Parameter | In | Type | Required | Description |
|---|
id | path | string | yes | |
Request body: object (JSON).
| Status | Description | Body |
|---|
| 200 | Updated | SelfHelpRule |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | EntitlementRefusal |
| 404 | Not found | |
| 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 |
GET /v1/sentiment
Group sentiment 0-100 for scoring-service (groups of at least 5 respondents)
| Parameter | In | Type | Required | Description |
|---|
from | query | string | no | |
to | query | string | no | |
| Status | Description | Body |
|---|
| 200 | OK | object |
| 400 | Period over 180 days | |
| 403 | Missing permission, or the tenant is not entitled to campaigns (error feature_not_entitled) | 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 |