Get active subscriptions for a project
Returns all active subscriptions (manual and product-based) for a project as of the current date.
What are Active Subscriptions? Active subscriptions combine:
- Manual subscriptions: Fixed price and variable price subscriptions configured directly for the project
- Product subscriptions: Products with subscription pricing from the billing version/snapshot (for Single projects) or current products (for Support projects)
Project Type Behavior:
- Single Projects: Uses products from the billing version/snapshot (productsBillingProjectSnapshotId or billingProjectSnapshotId)
- Support Projects: Uses current products (no snapshot)
What is returned:
- Only subscriptions that are currently active (activeFrom <= now <= activeTo)
- Each subscription includes: name, activeFrom date, activeTo date, priceSubscription, pricePerUnit
- Manual subscriptions: name comes from manualTitle, dates from fromDate/toDate
- Product subscriptions: name comes from finalName, dates from activeFrom/activeTo
Note: Requires project access permission.
GET
/projects/{id}/active-subscriptionsAuthorization
AuthorizationOAuth2 access token · headerrequiredScopes:
api:reador
AuthorizationBearer token (JWT) · headerrequiredPath parameters
idstringrequiredResponses
200Active subscriptions retrieved successfully
401Unauthorized - Invalid or missing authentication token
403Forbidden - Insufficient API scopes or permissions
404Project not found or access denied
Request
curl -X GET "https://leadtime.app/api/public/projects/string/active-subscriptions" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"const response = await fetch("https://leadtime.app/api/public/projects/string/active-subscriptions", {
method: "GET",
headers: {
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
}
});import requests
response = requests.get(
"https://leadtime.app/api/public/projects/string/active-subscriptions",
headers={
"Authorization": "Bearer YOUR_ACCESS_TOKEN"
},
)Response
Active subscriptions retrieved successfully
Unauthorized - Invalid or missing authentication token
Forbidden - Insufficient API scopes or permissions
Project not found or access denied