Skip to main content
POST
Start Stripe Checkout to buy credits (API key)

Authorizations

Authorization
string
header
default:Bearer sk_live_…
required

Bearer sk_live_… (include the Bearer prefix)

Body

application/json
packageId
string
required

Credit package UUID to purchase

Response

Checkout session created

url
string
required

Open this URL in a browser to complete payment

Example:

"https://checkout.stripe.com/c/pay/cs_test_…"

sessionId
string
required

Pass to POST /api/v1/credits/checkout/confirm after payment

Example:

"cs_test_a1b2c3"