Payment

Get current subscription plan for authenticated user

Returns the current subscription plan details for the authenticated Telegram user, including plan type, expiry, and active subscription status

get/payments/stripe/currentPlan

Request

  • Base URL: https://api.tinyhumans.ai
  • URL: https://api.tinyhumans.ai/payments/stripe/currentPlan
  • Auth: HTTP bearer

Response

Current plan details retrieved successfully

successboolean

Example response

{
  "success": true,
  "data": {
    "plan": "PRO",
    "hasActiveSubscription": true,
    "planExpiry": "2024-12-31T23:59:59.000Z",
    "subscription": {
      "id": "sub_1234567890",
      "status": "active",
      "currentPeriodEnd": "2024-12-31T23:59:59.000Z"
    },
    "credits": {
      "bonusPercent": {
        "monthly": 10,
        "yearly": 20
      }
    }
  }
}

Changes

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