Dexwize Notification Service
Email, Microsoft Teams and signed webhook notifications in English and Arabic (ADR-0024). Services with the notification_sender role raise notifications; tenant admins configure channels. Targets and secrets are stored encrypted and never returned.
Version 1.0.0. Download the OpenAPI specification.
Authentication: bearer.
Operations
| Method | Path | Summary |
|---|---|---|
GET | /v1/notification-settings | The caller's tenant notification settings (targets redacted) |
PUT | /v1/notification-settings | Set email recipients per event and the preferred language |
GET | /v1/notification-settings/smtp | The caller's organisation's own email server (vendor, partner or customer); the password is never returned |
PUT | /v1/notification-settings/smtp | Save the organisation's email server and sender |
DELETE | /v1/notification-settings/smtp | Remove the organisation's email server (email falls back to the vendor default or the platform sender) |
POST | /v1/notification-settings/smtp/test | Send one test email through the saved settings now and record the outcome (5 per 10 minutes) |
PUT | /v1/notification-settings/teams | Configure the Teams channel (incoming webhook or Power Automate workflow URL; write-only) |
DELETE | /v1/notification-settings/teams | Remove the Teams channel |
POST | /v1/notification-settings/test | Send a test notification to the configured channels |
POST | /v1/notification-settings/webhooks | Add a signed webhook endpoint; the signing secret is returned once |
DELETE | /v1/notification-settings/webhooks/{id} | Remove a webhook endpoint |
POST | /v1/notifications | Raise a notification for a tenant (services only) |
GET /v1/notification-settings
The caller's tenant notification settings (targets redacted)
| Status | Description | Body |
|---|---|---|
| 200 | OK | SettingsView |
PUT /v1/notification-settings
Set email recipients per event and the preferred language
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Saved | SettingsView |
| 400 | Unknown event or invalid recipient |
GET /v1/notification-settings/smtp
The caller's organisation's own email server (vendor, partner or customer); the password is never returned
Needs EmailSettingsManage (tenant admins, and partner admins for their partner's home tenant). effectiveSender says which server sends this tenant's email now: its own, the vendor default, or the platform.
| Status | Description | Body |
|---|---|---|
| 200 | OK | SmtpView |
| 403 | Missing EmailSettingsManage |
PUT /v1/notification-settings/smtp
Save the organisation's email server and sender
TLS is always required (STARTTLS on 587 and 2525, implicit TLS on 465). The host must resolve only to public addresses unless the installation allows private relays. Temporary support (JIT) sessions are refused.
Request body: SmtpRequest (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Saved | SmtpView |
| 400 | Invalid settings (validation problem under "smtp") | |
| 403 | Missing EmailSettingsManage, or a JIT session |
DELETE /v1/notification-settings/smtp
Remove the organisation's email server (email falls back to the vendor default or the platform sender)
| Status | Description | Body |
|---|---|---|
| 204 | Removed | |
| 403 | Missing EmailSettingsManage, or a JIT session | |
| 404 | Not configured |
POST /v1/notification-settings/smtp/test
Send one test email through the saved settings now and record the outcome (5 per 10 minutes)
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Tried; succeeded is false with the server's answer in error when sending failed | object |
| 400 | Invalid address, or no settings saved | |
| 403 | Missing EmailSettingsManage, or a JIT session | |
| 429 | Too many tests; see Retry-After |
PUT /v1/notification-settings/teams
Configure the Teams channel (incoming webhook or Power Automate workflow URL; write-only)
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 200 | Saved | SettingsView |
| 400 | Not a Teams or workflow URL |
DELETE /v1/notification-settings/teams
Remove the Teams channel
| Status | Description | Body |
|---|---|---|
| 204 | Removed |
POST /v1/notification-settings/test
Send a test notification to the configured channels
| Status | Description | Body |
|---|---|---|
| 202 | Accepted | AcceptResult |
POST /v1/notification-settings/webhooks
Add a signed webhook endpoint; the signing secret is returned once
Request body: object (JSON).
| Status | Description | Body |
|---|---|---|
| 201 | Created | object |
| 400 | Invalid URL, unknown event or too many webhooks |
DELETE /v1/notification-settings/webhooks/{id}
Remove a webhook endpoint
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | yes |
| Status | Description | Body |
|---|---|---|
| 204 | Removed | |
| 404 | Not found |
POST /v1/notifications
Raise a notification for a tenant (services only)
Request body: SendRequest (JSON).
| Status | Description | Body |
|---|---|---|
| 202 | Accepted (or already accepted for this idempotency key) | AcceptResult |
| 400 | Invalid event, locale, data or idempotency key | |
| 403 | Caller lacks the notification_sender role | |
| 429 | Tenant notification limit reached; see Retry-After |