Skip to main content
GET
/
api
/
v1
/
agents
/
knowledge-base
/
list
Get all agents that are linked to a 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 agents

agentIds
string[]
required
knowledgeBaseId
string
required
Minimum string length: 1