Skip to the documentation
API

Read knowledge base usage

How many items and characters of text the workspace keeps, against what its plan allows.

GET/knowledge/usage

Runs the real call on your workspace.

GET /knowledge/usage

How many items and characters of text the workspace keeps, against what its plan allows.

Example

Needs knowledge:read. limits holds what the plan allows: 50 items and 1,000,000 characters on Starter and Pro, 2,000 items and 50,000,000 characters on Max and 10,000 items and 200,000,000 characters on Enterprise.

curl
curl "$API/knowledge/usage" -H "$AUTH"
Response
{  "object": "knowledge_usage",  "plan": "professional",  "sources": 18,  "chars": 412088,  "limits": { "sources": 50, "chars": 1000000 }}

The numbers are for the whole workspace, whatever the key may reach. Adding past the allowance is a 409 knowledge_allowance_reached.

Reference