Domain Model
Support Message
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | Yes | — | Id |
| workspaceId | string | Yes | — | ID of the associated workspace |
| ticketId | unknown | Yes | — | ID of the associated ticket |
| internalThreadId | unknown | Yes | — | ID of the associated internal thread |
| direction | enum(inbound, outbound, system) | Yes | — | Direction |
| channel | enum(portal, email, sms, chat, phone, api, internal) | Yes | — | Channel |
| visibility | enum(public, internal, draft) | Yes | — | Visibility |
| authorType | enum(contact, user, ai, system) | Yes | — | Author type |
| authorContactId | unknown | Yes | — | ID of the associated author contact |
| authorUserId | unknown | Yes | — | ID of the associated author user |
| bodyMarkdown | string | Yes | — | Body markdown |
| bodyHtml | unknown | Yes | — | Body html |
| deliveryStatus | unknown | Yes | — | Delivery status |
| deliveryError | unknown | Yes | — | Delivery error |
| externalMessageId | unknown | Yes | — | ID of the associated external message |
| inReplyToMessageId | unknown | Yes | — | ID of the associated in reply to message |
| aiRunMetadata | unknown | Yes | — | Ai run metadata |
| editedAt | unknown | Yes | — | Edited at |
| createdAt | string.date-time | Yes | — | Created at |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| ticketId | unknown | No | — | ID of the associated ticket |
| internalThreadId | unknown | No | — | ID of the associated internal thread |
| visibility | enum(public, internal, draft) | No | — | Visibility |
| bodyMarkdown | string | Yes | — | Body markdown |
| inReplyToMessageId | unknown | No | — | ID of the associated in reply to message |