Agents Platform

Get Dependent Agents For Multiple Documents

Changed on

Get a list of agents depending on any of the given knowledge base documents.

post/v1/convai/knowledge-base/dependent-agents

Request

  • Base URL
    https://api.elevenlabs.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.elevenlabs.io/v1/convai/knowledge-base/dependent-agents
  • Auth
    none declared

Query parameters

dependent_type'direct' | 'transitive' | 'all'

Type of dependent agents to return.

page_sizeinteger

How many documents to return at maximum. Can not exceed 100, defaults to 30.

cursorstring nullable

Used for fetching next page. Cursor is returned in the response.

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Request body

document_idsstring[] required

The ids of documents or folders from the knowledge base.

Example request

{
  "document_ids": [
    "21m00Tcm4TlvDq8ikWAM",
    "31m00Tcm4TlvDq8ikWBM"
  ]
}

Response

Successful Response

next_cursorstring nullable
has_moreboolean required

Changes