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 user id — 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).
Headers
Response
Successful Response
Changes
Changed in 1 of the 7 revisions of this API.13
- ●
removed the optional property
detailfrom the response with the422statusresponse-optional-property-removed
- ○
added the required property
detailsto the response with the422statusresponse-required-property-added
- ○
added the required property
errorto the response with the422statusresponse-required-property-added
- ○
added the required property
messageto the response with the422statusresponse-required-property-added
This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●