Get Billing State
GET/organizations/{organizationId}/billing
The organization's plan, its limits, and how much of each limit is already spent — enough for an integration to know a write will be rejected before attempting it. This endpoint is read-only by construction. No API key of any kind can change a subscription, an add-on quantity, or a payment method; there is no billing write endpoint and no billing write scope. Stripe identifiers, invoices, and payment methods are never returned.
Needs read access. About keys
Request
curl "https://app.vyingfor.com/api/v1/organizations/{organizationId}/billing" \
-H "Authorization: Bearer YOUR_API_KEY"Parameters
| Name | In | Type | Description |
|---|---|---|---|
organizationId required | Path | string |
Response
200 Get billing state
| Field | Type | Description |
|---|---|---|
organizationId | string | |
billingEnabled | boolean | Whether this workspace is billed for its usage. |
plan | BillingPlan | Null when the organization has no subscription, or when billing is disabled. |
limits | PlanLimits | |
usage | object |
Errors
401Authentication required403The key is valid but doesn't have the access this request needs.404Resource not found429Per-key rate limit exceeded.500Internal server error