List available plans with current prices
GET
/api/v1/billing/plans
const url = 'https://api.yggy.tech/api/v1/billing/plans';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
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://api.yggy.tech/api/v1/billing/plans \ --header 'Authorization: Bearer <token>'Returns all available subscription plans with live pricing from Stripe. Prices are returned in the smallest currency unit (e.g. cents for USD).
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Plans with pricing
Media type application/json
object
plans
required
Array<object>
object
name
required
string
monthlyPrice
required
Monthly seat price in cents, excluding VAT
number | null
annualPrice
required
Yearly seat price in cents, excluding VAT
number | null
currency
required
string | null
trialDays
required
number | null
perSeat
required
Whether the plan is priced per seat
boolean
perSeatLimits
required
Keys of limits multiplied by billed seats; other limits are one pool per workspace
Array<string>
limits
required
Included allowance: extractionCredits, storageGb, mcpDaily (absent means no plan cap)
object
key
additional properties
number
meteredPrices
Usage prices beyond the included pool, keyed by credits and storage
object
key
additional properties
object
priceId
required
string
limit
required
Included allowance in the price itself; null when the plan pool applies
number | null
unitAmount
required
Price per credit, or per GB for storage, in cents
number | null
currency
required
string
Example generated
{ "plans": [ { "name": "example", "monthlyPrice": 1, "annualPrice": 1, "currency": "example", "trialDays": 1, "perSeat": true, "perSeatLimits": [ "example" ], "limits": { "additionalProperty": 1 }, "meteredPrices": { "additionalProperty": { "priceId": "example", "limit": 1, "unitAmount": 1, "currency": "example" } } } ]}Stripe not configured
Media type application/json
object
success
required
boolean
error
required
object
message
required
string
code
required
string
details
Example
{ "success": false, "error": { "code": "INTERNAL_ERROR" }}