Get AI Credit Transaction History
Lists recent AI credit reservations/commits/releases for the caller's wallet. Session-authenticated only.
Internal session cookie for local development.
In: cookie
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/billing/credits/history"{ "success": true, "message": "string", "data": [ { "id": "string", "action": "string", "cost": 0, "balanceAfter": 0, "createdAt": "2019-08-24T14:15:22Z" } ]}Get AI Credit WalletGET
Returns the caller's current AI credit balance, reserved amount, and next expiring grant. Session-authenticated only.
Create Subscription Checkout SessionPOST
Creates a hosted Dodo Payments checkout session for a subscription product. `productKey` and `interval` are validated against a fixed whitelist (the product catalog) before being handed off to Dodo — arbitrary product/interval combinations are rejected with `400`. A Redis lock prevents starting a second checkout while one is already in flight. Session-authenticated only; blocked for non-admins in production during the current rollout phase.