Skip to main content
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>",
  "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

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

subscriptionSlug
string
required

Response

Success

slug
string
required
name
string
required
tier
string
required
status
enum<string>
required
Available options:
active,
inactive,
trialing,
past_due,
canceled
id
string
plan
string
isDefault
boolean
limits
object
features
object
billing
object
startedAt
string
expiresAt
string
createdBy
string
updatedBy
string
createdAt
string
updatedAt
string