---
title: "Backfill Files"
method: POST
path: "/api/files/backfill"
tags: ["files"]
---

# Backfill Files

`POST /api/files/backfill`

Manually trigger file backfill to sync filesystem with database.

This is a maintenance operation that scans the filesystem and creates
database records for any unregistered files. Only available to admins.

## Response `200`

Successful Response

- object

---

[API](https://skmtc.net/xorbitsai/apis/xagent.md) · [All operations](https://skmtc.net/xorbitsai/apis/xagent/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/xorbitsai/xagent/revisions/33e4ba4936ad/schema)
