Skip to main content

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.

FieldTypeNotes
modestringrequired · one of contactNumber.whatsapp, contactNumber.sms, contactNumber.telegram, instagram, email.gmail, email.yahoo, email.zoho, email.smtp and 8 more
leadObjectId -> Lead
companyIDObjectId -> Company
contactObjectId -> Contact
campaignObjectId -> Campaign
sendJobObjectId -> SendJob
migratedFromObjectId
contactSpecificMessagebooleandefault false
errorstring
createdByObjectId -> Member
updatedByObjectId -> Member
isDeletedbooleandefault false
isRestoredbooleandefault false
restoredAtdate
scheduledAtdate
scheduledStatusstringone of pending, sent, failed
unread.unreadbooleandefault false
unread.readByObjectId -> Member
unread.readAtdate
_idObjectIddefault "6a95712f932657988a91c0e1"
createdAtdateset once
updatedAtdate