Skip to content
dimmiDocs

AI agent

Get knowledge usage

GET/api/v1/knowledge/usage

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:read ability

Response 200

OK
dataobjectrequired
Show child attributes
linesobject[] | nullrequired

The month's usage per source and kind, the largest first.

Show child attributes
browser_msintegerrequired

Browser time spent reading pages for this line, in milliseconds.

Format: int64

estimated_tokensintegerrequired

How many of the input tokens were estimated rather than reported by the provider.

Format: int64

input_tokensintegerrequired

How many tokens were embedded for this line.

Format: int64

kindstringrequired

What was used: embedding (turning text into vectors) or crawl (reading pages).

requestsintegerrequired

How many calls were made for this line.

Format: int64

source_idstring | nullrequired

Id of the knowledge source, starting with ks_. Null for the workspace's own articles and conversations.

source_namestringrequired

Name of the knowledge source the usage belongs to.

source_typestringrequired

The kind of that source, such as website or notion.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

period_startstringrequired

The first day of the month the usage is for, in UTC, written YYYY-MM-DD, such as 2026-11-01.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.