---
title: "The documents the caller may restore: their personal Trash and every joined team Trash, newest first."
method: GET
path: "/trash"
tags: ["Trash"]
---

# The documents the caller may restore: their personal Trash and every joined team Trash, newest first.

`GET /trash`

## Request

- Base URL: `https://www.livediagram.app/api`
- URL: `https://www.livediagram.app/api/trash`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-Owner-Id`

## Response `200`

Success.

- object
  - `trash` TrashedDocument[], required
    - `id` string, required
    - `name` string, required
    - `purgeAt` number, required
    - `reason` 'deleted' | 'empty', required
    - `teamId` string, nullable, required
    - `teamName` string, nullable, required
    - `trashedAt` number, required

## Other responses

- `400`: Error.
- `401`: Error.
- `429`: Rate limited. Back off and retry.

---

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