---
title: "Generate organization billing usage report"
method: POST
path: "/organization/{organizationId}/billingUsageReport"
tags: ["Billing"]
---

# Generate organization billing usage report

`POST /organization/{organizationId}/billingUsageReport`

## Request

- Base URL: `https://api.qovery.com`
- URL: `https://api.qovery.com/organization/{organizationId}/billingUsageReport`
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/qovery/apis/qovery-api/docs/organization/:organizationId/billingUsageReport/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `organizationId` string, uuid, required

## Request body

- OrganizationBillingUsageReportRequest
  - `from` string, date-time, required: The start date of the report
  - `to` string, date-time, required: The end date of the report
  - `report_expiration_in_seconds` integer, required: The number of seconds the report will be publicly available

## Response `200`

billing usage report has been successfully generated

- OrganizationBillingUsageReportResponse
  - `report_url` string: The URL of the report
  - `delete_report_url` string: The URL to delete the report. Use this URL to pro-actively delete the report before it expires

## Other responses

- `400`: Bad request
- `401`: Access token is missing or invalid
- `403`: Access forbidden
- `404`: Resource not found

---

[API](https://skmtc.dev/qovery/apis/qovery-api.md) - [All operations](https://skmtc.dev/qovery/apis/qovery-api/llms.txt) - [OpenAPI document](https://skmtc.dev/qovery/apis/qovery-api/revisions/93c4960a44ba?raw)
