---
title: "Tombstone (reversible soft-delete) an agent"
method: POST
path: "/agents/{agent_id}/tombstone"
tags: ["Agents"]
---

# Tombstone (reversible soft-delete) an agent

`POST /agents/{agent_id}/tombstone`

## Request

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

Soft-deletes an agent: sets `deleted_at` so it disappears from the org fleet/dashboard while KEEPING all data (traces, checkpoints, proofs) for audit. Reversible via [POST /v1/agents/{agent_id}/restore](/api-reference/endpoint/post-agents-agent-id-restore). Distinct from `DELETE /v1/agents/{agent_id}`, which is the irreversible GDPR Art.17 erasure cascade. Authorized for an org owner/admin of the agent's org OR the agent's own creator (while still a member of that 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. Idempotent: tombstoning an already-tombstoned agent returns 200.

## Path parameters

- `agent_id` string, required

## Response `200`

Agent tombstoned (or already tombstoned)

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

## Other responses

- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `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)
