# List knowledge sources (https://notert.io/docs/api/reference/list-knowledge-sources)

`GET /api/v1/knowledge-sources`

The websites and files Otto, the workspace's AI assistant, reads to answer customers, newest first, with what it answers from now: each source's state, why it failed, and its pages read, failed, skipped and still to read.

Access: A token with knowledge:read.

## Query parameters

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `kind` | string | No | Only the sources of this kind. One of: `website`, `file`, `changelog`, `completed`, `help`. |
| `state` | string | No | Only the sources in this state. One of: `crawling`, `paused`, `ready`, `failed`. |

## Response 200

| Field | Type | Description |
| --- | --- | --- |
| `summary` | object | What Otto answers from now, as the Knowledge page's status line says. |
| `summary.status` | string | Where Otto's knowledge stands: empty (nothing added), updating (a crawl is under way), indexing (what was read is still being indexed) or ready. One of: `empty`, `updating`, `indexing`, `ready`. |
| `summary.pageCount` | integer | How many website pages Otto answers from. |
| `summary.fileCount` | integer | How many files Otto answers from. |
| `summary.updatedAt` | date-time or null | When a source last finished being read. Null before any has. |
| `items` | object[] | The sources Otto reads, newest first. |
| `items.id` | string | The source's id. |
| `items.kind` | string | What the source is: a website the team added, a file it uploaded, or what Notert connects by itself, the published changelog (changelog), completed requests (completed) and help articles (help). One of: `website`, `file`, `changelog`, `completed`, `help`. |
| `items.name` | string | A file's name as uploaded, or a website's address, as the team added it. |
| `items.url` | string or null | A website's address. Null for a file or a source Notert connects. |
| `items.state` | string | Where the source stands: crawling, paused, ready (every page it found settled) or failed (its first page couldn't be read, or getting it ready for Otto ran out of tries). One of: `crawling`, `paused`, `ready`, `failed`. |
| `items.failure` | string or null | Why the source failed, such as unreachable, blocked or not found, or not indexed when getting what was read ready for Otto ran out of tries. Null unless it failed. One of: `unreachable`, `blocked`, `not found`, `no access`, `refused`, `server error`, `rate limited`, `not a page`, `too large`, `robots`, `empty`, `elsewhere`, `not a product site`, `not indexed`. |
| `items.pages` | object | The source's pages by where each stands. |
| `items.pages.indexed` | integer | The pages Otto answers from. |
| `items.pages.failed` | integer | The pages that couldn't be read. |
| `items.pages.skipped` | integer | The pages left out: those the website's robots.txt keeps out or that ask not to be indexed. |
| `items.pages.queued` | integer | The pages still to read. |
| `items.crawledAt` | date-time or null | When the source last finished being read. Null before it has. |

## 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/knowledge-sources?kind=website" \
  -H "Authorization: Bearer $NOTERT_API_TOKEN"
```

## Example response 200

```json
{
  "summary": {
    "status": "ready",
    "pageCount": 128,
    "fileCount": 3,
    "updatedAt": "2026-11-20T08:12:00.000Z"
  },
  "items": [
    {
      "id": "3c5e7a9b-1d2f-4a6b-8c0e-2f4a6c8e0b17",
      "kind": "website",
      "name": "docs.example.com",
      "url": "https://docs.example.com/",
      "state": "ready",
      "failure": null,
      "pages": {
        "indexed": 120,
        "failed": 2,
        "skipped": 6,
        "queued": 0
      },
      "crawledAt": "2026-11-20T08:12:00.000Z"
    }
  ]
}
```
