Billing

Get current credit balance for the authenticated user.

Authenticate with either a Cognito JWT or an sk-… API key.

Returns:

  • paid: Paid bucket balance (posted, holds, available)
  • staking: Staking bucket balance (daily amount, refresh date, available)
  • total_available: Sum of all available credits
get/api/v1/billing/balance

Request

  • The document declares no server URL.
  • Auth
    • OAuth 2
      Authorization codehttps://auth.mor.org/oauth2/authorize
      Token URLhttps://auth.mor.org/oauth2/token
      Scopesaws.cognito.signin.user.admin, openid, email, profile
    • or HTTP bearer

Response

Successful Response

total_availablestring required

Total available credits (paid + staking)

is_stakerboolean

True if user has linked wallets with active MOR stake.

allow_overageboolean

Stakers only. When enabled, the system automatically uses your paid Credit Balance after the Daily Staking Allowance is exhausted, preventing service interruption. When disabled, requests will fail once staking credits are depleted. This setting has no effect for non-stakers.

currencystring

Currency code

Changes