UnifiedMessage
Stored in the unifiedmessages collection. createdAt and updatedAt are maintained automatically.
Returned by POST /apps/instagram/:id/accounts/:accountId/send, GET /campaign/:id/logs, GET /unified-chat, POST /unified-chat/messages.
| Field | Type | Notes |
|---|---|---|
mode | string | required · one of contactNumber.whatsapp, contactNumber.sms, contactNumber.telegram, instagram, email.gmail, email.yahoo, email.zoho, email.smtp and 8 more |
lead | ObjectId -> Lead | |
companyID | ObjectId -> Company | |
contact | ObjectId -> Contact | |
campaign | ObjectId -> Campaign | |
sendJob | ObjectId -> SendJob | |
migratedFrom | ObjectId | |
contactSpecificMessage | boolean | default false |
error | string | |
createdBy | ObjectId -> Member | |
updatedBy | ObjectId -> Member | |
isDeleted | boolean | default false |
isRestored | boolean | default false |
restoredAt | date | |
scheduledAt | date | |
scheduledStatus | string | one of pending, sent, failed |
unread.unread | boolean | default false |
unread.readBy | ObjectId -> Member | |
unread.readAt | date | |
_id | ObjectId | default "6a95712f932657988a91c0e1" |
createdAt | date | set once |
updatedAt | date |