---
title: "Resolve Missing Orphans"
method: POST
path: "/v1/mcp/projects/{project_id}/missing-keys/resolve-orphans"
tags: ["mcp"]
---

# Resolve Missing Orphans

`POST /v1/mcp/projects/{project_id}/missing-keys/resolve-orphans`

## Request

- Base URL: `https://api.sonenta.dev`
- URL: `https://api.sonenta.dev/v1/mcp/projects/{project_id}/missing-keys/resolve-orphans`
- Auth: none declared

Drain orphan missing-events (key already exists → resolved) over the MCP
surface (task 745A).

Makes the missing flow self-sufficient: the same cleanup previously required
project:write (`/cleanup-orphans`), unreachable by an `mcp:*` key. Idempotent
— re-running just resolves 0. (list/stats also self-heal on access; this is
the explicit full drain.)

## Path parameters

- `project_id` string, required

## Response `200`

Successful Response

- ResolveOrphansOut
  - `project_uuid` string, required
  - `scanned` integer, required
  - `resolved` integer, required

## Other responses

- `422`: Validation Error

---

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