Subscription Management
Operations for managing user subscriptions and billing
Retrieves the current subscription information for the authenticated user
Authorizations
Responses
200
Subscription details retrieved successfully
application/json
401
Unauthorized
application/json
404
No active subscription found
application/json
500
Internal Server Error
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-07-17T11:05:59.740Z",
"current_period_end": "2025-07-17T11:05:59.740Z",
"created_at": "2025-07-17T11:05:59.740Z",
"updated_at": "2025-07-17T11:05:59.740Z"
}