Skip to main content

Bulk Mark as Read

POST 

/accounts/:account_id/bulk_actions/mark_as_read_all

Mark several conversations as read at once.

Marks every conversation in ids as read. The response has an empty body. For one conversation, you can also use Mark Conversation as Read, which returns the conversation. The two bulk read / unread endpoints:

ActionMethodPathBodyResponse
Mark as readPOST/api/v1/accounts/{account_id}/bulk_actions/mark_as_read_all{"ids": [1501]}200 OK, empty body
Mark as unreadPOST/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

NameTypeRequiredDescription
account_idintegerYesAccount ID.

Body parameters (JSON)

NameTypeRequiredDescription
idsinteger[]YesConversation display IDs.

Example request

curl -X POST 'https://online.99digital.co.il/api/v1/accounts/12/bulk_actions/mark_as_read_all' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "ids": [1501, 1502] }'

Example response: 200 OK with an empty body.

Request​

Responses​

The conversations were marked as read, with an empty body.