---
title: "Create a usage report export"
method: POST
path: "/enterprises/{enterprise}/settings/billing/reports"
tags: ["billing"]
---

# Create a usage report export

`POST /enterprises/{enterprise}/settings/billing/reports`

Initiates the generation of a usage report export for an enterprise. The report will be processed asynchronously
and can be downloaded once completed. The authenticated user must be an enterprise admin or billing manager.

## Path parameters

- `enterprise` string, required

## Request body

- UsageReportExportRequest
  - `report_type` 'detailed' | 'summarized' | 'premium_request' | 'ai_credit', required — The type of usage report to generate
  - `start_date` string, date, required — The start date for the report in YYYY-MM-DD format
  - `end_date` string, date — The end date for the report in YYYY-MM-DD format. Defaults to today (UTC) if not provided.
  - `send_email` boolean — Whether to send an email notification to the requester when the report is ready. Defaults to false.

## Response `202`

Report export request accepted

- UsageReportExport
  - `id` string, uuid, required — Unique identifier for the usage report export
  - `report_type` 'detailed' | 'summarized' | 'premium_request' | 'ai_credit', required — The type of usage report
  - `start_date` string, date, required — The start date for the report
  - `end_date` string, date, required — The end date for the report
  - `status` 'processing' | 'completed' | 'failed', required — The current status of the report export
  - `download_urls` string[] — URLs to download the completed report. Only present when the report status is `completed`.
  - `created_at` string, date-time — When the report export was created
  - `actor` string — The login of the user who requested the export

## Other responses

- `400` — Bad Request
- `401` — Requires authentication
- `403` — Forbidden
- `404` — Resource not found
- `500` — Internal Error
- `503` — Service unavailable

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
