GET
/v2/organizations/{organizationId}/billing/self-hosted-ee/subscriptions/{subscriptionId}/current-usageGet current usage for a self-hosted subscription
Retrieves current usage for a self-hosted Enterprise Edition subscription. Supply organizationId and subscriptionId to identify the subscription whose usage you want to inspect.
organizationIdintegerrequired
The integer identifier of the organization that owns the subscription.
subscriptionIdintegerrequired
The integer identifier of the self-hosted Enterprise Edition subscription.
200Returns current usage and included amounts for credits, keys, seats, and strings, along with the pay-as-you-go status.
creditsobjectrequired
isPayAsYouGobooleanrequired
keysobjectrequired
seatsobjectrequired
stringsobjectrequired
wordsobjectoptional
400Returned when the request is invalid.
codestringrequired
paramsarray<object>optional
401Returned when authentication is missing or invalid.
codestringrequired
paramsarray<object>optional
403Returned when the authenticated user is not permitted to access the requested resource.
codestringrequired
paramsarray<object>optional
404Returned when the organization or subscription is not found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 indicates an invalid request, a 401 indicates an authentication failure, a 403 indicates insufficient access, and a 404 indicates the organization or subscription was not found. The organizationId and subscriptionId path parameters must identify a subscription belonging to that organization.