---
title: "Export Granular Usage Csv"
method: GET
path: "/api/v1/orgs/current/billing/granular-usage/export"
tags: ["orgs"]
---

# Export Granular Usage Csv

`GET /api/v1/orgs/current/billing/granular-usage/export`

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.

## Query parameters

- `start_time` string, date-time, required
- `end_time` string, date-time, required
- `workspace_ids` string[], required
- `group_by` 'user' | 'api_key' | 'project' | 'workspace' — Dimensions for grouping granular usage data.

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/langchain-ai/apis/langsmith.md) · [All operations](https://skmtc.dev/langchain-ai/apis/langsmith/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/langchain-ai/langsmith/revisions/a0acb3a6a101/schema)
