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

# Activity API

> API reference for activity feed

The Activity API provides access to repository activity feeds and user timelines.

## Endpoints

### List Repository Activity

```typescript theme={null}
const activity = await client.activity.listForRepo.query({
  repoId: 'repo_123',
  limit: 50,
  cursor: 'cursor_abc', // For pagination
});
```

### List User Activity

```typescript theme={null}
const activity = await client.activity.listForUser.query({
  userId: 'user_456',
  limit: 50,
});
```

### Get Activity Entry

```typescript theme={null}
const entry = await client.activity.get.query({
  id: 'activity_789',
});
```

## Activity Types

| Type           | Description      |
| -------------- | ---------------- |
| `push`         | Commits pushed   |
| `pr_opened`    | PR opened        |
| `pr_merged`    | PR merged        |
| `pr_closed`    | PR closed        |
| `issue_opened` | Issue opened     |
| `issue_closed` | Issue closed     |
| `comment`      | Comment added    |
| `review`       | Review submitted |

## Activity Schema

```typescript theme={null}
interface Activity {
  id: string;
  type: string;
  actor: { id: string; username: string };
  repository: { id: string; name: string };
  details: Record<string, any>;
  createdAt: string;
}
```

## Related

* [Events](/architecture/events) - Event system
