Skip to main content
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));
[
  {
    "agentIds": [
      "<string>"
    ],
    "knowledgeBaseId": "<string>"
  }
]

Query Parameters

knowledgeBaseId
string

Knowledge base identifier

Response

Returns the list of agent links successfully

agentIds
string[]
required

List of agent identifiers that have access to this knowledge base. These agents can retrieve information from the knowledge base during their conversations.

knowledgeBaseId
string
required

Unique identifier of the knowledge base that the agents are linked to.

Minimum string length: 1