> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/stackai-mcp/tool-reference/runs-and-audit-logs/audit-logs-list.md).

# audit\_logs\_list

Review organization activity, such as configuration changes and access decisions.

**Effect:** This call reads data and does not run or change a project.

## Inputs

| Name             | Type    | Requirement | Description                                                                                                          |
| ---------------- | ------- | ----------- | -------------------------------------------------------------------------------------------------------------------- |
| `user_id`        | string  | Optional    | Filter to a single acting member's id.                                                                               |
| `action`         | string  | Optional    | Filter by action verb (e.g. `"export"`, `"delete"`, `"update"`, `"run"`).                                            |
| `resource_type`  | string  | Optional    | Filter by resource type (e.g. `"projects"`).                                                                         |
| `permission_key` | string  | Optional    | Filter by permission key (e.g. `"org.members.remove"`).                                                              |
| `decision`       | string  | Optional    | Filter by decision (`"allow"` / `"deny"`).                                                                           |
| `date_from`      | string  | Optional    | ISO-8601 lower bound (inclusive) on `created_at`.                                                                    |
| `date_to`        | string  | Optional    | ISO-8601 upper bound (inclusive) on `created_at`.                                                                    |
| `search`         | string  | Optional    | Search text; omit to avoid a text filter.                                                                            |
| `cursor`         | string  | Optional    | Opaque `pagination.next_cursor` from the preceding page. Omit for the first page; preserve the resource and filters. |
| `page_size`      | integer | Optional    | Results per page. Default 50; maximum 200. Minimum 1.                                                                |

## Example

These are MCP tool arguments, not an HTTP request body. Replace bracketed IDs with values returned from your account.

```json
{
  "decision": "deny",
  "page_size": 25
}
```

## Result

Abbreviated result example; unshown fields are omitted for clarity.

```json
{
  "logs": [
    {
      "id": "<entry-id>",
      "user_id": "<user-id>",
      "action": "update",
      "resource_type": "projects",
      "resource_id": "<project-id>",
      "decision": "deny"
    }
  ]
}
```

## Behavior

Exact-match filters combine with AND; search is free text. date\_from/date\_to use ISO-8601, include both boundaries, and require date\_from < date\_to.

Results include actor, action, resource and decision.

Use runs\_list/runs\_get for execution history instead.

## Troubleshooting

Confirm `org.audit.read` access. Exact-match filters combine with AND; use separate requests for alternative actions or decisions.

## Related resources

[Runs and audit logs](https://docs.stackai.com/stackai-mcp/tool-reference/runs-and-audit-logs.md)

[Connection, permissions, pagination, and recovery](https://docs.stackai.com/stackai-mcp/best-practices-and-troubleshooting.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/stackai-mcp/tool-reference/runs-and-audit-logs/audit-logs-list.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
