---
title: "Backfill Resolve Agent For Orphan Files"
method: POST
path: "/api/storage/backfill-resolve-agents"
tags: ["storage-backfill"]
---

# Backfill Resolve Agent For Orphan Files

`POST /api/storage/backfill-resolve-agents`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/storage/backfill-resolve-agents`
- Auth: HTTP bearer

Resolve agent_id for storage files that have none, then assign to agent folder.

For chat uploads: match filename in feed messages to find agent.
For users with a single agent: assign all their files to that agent.
Then move all resolved files into agent folders.

## Response `200`

Successful Response

- unknown

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
