Skip to content

List trashed descendants of an organization

Start from the script setup block, then add the snippet code below.

List trashed descendants for the OAuth organization. Requires read:hierarchy.

# ... script setup ...
trash = api_get(
"/v1/trash",
params={"page": "1", "limit": "20", "sortBy": "deletedAt", "sortDir": "DESC"},
)
print(json.dumps(trash, indent=2))