Start a Stripe checkout for a plan or a credit pack.
POST
/api/billing/checkout
const url = 'https://app.agentic.figentra.com/api/billing/checkout';const options = { method: 'POST', headers: {cookie: 'session=<session>', 'Content-Type': 'application/json'}, body: '{"kind":"plan","plan":"free"}'};
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://app.agentic.figentra.com/api/billing/checkout \ --header 'Content-Type: application/json' \ --cookie session=<session> \ --data '{ "kind": "plan", "plan": "free" }'Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Responses
Section titled “Responses”OK
Media typeapplication/json
object
url
required
string format: uri
Example generated
{ "url": "https://example.com"}default
Section titled “default”Error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
details
object
key
additional properties
Example generated
{ "error": { "code": "example", "message": "example", "details": { "additionalProperty": "example" } }}