# List past searches

**`GET https://myagentmail.com/linkedin/searches`**

Group: LinkedIn — Searches
Operation ID: `linkedinListSearches`

Audit log of historical searches run by this tenant, newest first.

## Query parameters

- `limit` (integer) —

## Responses

### 200

```json
{
  "searches": [
    {
      "id": "string",
      "sessionId": "string",
      "query": "string",
      "lookback": "past-24h",
      "minIntent": "low",
      "intentDescription": "string",
      "resultCount": 0,
      "tookMs": 0,
      "errorCode": "string",
      "errorMessage": "string",
      "createdAt": "2026-05-01T09:03:22.715Z"
    }
  ]
}
```

## Code samples

### TypeScript

```typescript
import { MyAgentMail } from "myagentmail";

const client = new MyAgentMail({ apiKey: process.env.MYAGENTMAIL_API_KEY! });

// GET /linkedin/searches
const result = await client.request("get", "/linkedin/searches");
```

### curl

```bash
curl -X GET 'https://myagentmail.com/linkedin/searches' \
  -H 'X-API-Key: $MYAGENTMAIL_API_KEY'
```

### Python

```python
import os, requests

r = requests.get(
    "https://myagentmail.com/linkedin/searches",
    headers={"X-API-Key": os.environ["MYAGENTMAIL_API_KEY"]},
)
r.raise_for_status()
print(r.json())
```
