---
title: "Download aggregated usage data as a CSV."
method: POST
path: "/organizations/{orgId}/dataexplorer/usagedata/download/csv"
tags: ["DataExplorer"]
---

# Download aggregated usage data as a CSV.

`POST /organizations/{orgId}/dataexplorer/usagedata/download/csv`

## Request

- Base URL: `https://api.m3ter.com`
- URL: `https://api.m3ter.com/organizations/{orgId}/dataexplorer/usagedata/download/csv`
- Auth: OAuth 2
  - Authorization code: `https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/authorize`, token URL `https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/token`
  - Client credentials, token URL `/oauth/token`
- TypeScript: <https://skmtc.dev/m3ter-com/apis/m3ter-api/docs/organizations/:orgId/dataexplorer/usagedata/download/csv/post.ts> (a function with typed inputs; its response is checked against the schema)

Download aggregated usage data as a CSV.

## Path parameters

- `orgId` string, required

## Request body

- QueryUsageDataRequest
  - `version` integer: The version number of the entity: - **Create entity:** Not valid for initial insertion of new entity - *do not use for Create*. On initial Create, version is set at 1 and listed in the response. - **Update Entity:** On Update, version is required and must match the existing version because a check is performed to ensure sequential versioning is preserved. Version is incremented by 1 and listed in the response.

## Response `200`

Contains a link to download the file.

- DownloadDataExplorerResponse: Download link for Data Explorer data
  - `downloadUrl` string, url

## Other responses

- `4XX`: Error message
- `5XX`: Error message

## Changes

- **2026-10-16** `85c514abc692`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/m3ter-com/apis/m3ter-api/changes/organizations/:orgId/dataexplorer/usagedata/download/csv/post.md)

---

[API](https://skmtc.dev/m3ter-com/apis/m3ter-api.md) - [All operations](https://skmtc.dev/m3ter-com/apis/m3ter-api/llms.txt) - [OpenAPI document](https://skmtc.dev/m3ter-com/apis/m3ter-api/revisions/85c514abc692?raw)
