---
title: "Rebuild workspace usage counters"
method: POST
path: "/v1/workspaces/{workspace}/usage/reconcile"
tags: ["Maintenance"]
---

# Rebuild workspace usage counters

`POST /v1/workspaces/{workspace}/usage/reconcile`

## Request

- Base URL: `https://api.uploads.sh`
- URL: `https://api.uploads.sh/v1/workspaces/{workspace}/usage/reconcile`
- Auth: HTTP bearer

Potentially expensive: scans every object in the workspace's active storage lanes and rebuilds the usage ledger. Requires a bearer token with `files:write`; browser sessions are not accepted.

## Response `200`

Reconciliation result and updated usage.

## Other responses

- `401`: Missing or invalid credential.
- `403`: The credential lacks the required scope or role.

---

[API](https://skmtc.dev/uploads/apis/uploads-sh-api.md) · [All operations](https://skmtc.dev/uploads/apis/uploads-sh-api/llms.txt) · [OpenAPI document](https://skmtc.dev/uploads/apis/uploads-sh-api/revisions/6df242babacd?raw)
