Make a plan
POST
/api/platform/plans
const url = 'https://forge.example.com/api/platform/plans';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"plan":{"code":"example","name":"example","summary":"example","position":1,"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,"active":true,"listed":true},"reason":"example","version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/platform/plans \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "plan": { "code": "example", "name": "example", "summary": "example", "position": 1, "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, "active": true, "listed": true }, "reason": "example", "version": 1 }'Send the whole plan under plan: its code (fixed from then on), name, whether it is sold by the seat with the least and most seats, whether it is bought by checkout (selfServe) or only given against an invoice, its prices for a year and for a month in cents (either may be missing), what it includes (reviewers, creators, models; missing means no limit; peoplePooled counts reviewers and creators as one pool), the AI allowance a month and its daily cap in millionths of a dollar, and whether it is active and listed on the pricing page. Making or changing a plan takes the price table’s approval away until it is approved again.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
plan
required
object
code
required
null | string
name
required
null | string
summary
required
null | string
position
required
null | integer | string format: int32
perSeat
required
boolean
minQuantity
required
null | integer | string format: int32
maxQuantity
required
null | integer | string format: int32
selfServe
required
boolean
priceYearCents
required
null | integer | string format: int64
priceMonthCents
required
null | integer | string format: int64
currency
required
null | 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
null | integer | string format: int64
aiDayMicrodollars
required
null | integer | string format: int64
packsAllowed
required
null | boolean
active
required
null | boolean
listed
required
boolean
reason
required
string
version
required
null | integer | string format: int32
Example generated
{ "plan": { "code": "example", "name": "example", "summary": "example", "position": 1, "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, "active": true, "listed": true }, "reason": "example", "version": 1}Responses
Section titled “Responses”OK
Media typeapplication/json
object
id
required
string format: uuid
code
required
string
name
required
string
summary
required
null | string
position
required
integer | string format: int32
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
active
required
boolean
listed
required
boolean
version
required
integer | string format: int32
organizations
required
integer | string format: int32
Example generated
{ "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "code": "example", "name": "example", "summary": "example", "position": 1, "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, "active": true, "listed": true, "version": 1, "organizations": 1}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"}