---
title: "Returns The Size Of The Agent'S Knowledge Base"
method: GET
path: "/v1/convai/agent/{agent_id}/knowledge-base/size"
tags: ["Agents Platform"]
---

# Returns The Size Of The Agent'S Knowledge Base

`GET /v1/convai/agent/{agent_id}/knowledge-base/size`

Returns the number of pages in the agent's knowledge base.

## Path parameters

- `agent_id` string, required

## Headers

- `xi-api-key` string, 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.

## Response `200`

Successful Response

- GetAgentKnowledgebaseSizeResponseModel
  - `number_of_pages` number, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/elevenlabs/elevenlabs-api-documentation/revisions/d393c67c384a/schema)
