Subscription Management

Operations for managing user subscriptions and billing

Get user subscription details

get

Retrieves the current subscription information for the authenticated user

Authorizations
AuthorizationstringRequired

JWT token for user session authentication.

Responses
200

Subscription details retrieved successfully

application/json
get
/getSubscription
GET /api/getSubscription HTTP/1.1
Host: 
Authorization: Bearer YOUR_SECRET_TOKEN
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-12-06T13:44:23.021Z",
  "current_period_end": "2025-12-06T13:44:23.021Z",
  "created_at": "2025-12-06T13:44:23.021Z",
  "updated_at": "2025-12-06T13:44:23.021Z"
}