Skip to main content
Read your account’s usage. Authenticates with your console login session (JWT).
GET /api/console/usage?days=30
Authorization: Bearer <console_jwt>
QueryDescription
daysWindow to aggregate over (e.g. 30).
Returns request count, token totals, and cost (CNY) over the window. Billing is per actual token usage; the console is the source of truth for final cost. The console renders this as charts under Usage.
curl "https://cdm.thetahealth.cn/api/console/usage?days=30" \
  -H "Authorization: Bearer $CONSOLE_JWT"