Documentation Index
Fetch the complete documentation index at: https://brezelscraper.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/v1/credits/balance
Return the authenticated user’s current credit balance.
Example response
Credit values are returned as decimal strings (e.g.,
"25.123456") to preserve precision. Parse them as decimals, not as floating-point numbers.GET /api/v1/credits/history
Return paginated credit transaction history.
Query parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
page | integer | 1 | Must be positive |
limit | integer | 50 | Max 100 |
type | string | empty | Filter by transaction type |
purchaseconsumptionbonusrefundadjustment
refund_deficit or deficit_paydown in the response history.
Example response
POST /api/v1/credits/checkout-session
Create a Stripe Checkout session to buy credits.
Request body
creditsmust be a whole positive integer- Maximum
creditsper checkout session is10000 currencycurrently supportsUSDonly
Success response
url to complete the purchase.
POST /api/v1/credits/reconcile
Confirm a completed checkout session against the authenticated user.
Request body
204 No Content on success.
Use this after the user returns from Stripe if you want to refresh credits immediately instead of waiting for normal background settlement.
