Get Org Subscription
curl --request GET \
--url https://api.studio.prisme.ai/v2/orgs/subscriptions/{subscriptionSlug} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/orgs/subscriptions/{subscriptionSlug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/subscriptions/{subscriptionSlug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"slug": "<string>",
"name": "<string>",
"tier": "<string>",
"status": "active",
"id": "<string>",
"plan": "<string>",
"isDefault": true,
"limits": {},
"features": {},
"billing": {},
"startedAt": "<string>",
"expiresAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}Subscriptions
Get Org Subscription
Get a specific subscription (SuperAdmin only)
GET
/
v2
/
orgs
/
subscriptions
/
{subscriptionSlug}
Get Org Subscription
curl --request GET \
--url https://api.studio.prisme.ai/v2/orgs/subscriptions/{subscriptionSlug} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.studio.prisme.ai/v2/orgs/subscriptions/{subscriptionSlug}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/orgs/subscriptions/{subscriptionSlug}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"slug": "<string>",
"name": "<string>",
"tier": "<string>",
"status": "active",
"id": "<string>",
"plan": "<string>",
"isDefault": true,
"limits": {},
"features": {},
"billing": {},
"startedAt": "<string>",
"expiresAt": "<string>",
"createdBy": "<string>",
"updatedBy": "<string>",
"createdAt": "<string>",
"updatedAt": "<string>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
Success
Available options:
active, inactive, trialing, past_due, canceled Was this page helpful?