Skip to main content

Mark Conversation as Read

POST 

/accounts/:account_id/conversations/:conversation_id/update_last_seen

Mark a conversation as read.

Sets the conversation's agent_last_seen_at to now — and assignee_last_seen_at too, when the caller is the assignee — so its incoming messages count as read. The three read / unread endpoints:

ActionMethodPathEffect
Mark as readPOST/api/v1/accounts/{account_id}/conversations/{conversation_id}/update_last_seenSets the agent's last-seen time to now (also the assignee's, when the caller is the assignee).
Mark as unread (by last incoming message)POST/api/v1/accounts/{account_id}/conversations/{conversation_id}/unreadMoves last-seen to just before the last incoming message, so it counts as unread again.
Mark as unread (flag)POST/api/v1/accounts/{account_id}/conversations/{conversation_id}/set_unreadMarks the conversation unread and fires conversation.unread.

Authorization: user token. Response (200 OK): the full conversation object. The request has no body.

Permissions:

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.
conversation_idintegerYesConversation display ID.

Example request

curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/conversations/1501/update_last_seen' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'

Remarks​

Request​

Responses​

The full conversation.