---
title: "Close My Account"
method: POST
path: "/api/v1/me/closure"
---

# Close My Account

`POST /api/v1/me/closure`

## Request

- Base URL: `https://trovastorage.it` (the document declares no server; this is the origin it was published from)
- URL: `https://trovastorage.it/api/v1/me/closure`
- Auth: one of:
  - API key in header `X-Access-Token`
  - HTTP bearer

Steps two and three: the reason, and the submission. `deactivate`
switches the account off and deletes nothing; `delete` removes the person
(`services/account_closure.py`). Either way every session of the account
ends here. 409 with a key while something must end first: a tenancy that
is running, a payment outstanding, a team that still has members.

## Request body

- ClosureRequest: Steps two and three: why, and which of the two.
  - `ticket` string, required
  - `action` 'deactivate' | 'delete', required
  - `reason` 'no_longer_needed' | 'found_elsewhere' | 'too_many_messages' | 'privacy' | 'not_satisfied' | 'other', required
  - `note` string, nullable

## Response `200`

Successful Response

- ClosureDone
  - `action` 'deactivate' | 'delete', required
  - `done` true

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/trovastorage/apis/stock-your-inventory.md) · [All operations](https://skmtc.dev/trovastorage/apis/stock-your-inventory/llms.txt) · [OpenAPI document](https://skmtc.dev/trovastorage/apis/stock-your-inventory/revisions/c75f591a585c?raw)
