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

`GET /api/v1/insights/inbox-report`

How support went over some days, as the Reports page counts it: conversations customers started in the widget and by email, the median minutes to the team's first reply and to a resolve, how often visitors opened the widget, how customers rated resolved conversations, and what Otto answered, settled alone and handed off and why, each beside the same number over as many days before, with the days in periods as the page's bars draw them. Counts alone, never a customer's words or name. Only owners and admins open the Reports page, so the token's holder must be one (FORBIDDEN otherwise).

Access: A token with conversations:read.

## Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `period` | string | No | 7d or 30d, the days up to today. 30d when no days are named. One of: `7d`, `30d`. |
| `from` | date | No | The first day to count, yyyy-MM-dd, with to, in place of period. |
| `to` | date | No | The last day to count, yyyy-MM-dd, with from, at most a year after it. |
| `timeZone` | string | No | The IANA time zone its days are counted in, such as Europe/Oslo. UTC by default. At most 64 characters. Default "UTC". |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `from` | date | The first day counted. |
| `to` | date | The last day counted, today at the latest. |
| `sampleOnly` | string or null | What has nothing of its own to count yet, which the Reports page draws over sample numbers: widget while no visitor has reached the workspace, otto while Otto is off and did nothing in these days. Null when every part counts. One of: `widget`, `otto`. |
| `conversations` | object | The conversations customers started, and how fast the team answered and resolved them. |
| `conversations.started` | object | Conversations customers started, from the widget and by email. |
| `conversations.started.value` | number or null | Over the days asked for. Null with nothing to count. |
| `conversations.started.previous` | number or null | Over as many days just before. Null with nothing to count. |
| `conversations.started.change` | object or null | How far it moved since. Null when either side has no number, or a count was none before. |
| `conversations.started.change.by` | integer | How far it moved, in its unit. |
| `conversations.started.change.unit` | string | percent, of what it was before, or points, of a share. One of: `percent`, `points`. |
| `conversations.started.change.better` | boolean or null | Whether the move is good news. Null for no move, or one neither way. |
| `conversations.widget` | integer | Of those, started in the widget. |
| `conversations.email` | integer | Of those, started by email. |
| `conversations.firstReplyMinutes` | object | The median minutes a customer waited for the team's first reply, of those it replied to. Lower is better. |
| `conversations.firstReplyMinutes.value` | number or null | Over the days asked for. Null with nothing to count. |
| `conversations.firstReplyMinutes.previous` | number or null | Over as many days just before. Null with nothing to count. |
| `conversations.firstReplyMinutes.change` | object or null | How far it moved since. Null when either side has no number, or a count was none before. |
| `conversations.firstReplyMinutes.change.by` | integer | How far it moved, in its unit. |
| `conversations.firstReplyMinutes.change.unit` | string | percent, of what it was before, or points, of a share. One of: `percent`, `points`. |
| `conversations.firstReplyMinutes.change.better` | boolean or null | Whether the move is good news. Null for no move, or one neither way. |
| `conversations.resolveMinutes` | object | The median minutes from a conversation's start to its first resolve, of those resolved. Lower is better. |
| `conversations.resolveMinutes.value` | number or null | Over the days asked for. Null with nothing to count. |
| `conversations.resolveMinutes.previous` | number or null | Over as many days just before. Null with nothing to count. |
| `conversations.resolveMinutes.change` | object or null | How far it moved since. Null when either side has no number, or a count was none before. |
| `conversations.resolveMinutes.change.by` | integer | How far it moved, in its unit. |
| `conversations.resolveMinutes.change.unit` | string | percent, of what it was before, or points, of a share. One of: `percent`, `points`. |
| `conversations.resolveMinutes.change.better` | boolean or null | Whether the move is good news. Null for no move, or one neither way. |
| `periods` | object | Conversations started and widget opens over the days, period by period. |
| `periods.bucket` | string | What one period is: a day, week, month or year. One of: `day`, `week`, `month`, `year`. |
| `periods.each` | object[] | The days in periods, oldest first, as the Reports page's bars draw them. |
| `periods.each.start` | date | Its first day. |
| `periods.each.end` | date | Its last day. |
| `periods.each.widget` | integer | Conversations started in the widget. |
| `periods.each.email` | integer | Conversations started by email. |
| `periods.each.opens` | integer | Times visitors opened the widget in the period. |
| `widgetOpens` | object | Times visitors opened the widget. |
| `widgetOpens.value` | number or null | Over the days asked for. Null with nothing to count. |
| `widgetOpens.previous` | number or null | Over as many days just before. Null with nothing to count. |
| `widgetOpens.change` | object or null | How far it moved since. Null when either side has no number, or a count was none before. |
| `widgetOpens.change.by` | integer | How far it moved, in its unit. |
| `widgetOpens.change.unit` | string | percent, of what it was before, or points, of a share. One of: `percent`, `points`. |
| `widgetOpens.change.better` | boolean or null | Whether the move is good news. Null for no move, or one neither way. |
| `satisfaction` | object | How customers rated resolved conversations. |
| `satisfaction.good` | object | The share of ratings that were good, out of 100, as points. |
| `satisfaction.good.value` | number or null | Over the days asked for. Null with nothing to count. |
| `satisfaction.good.previous` | number or null | Over as many days just before. Null with nothing to count. |
| `satisfaction.good.change` | object or null | How far it moved since. Null when either side has no number, or a count was none before. |
| `satisfaction.good.change.by` | integer | How far it moved, in its unit. |
| `satisfaction.good.change.unit` | string | percent, of what it was before, or points, of a share. One of: `percent`, `points`. |
| `satisfaction.good.change.better` | boolean or null | Whether the move is good news. Null for no move, or one neither way. |
| `satisfaction.ratings` | integer | How many ratings customers gave. |
| `satisfaction.faces` | object[] | Each rating customers gave, with how many and its share. |
| `satisfaction.faces.rating` | string | The face a customer picked: good, okay or bad. One of: `bad`, `okay`, `good`. |
| `satisfaction.faces.count` | integer | How many ratings gave that face. |
| `satisfaction.faces.share` | integer or null | Of the ratings, out of 100; null with none. |
| `otto` | object | What Otto, the workspace's AI assistant, did. |
| `otto.took` | integer | Conversations Otto answered. |
| `otto.settled` | object | The share of those Otto settled alone, out of 100, as points. |
| `otto.settled.value` | number or null | Over the days asked for. Null with nothing to count. |
| `otto.settled.previous` | number or null | Over as many days just before. Null with nothing to count. |
| `otto.settled.change` | object or null | How far it moved since. Null when either side has no number, or a count was none before. |
| `otto.settled.change.by` | integer | How far it moved, in its unit. |
| `otto.settled.change.unit` | string | percent, of what it was before, or points, of a share. One of: `percent`, `points`. |
| `otto.settled.change.better` | boolean or null | Whether the move is good news. Null for no move, or one neither way. |
| `otto.outcomes` | object[] | How the conversations Otto took ended. |
| `otto.outcomes.outcome` | string | alone, settled by Otto; handed_off, to the team; or team, the team stepping in. One of: `alone`, `handed_off`, `team`. |
| `otto.outcomes.count` | integer | How many of those Otto took ended so. |
| `otto.outcomes.share` | integer or null | Of those Otto took, out of 100. |
| `otto.handoffs` | object | Times Otto handed a conversation to the team, and why. |
| `otto.handoffs.total` | object | Times Otto handed a conversation to the team. Lower is better. |
| `otto.handoffs.total.value` | number or null | Over the days asked for. Null with nothing to count. |
| `otto.handoffs.total.previous` | number or null | Over as many days just before. Null with nothing to count. |
| `otto.handoffs.total.change` | object or null | How far it moved since. Null when either side has no number, or a count was none before. |
| `otto.handoffs.total.change.by` | integer | How far it moved, in its unit. |
| `otto.handoffs.total.change.unit` | string | percent, of what it was before, or points, of a share. One of: `percent`, `points`. |
| `otto.handoffs.total.change.better` | boolean or null | Whether the move is good news. Null for no move, or one neither way. |
| `otto.handoffs.reasons` | object[] | Why, most first, over the days asked for. |
| `otto.handoffs.reasons.reason` | string | Why Otto handed it over. One of: `asked`, `asked_after_answer`, `not_covered`, `account`, `sensitive`, `files`, `other`, `refused`, `failed`, `allowance`, `long`, `teammate`, `none`. |
| `otto.handoffs.reasons.count` | integer | Times Otto handed one over for that reason. |
| `otto.helped` | integer | Times a customer pressed That helped under Otto's answer. |
| `otto.askedForPerson` | integer | Times a customer pressed Talk to a person under it. |

## Errors

| Status | Code | Message |
| --- | --- | --- |
| 400 | `BAD_REQUEST` | Input validation failed. |
| 401 | `UNAUTHORIZED` | Send a valid API token as a Bearer token. |
| 403 | `FORBIDDEN` | The teammate who holds this API token's secret can't read the inbox report. Only an owner or admin can: one of them should roll it in the workspace's settings. |
| 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-report?period=7d" \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

## Example response 200

```json
{
  "from": "2026-11-01",
  "to": "2026-11-30",
  "sampleOnly": null,
  "conversations": {
    "started": {
      "value": 42,
      "previous": 35,
      "change": {
        "by": 20,
        "unit": "percent",
        "better": true
      }
    },
    "widget": 4,
    "email": 2,
    "firstReplyMinutes": {
      "value": 42,
      "previous": 35,
      "change": {
        "by": 20,
        "unit": "percent",
        "better": true
      }
    },
    "resolveMinutes": {
      "value": 42,
      "previous": 35,
      "change": {
        "by": 20,
        "unit": "percent",
        "better": true
      }
    }
  },
  "periods": {
    "bucket": "day",
    "each": [
      {
        "start": "2026-11-02",
        "end": "2026-11-02",
        "widget": 4,
        "email": 2,
        "opens": 120
      }
    ]
  },
  "widgetOpens": {
    "value": 42,
    "previous": 35,
    "change": {
      "by": 20,
      "unit": "percent",
      "better": true
    }
  },
  "satisfaction": {
    "good": {
      "value": 42,
      "previous": 35,
      "change": {
        "by": 20,
        "unit": "percent",
        "better": true
      }
    },
    "ratings": 18,
    "faces": [
      {
        "rating": "good",
        "count": 24,
        "share": 40
      }
    ]
  },
  "otto": {
    "took": 64,
    "settled": {
      "value": 42,
      "previous": 35,
      "change": {
        "by": 20,
        "unit": "percent",
        "better": true
      }
    },
    "outcomes": [
      {
        "outcome": "alone",
        "count": 24,
        "share": 40
      }
    ],
    "handoffs": {
      "total": 86,
      "reasons": [
        {
          "reason": "asked",
          "count": 24
        }
      ]
    },
    "helped": 30,
    "askedForPerson": 9
  }
}
```
