Skip to main content
Mark as Read
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. In a space chat, the caller must also be an active member of the chat’s space and able to see it (visibility). Anyone else, including a pending, rejected or banned member and someone who left or was removed from the space, gets 403 chat/not-a-member, as a non-member does, even while they still hold a conversation membership. Deleting their own messages, leaving the conversation and muting it stay allowed: they need the conversation membership and sight of the space, not an active space membership.

Path Parameters

string
required
The ID of the conversation.

Body Parameters

string
required
The ID of the message to mark as read. The user’s lastReadAt will be set to this message’s createdAt.
string
Service key only, and required with one: the user this request acts as. Their read cursor is advanced. A user token always acts as its own user and must not send it (400 chat/acting-user-not-allowed).

Response

204 No Content on success, with no body.

Error Responses

A user token sent actingUserId, even naming its own user. Only a service key names the user it acts as; a user token always acts as its own user.
Returned when a service key names an actingUserId that isn’t a user in this project.
The request sent userId. On this route the user a service key acts as is actingUserId.With a service key:
With a user token, or with no credentials:
A service key sent no actingUserId.