cURL
curl --request GET \ --url https://api.example.com/v1/voiceai/knowledge-base/{document_id}/size \ --header 'x-api-key: <api-key>'
{ "number_of_pages": 123 }
Returns the number of pages in the document’s knowledge base.
API key for programmatic access
Successful Response
Response model for GET /agent/{agent_id}/knowledge-base/size endpoint
Number of pages in the agent's knowledge base