# Archive all unread inbox notifications

`POST /api/inbox/archive-all`

URL: https://repsona.com/api/post-inbox-archive-all

## Parameters

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `mention_only` | query | boolean |  | Set to `true` to archive only the notifications listed with `mention_only` in the inbox list. Defaults to `false`. |

## Request

```sh
curl -X POST "https://<space>.repsona.com/api/inbox/archive-all" \
  -H "Authorization: Bearer $REPSONA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Responses

- 200: Archived
- 401: Authentication is required

## Example response

```json
{
  "ok": true
}
```
