Skip to main content
POST
/
organization
/
{organizationId}
/
billingUsageReport
Generate organization billing usage report
curl --request POST \
  --url https://api.qovery.com/organization/{organizationId}/billingUsageReport \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "from": "2020-01-01T00:00:00.000Z",
  "to": "2020-01-31T23:59:59.000Z",
  "report_expiration_in_seconds": 3600
}'
{
  "report_url": "<string>",
  "delete_report_url": "<string>"
}

Authorizations

Authorization
string
header
required

Token API are generated by Qovery to manage machine to machine interaction and do not have a TTL. Prefix your token with "Token ". Curl Example: curl https://console.qovery.com/organization -H "Authorization: Token $qovery_token"

Path Parameters

organizationId
string<uuid>
required

Organization ID

Body

application/json
from
string<date-time>
required

The start date of the report

Example:

"2020-01-01T00:00:00.000Z"

to
string<date-time>
required

The end date of the report

Example:

"2020-01-31T23:59:59.000Z"

report_expiration_in_seconds
integer
required

The number of seconds the report will be publicly available

Example:

3600

Response

billing usage report has been successfully generated

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