Overview
Retrieve your current credit balance and recent transaction history. This endpoint requires Cognito authentication (web app) - for API key users, check your balance in the web dashboard.This endpoint is authenticated via Cognito (web app session). API key users should check their balance at trybijou.com/profile.
Request
Method:GET
Path: /user/credits
Auth: Cognito JWT (web app)
Response
Current credit balance
List of recent credit transactions (up to 10)
Transaction Object
Unique transaction identifier
Unix timestamp of the transaction
Transaction type:
"credit" (added) or "debit" (used)Number of credits added or deducted
Description of the transaction (e.g.,
"api_detect", "stripe_purchase")Example Response
Credit Costs
| Action | Cost |
|---|---|
API detection (/api/detect) | 1 credit |
Web detection (/detect) | Free (5/day limit) |
| Presigned upload | Free |
Purchasing Credits
Credits can be purchased at trybijou.com/profile.| Package | Price | Credits |
|---|---|---|
| Starter | $10 | 1,000 |
| Pro | $20 | 2,000 |
| Enterprise | $50 | 5,000 |
1 credit = $0.01 = 1 API detection
Checking Balance in Code
While the/user/credits endpoint requires web authentication, the SDK will automatically receive a BijouInsufficientCreditsError when you run out of credits: