Subscription Management
Operations for managing user subscriptions and billing
Retrieves the current subscription information for the authenticated user
JWT token for user session authentication.
Subscription details retrieved successfully
Represents a user's subscription plan and usage
The unique identifier for the subscription
The ID of the user who owns the subscription
The current status of the subscription
The name of the subscription plan
Pro PlanMaximum number of generations allowed
50Number of generations used in current period
23Maximum number of pages allowed
1000Number of pages used in current period
450Stripe subscription identifier
Start of the current billing period
End of the current billing period
When the subscription was created
When the subscription was last updated
Unauthorized
No active subscription found
Internal Server Error
GET /api/getSubscription HTTP/1.1
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": "2026-01-01T00:00:00.000Z",
"current_period_end": "2026-01-01T00:00:00.000Z",
"created_at": "2026-01-01T00:00:00.000Z",
"updated_at": "2026-01-01T00:00:00.000Z"
}Last updated
