Get the current subscription status for a tenant.
curl "https://api.crovver.com/api/public/subscriptions/status?publicKey=pk_live_...&tenantId=workspace_123"
{
"success": true,
"data": {
"active": true,
"status": "active",
"tenant": { "id": "ten_abc", "name": "Acme Corp", "isActive": true },
"subscription": {
"id": "sub_xyz",
"status": "active",
"currentPeriodStart": "2025-01-01T00:00:00Z",
"currentPeriodEnd": "2025-02-01T00:00:00Z",
"capacityUnits": 15,
"usedCapacity": 12
},
"plan": {
"id": "plan_pro",
"name": "Pro",
"billingInterval": "monthly",
"features": ["advanced_analytics", "api_access"],
"limits": { "api_calls": 10000 }
}
}
}
pk_live_... or pk_test_...)Show child attributes
active, trialing, past_due, canceled, expired, nonecurl "https://api.crovver.com/api/public/subscriptions/status?publicKey=pk_live_...&tenantId=workspace_123"
{
"success": true,
"data": {
"active": true,
"status": "active",
"tenant": { "id": "ten_abc", "name": "Acme Corp", "isActive": true },
"subscription": {
"id": "sub_xyz",
"status": "active",
"currentPeriodStart": "2025-01-01T00:00:00Z",
"currentPeriodEnd": "2025-02-01T00:00:00Z",
"capacityUnits": 15,
"usedCapacity": 12
},
"plan": {
"id": "plan_pro",
"name": "Pro",
"billingInterval": "monthly",
"features": ["advanced_analytics", "api_access"],
"limits": { "api_calls": 10000 }
}
}
}
curl "https://api.crovver.com/api/public/subscriptions/status?publicKey=pk_live_...&tenantId=workspace_123"
{
"success": true,
"data": {
"active": true,
"status": "active",
"tenant": { "id": "ten_abc", "name": "Acme Corp", "isActive": true },
"subscription": {
"id": "sub_xyz",
"status": "active",
"currentPeriodStart": "2025-01-01T00:00:00Z",
"currentPeriodEnd": "2025-02-01T00:00:00Z",
"capacityUnits": 15,
"usedCapacity": 12
},
"plan": {
"id": "plan_pro",
"name": "Pro",
"billingInterval": "monthly",
"features": ["advanced_analytics", "api_access"],
"limits": { "api_calls": 10000 }
}
}
}