<!-- Generated from the canonical 99 Digital API documentation. Do not edit this file. -->

Canonical page: https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-read

# Bulk Mark as Read

`POST https://online.99digital.co.il/api/v1/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](https://docs.99digital.co.il/online-api/conversations/mark-conversation-as-read),
which returns the conversation. The two bulk read / unread endpoints:

| Action | Method | Path | Body | Response |
| --- | --- | --- | --- | --- |
| [Mark as read](https://docs.99digital.co.il/online-api/conversations/bulk-mark-as-read) | `POST` | `/api/v1/accounts/{account_id}/bulk_actions/mark_as_read_all` | `{"ids": [1501]}` | `200 OK`, empty body |
| [Mark as unread](https://docs.99digital.co.il/online-api/conversations/bulk-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**

```bash
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.

## Authentication

`api_access_token` in the header — Your access token. A user token is in the dashboard under **Profile settings → Access Token**, and grants exactly what that agent's role allows. An agent-bot token may call only the endpoints marked for agent bots. See [Getting Started](https://docs.99digital.co.il/online-api/getting-started#authentication).

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `account_id` | path | integer | Yes | The numeric ID of your account: the number after `/app/accounts/` in the dashboard URL. Example: `12`. |

## Request body

Content type: `application/json` (required)

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `ids` | array of integer | Yes | The conversations' display IDs. See [Conversation Basics](https://docs.99digital.co.il/online-api/conversations/conversation-basics). |

### Example (generated from the schema)

```json
{
  "ids": [
    1501,
    1502
  ]
}
```

## Responses

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

### 401 — The access token is missing or wrong, or its user does not belong to this account.

Content type: `application/json`

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | The error message. |

#### Example: Invalid token

The api_access_token header is missing or wrong.

```json
{
  "error": "Invalid Access Token"
}
```

#### Example: Another account

A valid token, for a user who is not in this account.

```json
{
  "error": "You are not authorized to access this account"
}
```

### 403 — The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See [Authorization](https://docs.99digital.co.il/online-api/getting-started#authorization).

Content type: `application/json`

| Field | Type | Description |
| --- | --- | --- |
| `error` | string | The error message. |

#### Example: No permission

The role lacks the permission.

```json
{
  "error": "You are not authorized to do this action"
}
```

#### Example: Agent bot

An agent-bot token on an endpoint that is not open to bots.

```json
{
  "error": "Access to this endpoint is not authorized for bots"
}
```
