# list_workspace_credit_activity

Source: https://modulify.ai/docs/mcp/workspaces/list-workspace-credit-activity

Lists the individual credit charges and refunds of a workspace, newest first, 20 at a time.

- Title: List every credit charge
- Scope: `workspaces:read`
- Access: Read only

Every chat turn, image, video and block of extra emails that spent credits is listed, and so is every refund for work that did not deliver. Credits added to the workspace, from the plan allowance, top ups or rewards, are not listed.

Each item has its `type` (`deduction` or `refund`), its `category` (`building`, `images`, `videos`, `emails` or `other`), the `credits`, the site it was for in `project` and when it happened in `createdAt`. `project` is null when the charge was not tied to a site, and carries `deleted` true when the site no longer exists. A block of emails also has `quantity`, the number of extra sends it unlocked.

`chat` names the chat a charge came from when its site was running several chats at the time, with its `id` and `title`. The chat every site comes with, whose `chatKey` is `main`, has a null `id`. `title` is null once the site is deleted for good or has moved to another workspace, and `chat` is null for every other charge. `member` is the member who sent the message behind the charge, with their `id` and `name`, and `name` is null when that account was deleted. `member` is null for a charge no member ran, such as a block of emails, and for charges from before Modulify recorded who ran them.

Pass `category` to keep one kind of charge and `projectId` to keep one site. Page with the `offset` the previous call returned while `hasMore` is true. See [Credits](https://modulify.ai/docs/plans/credits#see-where-your-credits-went).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `workspaceId` | string | Yes | The workspace id. |
| `category` | string | No | Keeps only one kind of charge: `building`, `images`, `videos`, `emails` or `other`. |
| `projectId` | string | No | Keeps only the charges for one site. |
| `offset` | integer | No | How many charges to skip, taken from the `offset` of the previous call. Defaults to 0. |