POST /credits/checkout
This endpoint creates a Stripe checkout session to allow a user to purchase a credit package. Requires session-based authentication (JWT access token from login).For third-party integrations: Use
POST /credits/checkout/api with API Key authentication instead.Request Body
The ID of the credit package to purchase. Get available packages from
/credits/packages.The URL to redirect to after a successful purchase. Defaults to dashboard with success indicator.
The URL to redirect to if the purchase is canceled. Defaults to dashboard with canceled indicator.
Response
POST /credits/checkout/api
This endpoint creates a Stripe checkout session using API Key authentication. Ideal for third-party integrations and external applications.Authentication
Requires API Key authentication. Include your API key in theAuthorization header:
Request Body
Same as/credits/checkout above.
Response
Same as/credits/checkout above.