Read current subscription and credits

get/api/billing/subscription

Request

  • Base URL: https://api.peelaway.io
  • URL: https://api.peelaway.io/api/billing/subscription
  • Auth: one of:
    • API key in cookie better-auth.session_token
    • HTTP bearer

Response

Account plan, billingInterval (week, legacy month/year, or null), spendable credits (optionally filtered by output_kind=image|video), and shared paidCredits. weeklyIntroEligible reports eligibility for an introductory deal (the Weekly Plan's paid first week or the Yearly Plan's free trial). introWeekOffer is true once an eligible account has declined a plan offer. Legacy trial and Starter offer eligibility remain false. Future grants are excluded.

Changes

No recorded changes to this operation across all 1 revision of this API.