---
title: "Restore a tombstoned agent"
method: POST
path: "/agents/{agent_id}/restore"
tags: ["Agents"]
---

# Restore a tombstoned agent

`POST /agents/{agent_id}/restore`

## Request

- Base URL: `https://api.mnemom.ai/v1`
- URL: `https://api.mnemom.ai/v1/agents/{agent_id}/restore`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Mnemom-Api-Key`
  - API key in cookie `mnemom_session`

Resurrects a tombstoned agent by clearing `deleted_at` — the counterpart to [POST /v1/agents/{agent_id}/tombstone](/api-reference/endpoint/post-agents-agent-id-tombstone). Lets an org owner/admin override a tombstone (e.g. a key agent a dev removed), or a creator undo their own. Authorized for an org owner/admin OR the agent's creator (while still a member of the agent's org). A caller who is not a member of the agent's org gets the same 404 as a missing agent (no existence oracle); an org member who is neither owner/admin nor the creator gets 403. Returns 409 for agents that went through GDPR erasure (`DELETE`), whose data was permanently cascaded away and cannot be restored.

## Path parameters

- `agent_id` string, required

## Response `200`

Agent restored (or already active)

- object
  - `id` string, required
  - `deleted_at` string, date-time, nullable
  - `tombstoned` boolean, required

## Other responses

- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `409`: Agent was permanently erased (GDPR Art.17) and cannot be restored
- `429`: Rate-limit exceeded. The global per-IP limiter (100 requests/minute, applied to every `/v1/*` route) rejected this request. Back off until the window resets — `Retry-After` carries the cooldown in seconds and `X-RateLimit-Reset` the absolute reset time.
- `500`: Server error — request was well-formed but the server failed to fulfill it. Typically a downstream dependency (DB / RPC / external API) returned an unexpected error.

---

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