Get agents linked to knowledge base
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/agents/knowledge-base/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://blackbox.dasha.ai/api/v1/agents/knowledge-base/list \
--header 'Authorization: Bearer <token>'import requests
url = "https://blackbox.dasha.ai/api/v1/agents/knowledge-base/list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"agentIds": [
"<string>"
],
"knowledgeBaseId": "<string>"
}
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Get agents linked to knowledge base
Retrieves a list of all agents in your organization that are connected to knowledge bases. This endpoint helps you understand which agents have knowledge base integrations enabled.
Query Options:
- Without parameters: Returns all agents with any knowledge base links
- With knowledgeBaseId: Returns only agents linked to the specified knowledge base
Response Format: Each item includes:
- Agent ID and name
- List of knowledge base IDs linked to the agent
- Link creation timestamps
Use Cases:
- Track which agents use specific knowledge bases
- Identify agents that need knowledge base configuration
- Manage knowledge base access across agents
GET
/
api
/
v1
/
agents
/
knowledge-base
/
list
Get agents linked to knowledge base
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://blackbox.dasha.ai/api/v1/agents/knowledge-base/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://blackbox.dasha.ai/api/v1/agents/knowledge-base/list \
--header 'Authorization: Bearer <token>'import requests
url = "https://blackbox.dasha.ai/api/v1/agents/knowledge-base/list"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)[
{
"agentIds": [
"<string>"
],
"knowledgeBaseId": "<string>"
}
]{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Response
Returns the list of agent links successfully
Was this page helpful?