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
chevron-right
200

Subscription details retrieved successfully

application/json

Represents a user's subscription plan and usage

idstring · uuidRequired

The unique identifier for the subscription

user_idstring · uuidRequired

The ID of the user who owns the subscription

statusstring · enumRequired

The current status of the subscription

Possible values:
plan_namestringOptional

The name of the subscription plan

Example: Pro Plan
generations_limitnumberRequired

Maximum number of generations allowed

Example: 50
generations_usednumberRequired

Number of generations used in current period

Example: 23
pages_limitnumberRequired

Maximum number of pages allowed

Example: 1000
pages_usednumberRequired

Number of pages used in current period

Example: 450
stripe_subscription_idstring · nullableOptional

Stripe subscription identifier

current_period_startstring · date-time · nullableOptional

Start of the current billing period

current_period_endstring · date-time · nullableOptional

End of the current billing period

created_atstring · date-timeRequired

When the subscription was created

updated_atstring · date-timeRequired

When the subscription was last updated

get
/getSubscription

Last updated