Get a chat
Returns one chat with its participants, its most recent message, and the lease it hangs off if it has one.
Authorization
AuthorizationstringrequiredPath parameters
chatIdstringrequiredThe chat to fetch.
Response
200 · The chat.
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.
401 · The access token is missing, expired, or not valid.
404 · No chat with that id belongs to your company.
A chat is one conversation, however many people are in it. A lease chat lists every tenant on the lease under participants — there is no separate chat per tenant, and a message posted to it goes to all of them.