users

My Tokens

The caller's own token budgets (jwt) — onboarding, monthly, extra tokens.

Declared before /{user_id}, or FastAPI would match me as a user id.

Session only, and never a company-scoped key (ZET-176 / invariant I8). These are payer-wide magnitudes: extra tokens are drawn by every company the payer pays for, so a confined credential reading them would be watching its siblings' spend. The company read (GET /companies/{id}/llm-quota) is the confined surface, and it answers a state rather than a number. Onboarding-purpose keys are not allowlisted either (they are deny-by-default in onboarding_key_gate): a signup agent has no account to budget.

No elevation: every table behind it is GLOBAL, and it reads the caller's own row.

get/users/me/tokens

Request

  • Base URL: https://app.zeno-works.ch (the document declares no server; this is the origin it was published from)
  • URL: https://app.zeno-works.ch/users/me/tokens
  • Auth: none declared

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Response

Successful Response

has_accountboolean required
onboarding_allowanceinteger required
onboarding_consumedinteger required
onboarding_leftinteger required
monthly_limitinteger required
monthly_usedinteger required
monthly_leftinteger required
resets_atstring date-time nullable
extra_leftinteger required
use_extra_tokensboolean required
unfunded_tokensinteger required
availableinteger required
enforcedboolean required

Changes

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