MyanLex

Read the current organization plan and monthly allowance (usage.read)

Requires a verified member session and the dynamic usage.read permission. No project.read permission or project is required. Non-members receive 404. Read-only database snapshot; never creates or consumes a reservation. Counts span all organization projects and keys. Disabled enforcement shows retained reservations, not uncounted traffic. Null limits/remaining mean unlimited. Remaining is clamped to zero after a plan downgrade. Values are decimal strings, not floating-point numbers. This is not billing metering.

GET/platform/organizations/{organizationId}/quota

Requires a verified member session and the dynamic usage.read permission. No project.read permission or project is required. Non-members receive 404. Read-only database snapshot; never creates or consumes a reservation. Counts span all organization projects and keys. Disabled enforcement shows retained reservations, not uncounted traffic. Null limits/remaining mean unlimited. Remaining is clamped to zero after a plan downgrade. Values are decimal strings, not floating-point numbers. This is not billing metering.

Authorization

accountSession
better-auth.session_token<token>

Better Auth signed HttpOnly session cookie; HTTPS uses the __Secure-better-auth.session_token name. Sign in through /api/auth. Browser clients send cookies automatically; do not paste secrets into docs.

In: cookie

Path Parameters

organizationId*string
Formatuuid

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/platform/organizations/497f6eca-6276-4993-bfeb-53cbbbba6f08/quota"
{  "organizationId": "7bc05553-4b68-44e8-b7bc-37be63c6d9e9",  "enforcementEnabled": true,  "timezone": "UTC",  "generatedAt": "2019-08-24T14:15:22Z",  "periodStart": "2019-08-24T14:15:22Z",  "resetsAt": "2019-08-24T14:15:22Z",  "metering": "admission-reservations",  "plan": {    "name": "string",    "slug": "string",    "source": "subscription"  },  "requests": {    "used": "string",    "limit": "string",    "remaining": "string"  },  "characters": {    "used": "string",    "limit": "string",    "remaining": "string"  }}