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:
| Action | Method | Path | Effect |
|---|---|---|---|
| Mark as read | POST | /api/v1/accounts/{account_id}/conversations/{conversation_id}/update_last_seen | Sets 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}/unread | Moves 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_unread | Marks the conversation unread and fires conversation.unread. |
Authorization: user token. Response (200 OK): the full
conversation object. The
request has no body.
Permissions:
- User token: any agent who can see the conversation — see Who can see a conversation.
- Agent-bot token: not allowed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
conversation_id | integer | Yes | Conversation 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.unreadis not one of the webhook events you can subscribe to.
Request
Responses
- 200
- 401
- 403
- 404
The full conversation.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
The resource does not exist in this account.