Skip to main content
POST
Upgrade to pay as you go

Authorizations

Authorization
string
header
required

Access token issued by WorkOS AuthKit.

Body

application/json
checkout_session
string
required

The Checkout session Stripe returned with

Minimum string length: 1

Response

Successful Response

plan
enum<string>
required
Available options:
free,
paygo
max_environment_seconds
integer | null
required

How long an environment may run, or null for no limit

max_parallel_twins
integer | null
required

How many twins may run at once, or null for no limit

ai_generation_enabled
boolean
required

Whether seeds, generated tests and evaluators can be built

active_twins
integer
required

Twins currently asked to run

ready
boolean
required

Whether the billing account is set up; plan changes wait for it

upgrade_available
boolean
required

Whether this deployment can take a card for pay as you go

remaining_credit_cents
number | null

Spendable USD credit after current draft invoice deductions. Null while billing is unreachable or not yet set up.

invoice
InvoicePreview · object | null

The draft invoice for the current period, updated as usage arrives. Null while billing is unreachable or not yet set up.