---
title: "Get usage metrics for a project"
method: GET
path: "/projects/{id}/usage"
tags: ["Projects"]
---

# Get usage metrics for a project

`GET /projects/{id}/usage`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/usage`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Returns project usage totals for the current usage month plus
recent hourly and daily time series for each tracked metric.

## Path parameters

- `id` string, uuid, required

## Response `200`

Usage metrics retrieved

- ProjectUsageResponse: Aggregated usage metrics for a project.
  - `project_id` string, uuid, required: Project ID
  - `month` string, required: Usage month in YYYY-MM format
  - `metrics` MetricUsageData[], required: Usage metrics for the project
    - `metric` string, required: Metric name (for example, "Function & Frontend Invocations", "Frontend Requests", "Durable Executions", "Durable Operations", "Durable Compute (MB-Seconds)", "Build Seconds", "Bandwidth Ingress (Bytes)", "Bandwidth Egress (Bytes)", "Bandwidth Total (Bytes)", or "Database Storage (Bytes)"). Byte-based metrics are reported in bytes. "Bandwidth Total (Bytes)" is derived (ingress + egress) and is not billed separately. The three durable metrics are counted separately from "Function & Frontend Invocations", which covers standard invocations only. Operations and compute are counted when an execution finishes, so they appear in the window the execution completed in rather than the one it started in. "Durable Compute (MB-Seconds)" reports the memory the execution ran at times the time it spent running, in megabyte-seconds; the allowance for it is published in gigabyte-seconds, which is 1024 of these. "Sandbox Running (MiB-Seconds)", "Sandbox Suspended (Seconds)", and "Sandbox Uncertain (MiB-Seconds)" report cloud Sandbox usage. Running reports configured baseline memory times confirmed runtime, not measured CPU or elastic memory consumption. For sessions admitted after the pricing release, confirmed running time consumes the account's runtime allowance; SUPERAGENT overage debits credits according to the account's pricing terms. Suspended time and uncertain usage do not consume runtime allowance or debit credits. Uncertain includes observation gaps and unconfirmed state transitions. Suspended reports duration, not snapshot size; snapshot costs are included in runtime pricing. Local and platform image-validation sessions do not contribute. Existing preview sessions remain unbilled, and preview history is never charged retroactively. Displayed totals are rounded down after aggregating millisecond measurements; billing uses unrounded measurements in the monthly account billing cycle. "Database Storage (Bytes)" is a current observed gauge, not a cumulative counter. It is the sum of the latest samples exposed as `storage_bytes` by the project's database list, so it includes what each database's branches and backups hold, and it inherits that field's lag behind a live measurement.
    - `total` integer, required: Total usage for the current usage month
    - `all_time` integer, required: Lifetime cumulative usage across every month for this metric
    - `daily` UsageDataPoint[], required: Last 30 days of daily usage points
      - `timestamp` string, date-time, required: UTC timestamp for the data point
      - `value` integer, required: Usage value at the timestamp
    - `hourly` UsageDataPoint[], required: Last 24 hours of hourly usage points
      - `timestamp` string, date-time, required: UTC timestamp for the data point
      - `value` integer, required: Usage value at the timestamp
  - `frontends` FrontendUsageData[]: Per-frontend request totals for the current usage month
    - `frontend_id` string, uuid, required: Frontend ID
    - `frontend_name` string, nullable: Frontend name at the time usage was fetched
    - `requests` integer, required: Total requests for this frontend in the current usage month

## Other responses

- `403`: Access denied
- `404`: Project not found

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 4 breaking, 8 info
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `200`
  - the response's body type changed from no type to `object` for status `403`
  - the response's body type changed from no type to `object` for status `404`
  - …8 more
- **2026-08-27** `bb44e98aba2e`: 8 breaking, 4 warning
  - the response's body type changed from `object` to no type for status `200`
  - the response's body type changed from `object` to no type for status `403`
  - the response's body type changed from `object` to no type for status `404`
  - removed the required property `error` from the response with the `403` status
  - …8 more
- **2026-07-27** `bb52784e098a`: 2 info
  - added the optional property `code` to the response with the `403` status
  - added the optional property `code` to the response with the `404` status

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/usage/get.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
