Bulk Mark as Unread
POST/accounts/:account_id/bulk_actions/mark_as_unread
Mark several conversations as unread at once.
Marks every conversation in ids as unread, and returns the conversations
that were marked. A conversation without incoming messages is skipped, and
is not in the response. For one conversation, you can also use
Mark Conversation as Unread.
The two bulk read / unread endpoints:
| Action | Method | Path | Body | Response |
|---|---|---|---|---|
| Mark as read | POST | /api/v1/accounts/{account_id}/bulk_actions/mark_as_read_all | {"ids": [1501]} | 200 OK, empty body |
| Mark as unread | POST | /api/v1/accounts/{account_id}/bulk_actions/mark_as_unread | {"ids": [1501]} | 200 OK, {"payload": [...conversations that were marked unread...]}. A conversation without incoming messages is skipped. |
Permissions:
- User token: allowed.
- Agent-bot token: not allowed.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
Body parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
ids | integer[] | Yes | Conversation display IDs. |
Example request
curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/bulk_actions/mark_as_unread' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "ids": [1501, 1502] }'
Example response (200 OK): {"payload": [...]} with the conversations
that were marked unread — here only 1501, because 1502 has no incoming
messages. The full conversation objects are under Responses below.
Request
Responses
- 200
- 401
- 403
The conversations that were marked as unread.
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.