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 Free, 500 and 10,000,000 on Starter, 2,000 and 50,000,000 on Business, and 10,000 and 200,000,000 on Enterprise.

curl
curl "$OE/knowledge/usage" -H "$AUTH"
Response
{  "object": "knowledge_usage",  "plan": "starter",  "sources": 18,  "chars": 412088,  "limits": { "sources": 500, "chars": 10000000 }}

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

Reference