Create top up session
Create a Stripe checkout session for a one-off credit top-up and return the session URL for a human to complete payment in a browser. No charge happens on this call; credits are granted only after Stripe confirms payment. Check getCreditBalance first to see whether a top-up is actually needed.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Organization id (UUID). Discover ids via the list organizations endpoint or the agent context.
Body
One-time credit purchase amount in decimillicents (10000000 decimillicents = $1, so 100000 = 1 cent); min 100000 ($0.01), max 5000000000 ($500).
100000 <= x <= 5000000000200000000
http(s) URL Stripe redirects the user to after a successful checkout.
^https?:\/\/"https://app.octospark.ai/billing?topup=success"
http(s) URL Stripe redirects the user to when they abandon the checkout.
^https?:\/\/"https://app.octospark.ai/billing?topup=cancelled"