Get Usage

Tokens over the org's last days, by person, person and agent kind, repo, model or agent.

get/api/v1/cost/usage

Request

  • Base URL
    https://api.stacktrace.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://api.stacktrace.ai/api/v1/cost/usage
  • Auth
    none declared

Query parameters

window'1d' | '3d' | '7d' | '30d'
by'person' | 'person_kind' | 'repo' | 'model' | 'agent'

Headers

authorizationstring nullable

Response

Successful Response

window'1d' | '3d' | '7d' | '30d' required
by'person' | 'person_kind' | 'repo' | 'model' | 'agent' required
time_zonestring required
sincestring date-time required
untilstring date-time required
grain'hour' | 'day' required
agentsinteger required
behindinteger required
truncatedboolean
usualinteger nullable
usual_dayinteger nullable
usual_costnumber nullable
usual_day_costnumber nullable
usual_by_nowinteger nullable
usual_by_now_costnumber nullable
today_scoredinteger nullable
today_scored_costnumber nullable
peopleinteger
runsinteger
agents_usedinteger

Changes

No recorded changes to this operation across all 1 revision of this API.