---
title: "Apply Storage Reconcile Route"
method: POST
path: "/api/storage/reconcile"
tags: ["Files"]
---

# Apply Storage Reconcile Route

`POST /api/storage/reconcile`

## Request

- Base URL: `https://api.agentstack.tech` (the document declares no server; this is the origin it was published from)
- URL: `https://api.agentstack.tech/api/storage/reconcile`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Apply disk↔8DNA fixes for the resolved row (dry_run default true).

## Query parameters

- `project_id` integer, nullable
- `scope` 'user' | 'project': user = member row (P, caller); project = project row (P, 0).

## Headers

- `Idempotency-Key` string

## Request body

- StorageReconcileBody
  - `delete_disk_orphans` boolean
  - `purge_dna_ghosts` boolean
  - `index_disk_orphans` boolean
  - `recalculate_quota` boolean
  - `dry_run` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `422`: Validation Error
- `429`: Too Many Requests
- `500`: Internal Server Error

---

[API](https://skmtc.dev/agentstack/apis/agentstack-core-api.md) · [All operations](https://skmtc.dev/agentstack/apis/agentstack-core-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agentstack/apis/agentstack-core-api/revisions/8ecf3406e74a?raw)
