# Get the inbox overview (https://notert.io/docs/api/reference/get-the-inbox-overview)

`GET /api/v1/insights/inbox`

How the support inbox stands, by its views' own rules: how many conversations wait on the team (the queue), are open, unread, snoozed or resolved, and of the waiting and the open, how many no one answers. Archived and spam conversations count in none.

Access: A token with conversations:read.

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `queue` | object | The queue: the open conversations whose customer waits on the team. |
| `queue.total` | integer | How many conversations the view holds. |
| `queue.unassigned` | integer | Of them, how many no one answers. |
| `open` | object | The open conversations, waiting on the team or not. |
| `open.total` | integer | How many conversations the view holds. |
| `open.unassigned` | integer | Of them, how many no one answers. |
| `unread` | integer | How many conversations hold something no one on the team has read. |
| `snoozed` | integer | How many are put away until a moment ahead. |
| `resolved` | integer | How many are resolved. |

## 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 read 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. |
| 429 | `TOO_MANY_REQUESTS` | Too Many Requests. Its data holds `retryAfter`. |

## Example request

```sh
curl https://app.notert.io/api/v1/insights/inbox \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

## Example response 200

```json
{
  "queue": {
    "total": 12,
    "unassigned": 3
  },
  "open": {
    "total": 12,
    "unassigned": 3
  },
  "unread": 5,
  "snoozed": 2,
  "resolved": 318
}
```
