---
title: "listEgressLog"
---

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

# listEgressLog

Path: agenthold API › egress

`GET /agents/{agentId}/egress-log`

URL: `/api/v1/agents/{agentId}/egress-log`

## Authentication

Requires one of the following:

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

## Path parameters

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

## Query parameters

- `before` (`listEgressLog.query.before`; integer, optional) — Return entries older than this id.
  - format: `int64`
- `limit` (`listEgressLog.query.limit`; integer, optional)
  - maximum: `500` · minimum: `1`

## Code samples

### cURL

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

### TypeScript

```typescript
const url = '<base-url>/api/v1/agents/<agentId>/egress-log';
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>/egress-log"

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

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

print(response.text)
```

## Responses

### 200

Newest first.

#### Example

```json
[
  {
    "id": 0,
    "at": "2019-08-24T14:15:22Z",
    "kind": "https",
    "host": "string",
    "ip": "string",
    "port": 0,
    "method": "string",
    "path": "string",
    "status": 0,
    "allowed": true,
    "reason": "string",
    "injected": true,
    "bytesUp": 0,
    "bytesDown": 0,
    "durationMs": 0
  }
]
```

- `id` (`listEgressLog.response.200.id`; integer, required)
  - format: `int64`
- `at` (`listEgressLog.response.200.at`; string, required)
  - format: `date-time`
- `kind` (`listEgressLog.response.200.kind`; string, required)
  - one of `"https"`, `"http"`, `"tls"`, `"tcp"`, `"dns"`
- `host` (`listEgressLog.response.200.host`; string, required)
- `ip` (`listEgressLog.response.200.ip`; string, required)
- `port` (`listEgressLog.response.200.port`; integer, required)
- `method` (`listEgressLog.response.200.method`; string, required)
- `path` (`listEgressLog.response.200.path`; string, required)
- `status` (`listEgressLog.response.200.status`; integer, required)
- `allowed` (`listEgressLog.response.200.allowed`; boolean, required)
- `reason` (`listEgressLog.response.200.reason`; string, required)
- `injected` (`listEgressLog.response.200.injected`; boolean, required)
- `bytesUp` (`listEgressLog.response.200.bytesUp`; integer, required)
  - format: `int64`
- `bytesDown` (`listEgressLog.response.200.bytesDown`; integer, required)
  - format: `int64`
- `durationMs` (`listEgressLog.response.200.durationMs`; integer, required)
  - format: `int64`

### 404

Error.

#### Example

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

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


Source: https://agenthold.dev/api/list-egress-log/index.md
