---
title: "listAgentAudit"
---

> Documentation Index
> Fetch the complete documentation index at: https://agenthold.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# listAgentAudit

Path: agenthold API › sharing

`GET /agents/{agentId}/audit`

URL: `/api/v1/agents/{agentId}/audit`

Who did what to this agent (agent admin). Newest first.

## Authentication

Requires one of the following:

- `session`, apiKey, in cookie
- `token`, http bearer, header `Authorization`

## Path parameters

- `agentId` (`listAgentAudit.path.agentId`; string, required)

## Query parameters

- `before` (`listAgentAudit.query.before`; integer, optional)
  - format: `int64`
- `limit` (`listAgentAudit.query.limit`; integer, optional)
  - maximum: `500` · minimum: `1`

## Code samples

### cURL

```bash
curl --request GET \
  --url '<base-url>/api/v1/agents/<agentId>/audit' \
  --cookie 'agenthold_session=<agenthold_session>'
```

### TypeScript

```typescript
const url = '<base-url>/api/v1/agents/<agentId>/audit';
const options = {
  method: 'GET',
  headers: {cookie: 'agenthold_session=<agenthold_session>'}
};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "<base-url>/api/v1/agents/<agentId>/audit"

headers = {"cookie": "agenthold_session=<agenthold_session>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Audit entries.

#### Example

```json
[
  {
    "id": 0,
    "at": "2019-08-24T14:15:22Z",
    "user": {
      "id": "string",
      "email": "string",
      "name": "string",
      "avatarUrl": "string"
    },
    "action": "string",
    "target": "string",
    "details": {}
  }
]
```

- `id` (`listAgentAudit.response.200.id`; integer, required)
  - format: `int64`
- `at` (`listAgentAudit.response.200.at`; string, required)
  - format: `date-time`
- `user` (`listAgentAudit.response.200.user`; object, required)
  - `id` (`listAgentAudit.response.200.user.id`; string, required)
  - `email` (`listAgentAudit.response.200.user.email`; string, required)
  - `name` (`listAgentAudit.response.200.user.name`; string, required)
  - `avatarUrl` (`listAgentAudit.response.200.user.avatarUrl`; string, required)
- `action` (`listAgentAudit.response.200.action`; string, required)
- `target` (`listAgentAudit.response.200.target`; string, required)
- `details` (`listAgentAudit.response.200.details`; object, required)

### 403

Error.

#### Example

```json
{
  "error": "string"
}
```

- `error` (`listAgentAudit.response.403.error`; string, required)

### 404

Error.

#### Example

```json
{
  "error": "string"
}
```

- `error` (`listAgentAudit.response.404.error`; string, required)


Source: https://agenthold.dev/api/list-agent-audit/index.md
