/billing
Get Monthly Usage Endpoint
Changed onGet monthly usage data for a tenant with validation for year and month parameters.
Args: request: Request object containing year and month with validation user_context: User context with tenant admin permissions resource_id: Optional[UUID]. If provided, get usage data for a specific resource. Otherwise, get aggregated usage data across all resources.
Returns: Monthly usage records for the specified month and year
get/billing/usages/monthly
Request
- Base URLhttps://api.contextual.ai/v1
- URLhttps://api.contextual.ai/v1/billing/usages/monthly
- AuthHTTP bearer
Query parameters
yearinteger required
monthinteger required
resource_idstring uuid nullable
Response
Successful Response
Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking