---
title: "List active knowledge sources available to an AI agent"
---

> Documentation Index
> Fetch the complete documentation index at: https://developer.channelautomations.com/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Channel Automation API › AI Knowledge Studio

`GET /api/knowledge-studio/sources`

## Query parameters

- `agent_config_id` (`get/api/knowledge-studio/sources.query.agent_config_id`; string, optional)
  - format `uuid`

## Header parameters

- `X-Workspace-Id` (`get/api/knowledge-studio/sources.header.X-Workspace-Id`; string, required)

## Code samples

### cURL

```bash
curl --request GET \
  --url https://api.channelautomation.com/api/knowledge-studio/sources \
  --header 'X-Workspace-Id: string'
```

### TypeScript

```typescript
const url = 'https://api.channelautomation.com/api/knowledge-studio/sources';
const options = {method: 'GET', headers: {'X-Workspace-Id': 'string'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.channelautomation.com/api/knowledge-studio/sources"

headers = {"X-Workspace-Id": "string"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Workspace and agent-scoped knowledge sources


Source: https://developer.channelautomations.com/api/get-api-knowledge-studio-sources/index.md
