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:
| 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/update_last_seen' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'
Remarks
- For several conversations at once, use Bulk Mark as Read.
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.