# List Trash `GET https://api.getprospect.com/v2/trash` Lists the deleted people, companies or lists (`kind`) of the workspace, newest first, for the 90 days they can be restored. `search` is a case-insensitive name prefix, `since` a lower bound on the deletion date; `per_page` up to 100. Free; a `poll` (0 rate-limit units, per-second window only). ## Authentication Pass your API key in the `x-api-key` header. ## Query parameters - `kind` (enum, required): Which Trash tab: deleted people, companies or lists. Allowed values: `person`, `company`, `list`. - `search` (string, optional, max length: 200): Name prefix, case-insensitive. - `since` (string, optional): Only rows deleted at or after this ISO date (a single lower bound). - `page` (integer, optional, min: 1, default: 1): The page, 1-based. Past the end: `[]` with the totals. - `per_page` (integer, optional, min: 1, max: 100, default: 25): Rows per page. ## Example request ```bash curl --request GET \ --url https://api.getprospect.com/v2/trash \ --header 'Content-Type: application/json' \ --header 'x-api-key: YOUR_API_KEY' ``` ## Response 200 One page of Trash rows (`data`), newest first, and the page window (`metadata.pagination`). ```json { "success": true, "data": [ { "id": "66ff0d2e3a4b5c6d7e8f9001", "kind": "person", "name": "Ana Silva", "detail": "VP Sales @ Acme", "lists": [ { "id": "66fe1b2c3d4e5f6a7b8c9d0e", "name": "Fintech VPs", "deleted": false } ], "deleted_by": { "id": "5f8d0d55b54764421b7156c9", "name": "Dana Reyes" }, "deleted_at": "2026-10-05T09:00:00.000Z", "expires_at": "2027-01-03T09:00:00.000Z", "cascade_of_list": null } ], "metadata": { "timestamp": "2026-10-05T09:00:00.000Z", "pagination": { "page": 1, "per_page": 25, "total_pages": 1, "total_count": 1 } } } ``` ## Response 400 Invalid query (`VALIDATION_ERROR`; `payload.code` says which kind of mistake). ```json { "success": false, "data": null, "metadata": { "timestamp": "2026-10-05T09:00:00.000Z" }, "errors": [ { "name": "VALIDATION_ERROR", "message": "per_page must not be greater than 100", "payload": { "field": "per_page", "code": "out_of_range", "received_value": 500, "received_type": "number", "constraints": { "max": "per_page must not be greater than 100" } } } ] } ``` ## Response 401 Missing, unknown or inactive credentials (`UNAUTHORIZED`). ## Response 429 Over the `poll` rate limit (`RATE_LIMIT`); wait `Retry-After` seconds. ## Response 500 Unexpected server error.