---
title: "Get workspace usage"
method: GET
path: "/v1/workspaces/{workspace_id}/usage"
tags: ["Workspaces"]
---

# Get workspace usage

`GET /v1/workspaces/{workspace_id}/usage`

Creative Units balance plus total and per-day consumption over the last `days` days.

## Path parameters

- `workspace_id` string, uuid, required — Id of the workspace that owns the resource.

## Query parameters

- `days` integer — How many days back to report.

## Response `200`

Successful Response

- WorkspaceUsageOutput
  - `balance_creative_units` number, required — Current Creative Units balance.
  - `reserved_creative_units` number, required — Creative Units reserved by in-flight generations.
  - `available_creative_units` number, required — Balance minus reserved: what's spendable right now.
  - `period_start` string, required — Start of the reported window (UTC date).
  - `period_end` string, required — End of the reported window (UTC date).
  - `total_creative_units` number, required — Total Creative Units consumed over the window.
  - `daily` DailyUsage[], required — Per-day Creative Units consumption over the window, oldest first.
    - `date` string, required — Calendar day (UTC), ISO format YYYY-MM-DD.
    - `creative_units` number, required — Creative Units consumed on this day across all models.

## Other responses

- `401` — Unauthenticated — missing or invalid Bearer token.
- `403` — Forbidden — insufficient permissions, or the access token lacks the scope the operation requires.
- `404` — Resource not found.
- `409` — The request with this `Idempotency-Key` is still running — retry after the number of seconds in `Retry-After`.
- `422` — Invalid input parameters, or an `Idempotency-Key` reused for a different request.
- `429` — Rate limited — retry after the number of seconds in `Retry-After`.
- `500` — Internal server error.

---

[API](https://skmtc.dev/layer/apis/layer-rest-api.md) · [All operations](https://skmtc.dev/layer/apis/layer-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/layer/layer-rest-api/revisions/fafc779f9ba2/schema)
