Domain Model
Automation Notification
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| ruleId | string | Yes | — | ID of the associated rule |
| actionTraceId | unknown | Yes | — | ID of the associated action trace |
| recipientUserId | string | Yes | — | ID of the associated recipient user |
| channel | enum(in_app, email, messaging) | Yes | — | Channel |
| subject | string | Yes | — | Subject |
| body | string | Yes | — | Body |
| status | enum(pending, sent, failed, dismissed) | Yes | — | Status |
| sentAt | unknown | Yes | — | Sent at |
| dismissedAt | unknown | Yes | — | Dismissed at |
| workspaceId | string | Yes | — | ID of the associated workspace |
| createdAt | string.date-time | Yes | — | Created at |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| ruleId | string | Yes | — | ID of the associated rule |
| actionTraceId | string.uuid | No | — | ID of the associated action trace |
| recipientUserId | string | Yes | — | ID of the associated recipient user |
| channel | enum(in_app, email, messaging) | Yes | "in_app" | Channel |
| subject | string | Yes | — | Subject |
| body | string | Yes | — | Body |
| workspaceId | string | Yes | — | ID of the associated workspace |