v48

latestOpenAPI 3.1.0raw.githubusercontent.com2026-05-275867561.6 MB
orgs

Export Granular Usage Csv

Export granular usage data as CSV.

Returns the same data as the granular-usage endpoint but formatted as a downloadable CSV file. Only workspaces the user has read access to will be included in the results.

get/api/v1/orgs/current/billing/granular-usage/export

Query parameters

start_timestring date-time required
end_timestring date-time required
workspace_idsstring[] required
group_by'user' | 'api_key' | 'project' | 'workspace'

Dimensions for grouping granular usage data.

Response

Successful Response

{"stackTrail":"paths:/api/v1/orgs/current/billing/granular-usage/export:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}