Skip to main content

Set Conversation Unread

POST 

/accounts/:account_id/conversations/:conversation_id/set_unread

Flag a conversation as unread.

Marks the conversation unread and fires the conversation.unread event. 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/set_unread' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'

Remarks​

  • conversation.unread is not one of the webhook events you can subscribe to.

Request​

Responses​

The full conversation.