# Recent Activity

> The latest sent emails and replies across the workspace.

Requires an API key with the `read` scope.

Each item is a short sentence that includes the lead's email address. For structured data use the inbox and lead activity endpoints.

## Query Parameters

<ParamField query="limit" type="integer">Items to return, 1 to 100. Default 10.</ParamField>

## Response

<ResponseField name="data" type="array">
  <Expandable title="Activity">
    <ResponseField name="type" type="string">`sent` or `reply`.</ResponseField>
    <ResponseField name="message" type="string">For example `Email sent to jo@acme.com` or `Reply from jo@acme.com`.</ResponseField>
    <ResponseField name="subject" type="string">Subject line.</ResponseField>
    <ResponseField name="category" type="string">Reply category, on replies only.</ResponseField>
    <ResponseField name="timestamp" type="string">ISO 8601 timestamp.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
```bash cURL
curl "https://api.foxreach.io/api/v1/analytics/activity?limit=5" \
  -H "X-API-Key: otr_your_key"
```

```python Python SDK
from foxreach import FoxReach

client = FoxReach(api_key="otr_your_key")
items = client.analytics.activity(limit=5)
```

```typescript TypeScript SDK
import { FoxReach } from "foxreach";

const client = new FoxReach({ apiKey: "otr_your_key" });
const items = await client.analytics.activity({ limit: 5 });
```
</RequestExample>

<ResponseExample>
```json
{
  "data": [
    {"type": "reply", "message": "Reply from jo@acme.com", "subject": "Re: Quick question", "category": "interested", "timestamp": "2026-11-04T09:12:00+00:00"}
  ]
}
```
</ResponseExample>

## Errors

| Status | Description |
|--------|-------------|
| `401` | Missing, invalid, revoked or expired API key |
| `403` | API key does not have the required scope: `read` |
| `422` | `limit` is outside 1 to 100 |

## Rate Limit

- **300 requests per minute, shared by every `read` call in your workspace.** Fixed 60-second window.
- Every response includes `X-RateLimit-Limit`, `X-RateLimit-Remaining`, `X-RateLimit-Reset` (unix epoch seconds) and `X-RateLimit-Bucket` (`read`).
- A `429` response includes a `Retry-After` header (seconds until the bucket resets).

For client-side patterns, see [Rate Limiting](/rate-limiting).
