Mark a chat read
Marks one unread inbound message as read, optionally showing the typing
indicator. That message is the latest unread inbound one that can be
marked read. An unread message of a type this API does not support (its
only part is unsupported) cannot be marked read and is never the
target; it is skipped in favour of a supported unread message, and the
chat.read event names the message actually targeted. The upstream command targets that one message;
this API does not promise that the channel also marks earlier inbound
messages, and an unsupported one is known not to be marked. Omit the
body, or send {}, for read-only; the two forms are identical.
typing: false is identical too.
If the chat is not available to this account, the request is refused
with 404 chat_not_found. If it has no unread inbound message, it is
refused with 409 nothing_unread; if it has unread inbound messages but
every one is unsupported, it is refused with 409 nothing_readable. This
route does not act as a standalone typing refresh.
202 means the command and its chat.read journal event are durable;
the upstream action is asynchronous. Read receipts and typing are
outbound-only: this API never reports customer typing.
Within one chat, order follows acceptance, and acceptance is this API’s
202: calls made concurrently can be accepted in either order, so wait
for a send’s 202 before calling this route if the read should follow
it. This command is handed to the channel after the sends accepted
before it. The wait ends when no earlier send is still on its way to the
channel or awaiting an outcome, and lasts about 5 seconds from this
command’s acceptance: past that, for example behind a send whose outcome
is still unknown, the command goes anyway. A send paused by a safety
stop does not hold it beyond that wait. If the order cannot be checked,
the command goes without waiting.
This command does not wait for sends accepted after it, and one of those can reach the channel first. The read still goes; the typing indicator is omitted when a later send exists at hand-over, when the order could not be checked, or when the command is 25 seconds old or older. This is the order of handing to the channel, not a promise of the order the customer’s device shows.
Mark a chat read
curl https://whatsapp.messages.api.linqapp.com/v1/chats/$CHAT/read \
-X POST \
-H "Authorization: Bearer $LINQ_WHATSAPP_API_KEY"