# Archive a whole inbox list or bring it back (https://notert.io/docs/api/reference/archive-a-whole-inbox-list-or-bring-it-back)

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

Archives every conversation in one of the inbox's lists, or brings an archived or spam list back to the inbox, as the list's Archive all and Move all to inbox do: 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. One whose customer wrote after seenAt stays where it is. stayed counts those left; more says whether another call has more.

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. |
| `seenAt` | date-time | Yes | The newest lastActivityAt GET /conversations answered for this list: a conversation whose customer wrote after it stays as it is. |
| `folder` | string | Yes | archived puts them away; inbox brings an archived or spam list back to the inbox. One of: `archived`, `inbox`. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `stayed` | integer | How many of the list stayed as they were, since their customer wrote after seenAt. |
| `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` | That view offers no such move: archive from any view but archived, and bring back only archived or spam conversations. |
| 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/move-all \
  -H "Authorization: Bearer $NOTERT_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "invoice",
  "view": "queue",
  "assignee": "unassigned",
  "customer": "paying",
  "plan": "Pro",
  "seenAt": "2026-11-20T09:12:00.123Z",
  "folder": "archived"
}'
```

## Example response 200

```json
{
  "stayed": 0,
  "more": false
}
```
