---
title: "Fetch trashed resources or accounts"
method: GET
path: "/restapi/json/v1/trash"
tags: ["Resources"]
---

# Fetch trashed resources or accounts

`GET /restapi/json/v1/trash`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/trash`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/trash/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieves a list of resources or accounts that have been moved to trash. Use the `type` field to specify whether to fetch trashed resources or accounts.

## Headers

- `orgName` string

## Response `200`

Trashed items

- GetTrashedAccountsResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `Details` object[]
      - `accountName` string: Name of the account
      - `resourceName` string: Name of the resource
      - `trashId` integer: Unique identifier for the trashed entity
    - `name` string
    - `totalRows` integer

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
