Get Subscription Usage

Get subscription usage analytics for an organization.

This endpoint provides detailed subscription usage metrics for an organization, showing resource consumption over time.

Parameters: request (Request): The FastAPI request object subscription_request (SubscriptionUsageRequest): Subscription request parameters db (AsyncSession): Database session (injected) organization_id (Optional[int]): Organization ID from the API key or request

Returns: Dict[str, Any]: Subscription usage analytics data for the organization

Raises: HTTPException: - 400: If organization ID is missing - 422: If there's a validation error in the request parameters - 500: If an unexpected error occurs during data retrieval

Language
Credentials
Header
Click Try It! to start a request and see the response here!