Skip to main content

Get current subscription

GET /api/v1/subscriptions/current
{
  "data": {
    "plan": "pro",
    "status": "active",
    "current_period_end": "2026-04-07T00:00:00Z",
    "cancel_at_period_end": false
  }
}

Available plans

GET /api/v1/subscriptions/plans
{
  "data": [
    {
      "id": "free",
      "name": "Free",
      "price_monthly": 0,
      "features": [
        "Foundation track (6 modules)",
        "AI tutor (limited sessions)",
        "Basic leaderboard"
      ]
    },
    {
      "id": "pro_monthly",
      "name": "Pro Monthly",
      "price_monthly": 29,
      "features": [
        "All 4 career tracks",
        "Unlimited labs and AI tutor",
        "Cohort matching",
        "Peer code reviews",
        "Certificates",
        "Full leaderboard and gamification"
      ]
    },
    {
      "id": "pro_annual",
      "name": "Pro Annual",
      "price_annual": 199,
      "features": [
        "Everything in Pro Monthly",
        "43% saving vs monthly"
      ]
    }
  ]
}

Upgrade

Upgrades are handled via safua.ai/pricing. The API does not expose a direct upgrade endpoint — use the platform billing portal.