How Usage Is Tracked
Every AI reply records which resources were involved, with two usage kinds:- Available — the resource was in the AI’s context for the reply. For instructions and knowledge base items, this means it was eligible to be used.
- Applied (“used”) — the resource was actually applied: an instruction or knowledge base item cited in the reply, or an action invoked. Actions are always recorded as applied (they only appear when called).
Resource Types
Theresource_type path parameter selects what to look up:
instruction— an AI instruction / behaviorknowledge— a knowledge base itemaction— a tool the AI can call
Scopes
Both endpoints require the resource’s own read scope pluschat-sessions:read
(the responses expose conversation data — session ids, ticket numbers, last
message):
instruction/knowledge→training:read+chat-sessions:readaction→actions:read+chat-sessions:read
Available Endpoints
Get Usage Summary
Aggregate available / applied counts for a resource
List Conversations
List the conversations a resource was used in