Chats

Mark a whole chat as read

Marks every message in one chat as read by your company. It changes your unread counts only — nothing is sent.

POST
https://api.portal.magicdoor.com/company-app/chats/{chatId}/messages/read/all

Authorization

Authorizationstringrequired
Bearer token — Send your API token in the Authorization header as Bearer <token>. Requests without a valid token are rejected with 401 Unauthorized.

Path parameters

chatIdstringrequired

The chat to clear.

example: 1830472847398404096

Response

200 · The chat was marked read. The response has no body.

401 · The access token is missing, expired, or not valid.

404 · No chat with that id belongs to your company.