Skip to main content
GET
Read the subscription
Takes a managing key (oc_key_...) or a signed-in session. See Editions for what OneCLI Cloud adds. The organization’s plan, and when it renews. Changes nothing. Hosted only.
Availability: OneCLI Cloud only. A self-hosted deployment does not serve this endpoint and answers 404 with error.code: "not_found".

Authorizations

Authorization
string
header
required

A managing key (oc_key_...), an older API key (oc_...), or a signed-in session.

Response

The subscription.

cancelAtPeriodEnd
boolean
required
hasStripeCustomer
boolean
required
interval
enum<string> | null
required
Available options:
month,
year,
null
renewsAt
string | null
required

When the period ends, ISO 8601: renewal, or the end.

salesManaged
boolean
required

Sales manages this plan: no self-serve changes.

status
enum<string>
required

The organization's plan.

Available options:
free,
developer,
pro,
pro-credits,
team,
team-legacy,
scale,
enterprise,
aws-marketplace