users

Request My Tokens

Ask for extra tokens on the caller's own account (jwt). The buy path, v1.

Payer-keyed: company_id is NULL and requested_by is the payer, because a billing user need not be a member of the companies they pay for — and a wizard user who has run out may have no company at all, which is exactly when they need to ask. An admin sees it on the worklist and records the purchase, which grants the tokens and releases the held work.

TokenPurchaseRequest stays TENANT-classified for the company-keyed route beside it (one client of a fiduciary must never read another's requests), so a row with no company has no owner for Ring 3 to check and is refused under a restricted principal. PayerScopedDep is the sanctioned elevation for exactly that shape — and it is the caller's own account either way.

post/users/me/token-purchase-requests

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/token-purchase-requests
  • Auth: none declared

Headers

authorizationstring nullable

Cookies

access_tokenstring nullable

Request body

unitsinteger required
notestring nullable

Response

Successful Response

idstring required
company_idstring nullable
requested_bystring required
unitsinteger required
notestring nullable
statusstring required
created_atstring date-time required
resolved_atstring date-time nullable

Changes

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