curl --request GET \
--url https://api.example.com/api/credits/balance{
"balance": 123,
"tier": "<string>",
"tierDisplayName": "<string>",
"monthlyAllocation": 123,
"nextRefreshDate": "<string>",
"stats": {
"totalEarned": 123,
"totalSpent": 123,
"lifetimeBalance": 123
}
}Retrieve the current user’s credit balance and tier information
curl --request GET \
--url https://api.example.com/api/credits/balance{
"balance": 123,
"tier": "<string>",
"tierDisplayName": "<string>",
"monthlyAllocation": 123,
"nextRefreshDate": "<string>",
"stats": {
"totalEarned": 123,
"totalSpent": 123,
"lifetimeBalance": 123
}
}curl https://your-domain.com/api/credits/balance \
-H "Cookie: connect.sid=your-session-cookie"
{
"balance": 127,
"tier": "joi-curious",
"tierDisplayName": "JOI-Curious",
"monthlyAllocation": 1000,
"nextRefreshDate": "2026-04-01T00:00:00.000Z"
}
| Code | Description |
|---|---|
| 200 | Success - Returns credit balance |
| 401 | Unauthorized - User not authenticated |
| 500 | Server error |