Management
Create a Stripe Checkout session
Returns a hosted checkout URL for the chosen credit package. The card is saved for auto top-up.
Authorization
BearerAuth AuthorizationBearer <token>
Clerk session token (dashboard/management routes). In local dev mode use the X-Dev-User header instead.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/manage/billing/checkout" \ -H "Content-Type: application/json" \ -d '{ "packageId": "growth" }'{ "url": "string"}{ "error": { "code": "invalid_api_key", "message": "The provided API key is invalid or has been revoked." }}{ "error": { "code": "invalid_api_key", "message": "The provided API key is invalid or has been revoked." }}{ "error": { "code": "invalid_api_key", "message": "The provided API key is invalid or has been revoked." }}