Get My Subscription
Stripe Subscriptions
Get My Subscription
Get the current user’s active Stripe subscription for the project
GET
Get My Subscription
Retrieve the current authenticated user’s active subscription for the project. Use this to display subscription status in your application.Documentation Index
Fetch the complete documentation index at: https://devkit4ai.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
This endpoint requires end user authentication via HTTP Bearer Token with project scope.
Query Parameters
Use test mode data. Set to
false for production subscriptions.Response
Returns the subscription object if active, ornull if no subscription exists.
Internal subscription record ID
Project the subscription belongs to
User who owns the subscription
Whether this is a test mode subscription
Stripe subscription ID (e.g.,
sub_ABC123)Stripe customer ID
Subscription status:
active, trialing, past_due, canceled, incompleteName of the subscribed plan
Number of subscription seats/units
Start of current billing period
End of current billing period (renewal date)
Scheduled cancellation date (if set)
When cancellation was requested
When subscription was created
Example Request
Example Response
Active Subscription
No Subscription
Subscription Status Flow
Integration Example
Common Use Cases
| Use Case | Implementation |
|---|---|
| Show upgrade button | Check if subscription is null |
| Display plan name | Use subscription.plan_name |
| Show renewal date | Format current_period_end |
| Warn about cancellation | Check if cancel_at is set |
| Handle payment issues | Check for past_due status |
Error Responses
| Status | Description |
|---|---|
401 | Unauthorized - Invalid or missing authentication |
404 | Project not found or Stripe not configured |
Related Pages
Create Checkout
Start a new subscription
Cancel Subscription
Cancel user’s subscription
Update Subscription
Change subscription plan
Customer Portal
Let user manage billing
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
Use test mode
Response
StripeSubscriptionResponse · object | null
Successful Response
Stripe subscription details.

