GET
/
v1
/
convai
/
agents
/
{agent_id}
/
knowledge-base
/
{documentation_id}
from elevenlabs import ElevenLabs

client = ElevenLabs(
    api_key="YOUR_API_KEY",
)
client.conversational_ai.get_agent_knowledge_base_document_by_id(
    agent_id="21m00Tcm4TlvDq8ikWAM",
    documentation_id="21m00Tcm4TlvDq8ikWAM",
)
{
  "id": "<string>",
  "type": "file",
  "extracted_inner_html": "<string>"
}

Headers

xi-api-key
string

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

Path Parameters

agent_id
string
required

The id of an agent. This is returned on agent creation.

documentation_id
string
required

The id of a document from the agent's knowledge base. This is returned on document addition.

Response

200
application/json

Successful Response

The response is of type object.