Skip to main content
GET
Get credit balance
Returns the authenticated user’s current credit balance, monthly tier allocation, and tier details.

Request

includeStats
boolean
default:"false"
Include additional statistics (total earned, spent, etc.)

Response

balance
integer
required
Current available credits
tier
string
required
Current tier key (e.g., “free”, “joi-curious”, “full-access”, “vip”)
tierDisplayName
string
required
Human-readable tier name
monthlyAllocation
integer
required
Credits allocated monthly for this tier
nextRefreshDate
string
ISO timestamp of next monthly credit refresh
stats
object
Additional statistics (only if includeStats=true)

Example Request

Example Response

Response Codes

Notes

  • Balance is checked before any credit-consuming operation
  • Monthly allocations reset on the 1st of each month
  • Free tier users receive 50 credits per month
  • Premium tiers receive larger monthly allocations (1,000 - 5,000)