# List knowledge sources for a chatbot

> Returns what one chatbot has been trained on — crawled pages, uploaded files, text snippets, and Q&A pairs — with the number of indexed chunks each contributed.

Source: https://www.hey.support/docs/api/knowledge/list-knowledge-sources

---

<ApiEndpoint method="GET" path="/knowledge/sources" />

Requires the `chatbot_id` query parameter.

## Query parameters

<TypeTable
  type={{
  "chatbot_id": { type: "string", description: "Sqid-encoded chatbot id. Scopes results to one chatbot.", required: true }
}}
/>

## Response `200`

Returns a `data` array with a `pagination` object. Each item:

<TypeTable
  type={{
  "source_url": { type: "string", description: "", required: true },
  "chunk_count": { type: "integer", description: "", required: true },
  "last_indexed_at": { type: "string (date-time)", description: "", required: false }
}}
/>

### Errors

* `400` — chatbot\_id is required
* `401` — Missing or invalid API key
* `404` — Chatbot not found
* `429` — Rate limit exceeded

Every error shares [one envelope](/docs/api/errors).

## Example

```bash
curl https://www.hey.support/api/v1/knowledge/sources \
  -H 'Authorization: Bearer hs_live_…'
```
