# Get Otto's activity (https://notert.io/docs/api/reference/get-otto-s-activity)

`GET /api/v1/insights/otto`

How much Otto, the workspace's AI assistant, has answered over the last 30 days: its replies against the plan's allowance and how many it may still write, how many conversations it replied in that have an outcome, Spam and those still open with it left out, and the share of them it resolved without the team, as Reports counts them.

Access: A token with knowledge:read.

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `replies` | object | Otto's replies over the last 30 days, against the plan's allowance. |
| `replies.used` | integer | How many replies Otto wrote in the last 30 days: to visitors, and its answers to teammates who tagged it. |
| `replies.teammateAnswers` | integer | How many of those answered a teammate who tagged it. |
| `replies.allowance` | integer | How many the workspace's plan lets it write in 30 days. |
| `replies.remaining` | integer | How many it may still write now. At none, it hands every question to the team. |
| `conversations` | integer | How many conversations Otto replied in over the last 30 days that have an outcome: resolved, handed off or joined by a teammate. Spam is left out, and so is one still open with Otto. |
| `resolvedAlonePercent` | integer | The share of those Otto resolved without the team, no teammate replying and Otto never handing it off, as a whole percent. 0 with none. |

## 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 what Otto knows or ask Otto. 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/otto \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

## Example response 200

```json
{
  "replies": {
    "used": 140,
    "teammateAnswers": 12,
    "allowance": 500,
    "remaining": 360
  },
  "conversations": 96,
  "resolvedAlonePercent": 64
}
```
