---
title: "Recover orphaned in-progress tasks for an agent"
method: POST
path: "/api/active-sessions/recover-orphaned-tasks"
tags: ["Active Sessions"]
---

# Recover orphaned in-progress tasks for an agent

`POST /api/active-sessions/recover-orphaned-tasks`

## Request body

- object
  - `agentId` string, required
  - `minAgeSeconds` integer

## Response `200`

Recovery result

---

[API](https://skmtc.dev/desplega-ai/apis/agent-swarm-api.md) · [All operations](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/llms.txt) · [OpenAPI document](https://skmtc.dev/desplega-ai/apis/agent-swarm-api/revisions/4f62e32be8ec?raw)
