---
title: "Get knowledge base counts"
method: GET
path: "/org/kb/stats"
tags: ["Knowledge Base"]
---

# Get knowledge base counts

`GET /org/kb/stats`

## Request

- Base URL: `https://apiv2.senso.ai/api/v1`
- URL: `https://apiv2.senso.ai/api/v1/org/kb/stats`
- Auth: API key in header `X-API-Key`

Returns how many documents and folders your organization's knowledge base contains.

## Response `200`

Knowledge base counts.

- KBStatsResponse
  - `total_files` integer, required: Number of document (file) nodes in the knowledge base.
  - `total_folders` integer, required: Number of folder nodes in the knowledge base, excluding the root folder.

## Other responses

- `401`: Missing or invalid credentials — supply a valid org API key in the `X-API-Key` header.

---

[API](https://skmtc.dev/senso/apis/senso-org-api.md) - [All operations](https://skmtc.dev/senso/apis/senso-org-api/llms.txt) - [OpenAPI document](https://skmtc.dev/senso/apis/senso-org-api/revisions/d789b4fcbe84?raw)
