Skip to content

See the organization's plan and what it uses

GET
/api/billing
curl --request GET \
--url https://forge.example.com/api/billing \
--header 'Authorization: Bearer <token>'

kind is trial, plan or none (no plan was set, and nothing is counted against the organization). meters are reviewers, creators (or people, when the plan counts the two as one pool) and models: used, limit (null for no limit), percent, and state: none, ok, near (at or past the notice’s share, 80 percent unless the instance sets another) or over. waiting are invitations not used yet, which count as the person they invite. A reviewer holds Assessor or Approver and is counted once whatever else they hold; a creator is anyone else who holds Author, Central, Curator or Administrator; everyone else is a reader, free and not limited. Every model counts once it exists, however it was made; revisions do not. With a plan, ai is the month’s AI allowance on the instance’s own account, in millionths of a dollar of what the calls cost: monthLimit, monthSpent, dayLimit (0 for no daily cap), daySpent, and stop, which is month or day while the assistant is stopped and null while it runs. Its meter, ai, has hard true: it is the one limit that stops something, the assistant, until the next month or day (UTC) or until the organization connects an AI account of its own. notices say what is near or past a limit; each one about people or models says that nothing is blocked (blocks false). offer is what can be bought, with prices only when the instance’s price table is approved. enabled is false on an instance that sells no plans. For administrators.

OK

Media typeapplication/json
object
enabled
required
boolean
kind
required
string
plan
required
One of:
null
trial
required
One of:
null
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*)$/
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*)$/
notices
required
Array<object>
object
key
required
string
level
required
string
title
required
string
text
required
string
blocks
required
boolean
payment
required
object
available
required
boolean
testMode
required
boolean
manageable
required
boolean
offer
required
object
approved
required
boolean
plans
required
Array<object>
object
code
required
string
name
required
string
summary
required
null | string
perSeat
required
boolean
minQuantity
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
maxQuantity
required
integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
selfServe
required
boolean
priceYearCents
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
priceMonthCents
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
currency
required
string
reviewers
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
creators
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
peoplePooled
required
boolean
models
required
null | integer | string format: int32
/^-?(?:0|[1-9]\d*)$/
aiMonthMicrodollars
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
aiDayMicrodollars
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
packsAllowed
required
boolean
packs
required
Array<object>
object
code
required
string
name
required
string
kind
required
string
size
required
integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
priceYearCents
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
priceMonthCents
required
null | integer | string format: int64
/^-?(?:0|[1-9]\d*)$/
currency
required
string
salesAddress
required
null | string
supportName
required
string
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"
}