v2

latestOpenAPI 3.1.0Commercial API license2026-08-01592492.6 KB
internal

Proxy: day + month call counters for an org (Next.js dashboard)

Validates the end-user's Supabase token via auth.get_user (catches revocation; no new dep or secret). Derives the org server-side from the verified email — never trusts a caller-supplied org_id (closes the IDOR). Still gated by X-Internal-Secret as defense-in-depth (only the Vercel proxy reaches this).

get/internal/account/usage

Headers

X-User-Tokenstring nullable
x-internal-secretstring nullable

Response

Successful Response

calls_todayinteger required
calls_this_monthinteger required
active_streamsinteger nullable
max_streamsinteger nullable