Session
Get session usage
Aggregate token and cost usage across the session and all its descendant subagents. Resolves the tree root, so the result is the same whether a parent or child session ID is passed.
get/session/{sessionID}/usage
Path parameters
sessionIDstring required
Query parameters
directorystring
Response
Aggregated usage
Changes
Changed in 2 of the 102 revisions of this API.11
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 36 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲