Skip to main content
POST
/
:projectId
/
api
/
v7
/
conversations
/
:conversationId
/
read
Mark as Read
curl --request POST \
  --url https://api.replyke.com/api/v6/:projectId/api/v7/conversations/:conversationId/read \
  --header 'Content-Type: application/json' \
  --data '
{
  "messageId": "<string>"
}
'
Updates the current user’s lastReadAt timestamp on their conversation membership to the createdAt of the specified message. This reduces the unread count for the conversation. The operation is monotonic — lastReadAt is never moved backward. If the provided message is older than the current lastReadAt, the call is a no-op.

Path Parameters

conversationId
string
required
The ID of the conversation.

Body Parameters

messageId
string
required
The ID of the message to mark as read. The user’s lastReadAt will be set to this message’s createdAt.

Response

{ "message": "Marked as read." }

Error Responses

{ "error": "You are not an active member of this conversation.", "code": "chat/not-a-member" }