Read the plans for sale
GET
/api/pricing
const url = 'https://forge.example.com/api/pricing';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://forge.example.com/api/pricingThe plans and packs the instance lists on its pricing page, each with what it includes and its prices in cents. While the instance’s price table is not approved, approved is false and no plan, pack or figure is answered. signUp says whether anyone may sign up for a trial here, and trialDays how long one lasts. Needs no sign-in.
Responses
Section titled “Responses”OK
Media typeapplication/json
object
enabled
required
boolean
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
maxQuantity
required
integer | string format: int32
selfServe
required
boolean
priceYearCents
required
null | integer | string format: int64
priceMonthCents
required
null | integer | string format: int64
currency
required
string
reviewers
required
null | integer | string format: int32
creators
required
null | integer | string format: int32
peoplePooled
required
boolean
models
required
null | integer | string format: int32
aiMonthMicrodollars
required
integer | string format: int64
aiDayMicrodollars
required
integer | string format: int64
packsAllowed
required
boolean
packs
required
Array<object>
object
code
required
string
name
required
string
kind
required
string
size
required
integer | string format: int64
priceYearCents
required
null | integer | string format: int64
priceMonthCents
required
null | integer | string format: int64
currency
required
string
signUp
required
boolean
trialDays
required
integer | string format: int32
salesAddress
required
null | string
Example generated
{ "enabled": true, "approved": true, "plans": [ { "code": "example", "name": "example", "summary": "example", "perSeat": true, "minQuantity": 1, "maxQuantity": 1, "selfServe": true, "priceYearCents": 1, "priceMonthCents": 1, "currency": "example", "reviewers": 1, "creators": 1, "peoplePooled": true, "models": 1, "aiMonthMicrodollars": 1, "aiDayMicrodollars": 1, "packsAllowed": true } ], "packs": [ { "code": "example", "name": "example", "kind": "example", "size": 1, "priceYearCents": 1, "priceMonthCents": 1, "currency": "example" } ], "signUp": true, "trialDays": 1, "salesAddress": "example"}default
Section titled “default”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"}