analytics

Per-repo cost breakdown.

Aggregates two data sources:

  • credit_transactions (this user, scoped by repo_id) - billing-side spend in cents, broken down by transaction type, with 7d / 30d / lifetime windows.
  • llm_costs.json artifact (engine-side per-operation telemetry) when present. The OSS indexer doesn't currently emit this artifact for every snapshot, so the response includes available=False rather than 500-ing when it's missing.

Auth: anyone can fetch the totals for a public snapshot (transactions are filtered by user_id, so anonymous callers see zeros for the spend half but the engine telemetry is still useful as a public stat). Private snapshots follow the standard owner-only rule.

get/repos/{short_id}/costs

Request

  • Base URL
    https://api.repowise.dev (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

short_idstring required

Response

Successful Response

repo_idstring required
short_idstring required
total_centsinteger required
total_cents_30dinteger required
total_cents_7dinteger required
transaction_countinteger required

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status