Skip to main content
GET
/
v1
/
credits
/
balance
Read the current credit balance
curl --request GET \
  --url https://roughy-api-staging.fly.dev/v1/credits/balance \
  --header 'Authorization: Bearer <token>'
{
  "balance": 4585
}

Authorizations

Authorization
string
header
required

Pass your API key as Authorization: Bearer sk_…. Mint a key from your dashboard's API-keys page.

Response

200 - application/json

Spendable balance.

Current credit balance.

balance
integer
required

Spendable credits.