# Usage Exports

> System API reference, generated from the OpenAPI spec.

Usage Exports provide programmatic access to your organization's billing usage data. The Usage Exports feature must be enabled for your organization in the Mux Dashboard under **Usage > Exports**.

HTML version: https://www.mux.com/docs/api-reference/system/usage-exports. Full OpenAPI spec: https://www.mux.com/api-spec.json

## List usage export CSVs

`GET https://api.mux.com/system/v1/usage/exports`

Lists available billing usage exports for your organization along with pre-signed download URLs, sorted newest first. CSVs are available for dates between 400 days ago and yesterday.

Operation ID: `list-usage-exports`. HTML version: https://www.mux.com/docs/api-reference/system/usage-exports/list-usage-exports

### Query parameters

- `limit` (integer, format: int32, default: 25): Number of items to include in the response
- `page` (integer, format: int32, default: 1): Offset by this many pages, of the size of `limit`
- `timeframe[]` (array of string): Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
- `download_url_ttl` (integer, default: 3600, minimum: 1, maximum: 604800): Lifetime in seconds for the pre-signed download URL.

### Response `200`

OK

- `data` (array of object, required)
  - `date` (string, required, format: date): The calendar date this CSV covers, in `YYYY-MM-DD` format.
  - `file_size` (integer, required, nullable): Uncompressed size of the CSV file in bytes. May be `null` if the size is unavailable.
  - `download_url` (string, required): A pre-signed URL to download the CSV. Valid until `download_url_expires_at`.
  - `download_url_expires_at` (integer, required): Unix timestamp (seconds since epoch) at which `download_url` expires.
- `meta` (object, required)
  - `page` (integer, required): Current page number (1-based).
  - `pages` (integer, required): Total number of pages.
  - `limit` (integer, required): Maximum number of items per page.
  - `total` (integer, required): Total number of available export files matching the query.

### Errors

- `400`: Bad Request – an invalid `timeframe` or `download_url_ttl` value was provided.
- `401`: Unauthorized
- `403`: Forbidden – the Usage CSV Export feature is not enabled for your organization. Enable it in the Mux Dashboard under **Usage > Exports**.
- `404`: Not Found – no usage CSVs exist for the specified `timeframe`.
- `412`: Precondition Failed – one or more usage CSVs for the specified `timeframe` are still being generated. Retry after a short delay.
- `429`: Rate limited
