Subscription Management

Operations for managing user subscriptions and billing

Get user subscription details

get

Retrieves the current subscription information for the authenticated user

Authorizations
Responses
200

Subscription details retrieved successfully

application/json
get
GET /api/getSubscription HTTP/1.1
Host: 
Authorization: Bearer JWT
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "user_id": "123e4567-e89b-12d3-a456-426614174000",
  "status": "active",
  "plan_name": "Pro Plan",
  "generations_limit": 50,
  "generations_used": 23,
  "pages_limit": 1000,
  "pages_used": 450,
  "stripe_subscription_id": "text",
  "current_period_start": "2025-09-25T10:01:30.954Z",
  "current_period_end": "2025-09-25T10:01:30.954Z",
  "created_at": "2025-09-25T10:01:30.954Z",
  "updated_at": "2025-09-25T10:01:30.954Z"
}