# Mark a whole inbox list read (https://notert.io/docs/api/reference/mark-a-whole-inbox-list-read)

`POST /api/v1/conversations/read-all`

Marks every unread conversation in one of the inbox's lists read for the team, as the list's Mark all as read does: the list named by the query, view, assignee, customer and plan that GET /conversations takes and none of its other fields, so assigneeId or customerId sent here narrows nothing, its newest 1000 a call. Each is read up to the call, so one a message reaches meanwhile stays unread. Archived and spam lists offer no such press. more says whether another call has more to mark.

Access: A token with conversations:write.

## Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | No | Words every conversation listed holds in what was said, internal notes included, or in the customer's name or address. Empty lists them all. At most 200 characters. |
| `view` | string | No | Which of the inbox's views: all (every conversation in the inbox, snoozed ones included, the default), queue (open, with the customer waiting on the team), open, resolved, unread, snoozed, archived or spam. One of: `queue`, `open`, `all`, `unread`, `snoozed`, `resolved`, `spam`, `archived`. Default "all". |
| `assignee` | string | No | team (the default) for everyone's, or unassigned for those no one answers. One of: `unassigned`, `team`. Default "team". |
| `customer` | string | No | By what the customer pays the workspace: everyone (the default), paying, or trial (on a trial with nothing paying). One of: `everyone`, `paying`, `trial`. Default "everyone". |
| `plan` | string | No | Only customers on this plan, paying or on a trial, by its exact name as plan answers it. Empty for any plan. At most 200 characters. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `more` | boolean | Whether the list holds more past the newest 1000 one call acts on: send the same call again for them. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `HOLDER_NOT_ALLOWED` | The teammate who holds this API token's secret can't do this in the workspace now. A teammate who can should roll it in the workspace's settings. |
| 403 | `INSUFFICIENT_SCOPE` | This API token can't reply to or organize conversations. Create one that may in the workspace's settings. |
| 403 | `NETWORK_NOT_ALLOWED` | This API token works only from the networks it was made for. Call from one of them, or create a token for this one in the workspace's settings. |
| 403 | `NO_SEAT` | This workspace's plan has no seat for you. |
| 403 | `NOT_ALLOWED` | Archived and spam conversations offer no Mark all as read. |
| 403 | `WORKSPACE_SUSPENDED` | This workspace is suspended. |
| 409 | `CHANGED_MEANWHILE` | Something changed meanwhile. Try again. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl -X POST https://app.notert.io/api/v1/conversations/read-all \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "invoice",
  "view": "queue",
  "assignee": "unassigned",
  "customer": "paying",
  "plan": "Pro"
}'
```

## Example response 200

```json
{
  "more": false
}
```
