---
title: activity_list
description: >-
  Lists who moved something to the trash, restored, changed, or shared something in the company, through which agent, and when.
---

| Tool | Type | Description |
| :-- | :-- | :-- |
| `activity_list` | read | Requires `files:read`. Lists the company's activity, from newest to oldest: `at`, the member (`userId`), the agent or app that acted (`agent`), the `operation`, the result (`outcome`, `errorCode`), and the target (`target`). Deletion at the end of the 30 days in the trash appears as `expireTrash`, with `userId: "system"`. A view or snapshot created with `sql_write` appears as `sql_create`, and a removed one as `sql_drop`, with the `CREATE` in `target.name` and the source files in `target.records`, so you can recreate it; removing an object created more than 90 days ago, or before this log, carries only its name. Filter by `targetId`, `userId`, `operation`, `from`, and `to` (ISO dates) and paginate with `before: next`. Covers the last 90 days. |
