Unarchive a chat
Reopens an archived chat so it appears in the active list again. Nothing is sent to the participants.
Authorization
AuthorizationstringrequiredPath parameters
chatIdstringrequiredThe chat to reopen.
Response
200 · The chat, now open.
idstringThe chat.
typeenum<string>What the chat hangs off. A lease, maintenanceRequest, workOrder, or workOrderGroup chat is one conversation shared by several people; unknown is a chat keyed on a bare phone number.
typeKeystringThe id of the thing the chat hangs off — a lease id for a lease chat, a phone number for an unknown chat.
subjectstringThe chat's title.
participantsChatParticipant[]Everyone in the conversation. A lease or group chat lists every tenant here, not one chat each.
participantLanguagestringISO 639-1 code messages are translated into for the participants.
closedbooleanWhether the chat is archived. Sending a message to an archived chat reopens it.
pinnedbooleanWhether the chat is pinned in the portal.
groupNumberstringThe MagicDoor phone number this chat's SMS traffic uses. Present on lease, maintenance request and work order chats.
messageCountintegerHow many messages the chat holds.
unreadMessagesintegerHow many messages your company has not read yet.
latestMessageIdstringThe most recent message.
lastMessageSentAtstring · date-timeWhen the most recent message was sent.
latestMessageobjectThe most recent message in full.
assignedPropertyManagerobjectThe property manager who owns this chat. Absent when unassigned.
assignedByPropertyManagerobjectThe property manager who made the assignment. Absent when MagicDoor assigned it rather than a person.
assignedAtstring · date-timeWhen the assignment was made.
humanEngagementRequestedstring · date-timeWhen the AI flagged this chat as needing a person to reply. Absent when it is not flagged.
leaseobjectThe lease behind the chat, when there is one.
propertyTypeenum<string>The kind of building, when the chat has a lease.
propertyIdstringThe property behind the chat.
unitIdstringThe unit behind the chat.
propertyImageIdstringThe property photo. Only set on maintenance request chats.
unitImageIdstringThe unit photo. Only set on maintenance request chats.
createdstring · date-timeWhen the chat was created.