Skip to content

See an organization's plan and what it uses

GET
/api/platform/organizations/{id}/plan
curl --request GET \
--url https://forge.example.com/api/platform/organizations/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/plan \
--header 'Authorization: Bearer <token>'

Its plan with the term and where it came from (stripe, or invoice with the purchase reference), the limits of the plan alone and with its packs, the packs, the meters, and ai, where it stands against its AI allowance this month and today. plan is null when none was set; version is then 0.

id
required
string format: uuid

OK

Media typeapplication/json
object
organizationId
required
string format: uuid
organizationPlan
required
string
plan
required
One of:
null
baseLimits
required
One of:
null
limits
required
One of:
null
note
required
null | string
packs
required
Array<object>
object
code
required
string
name
required
string
kind
required
string
size
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
quantity
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
meters
required
Array<object>
object
key
required
string
label
required
string
used
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
limit
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
percent
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
state
required
string
hard
required
boolean
waiting
integer | string format: int64
0 /^-?(?:0|[1-9]\d*)$/
readers
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
version
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
ai
One of:
null

Example

{
"meters": [
{
"waiting": 0
}
]
}

A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.

Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string

Example generated

{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}