# activity_log

**Read a directory’s activity log**

Owners · read-only

For owners: a directory’s change history, oldest first, up to limit changes a call: each change to its contacts, groups, access, invites and requests, who made it, when, and through which app, like “Ben, ChatGPT”, with its number (seq). since is the number of the last change already read, so a later call returns only what’s new, and more says there’s more to read from the last one’s seq. A note only its author sees stays out of it.

## Parameters

| Parameter | Type | Required | Limits | What |
|---|---|---|---|---|
| `directory` | `string` | required |  |  |
| `since` | `integer` | optional | default 0 |  |
| `limit` | `integer` | optional | 1–500, default 100 | How many changes to read, 100 until set. |

## Who can use it

Owners of an organization have it, and each call is checked against which organizations they own. A person’s tool list only includes it when they can use it, and clients like ChatGPT see the same list.

Annotated **read-only**, so clients like ChatGPT can call it without asking.

## Errors

Errors carry a stable code and a message written for people. See [errors and their status codes](https://withopenbook.com/docs/api#errors).

HTTP:

```bash
curl https://api.withopenbook.com/v1/actions/activity_log \
  -H "Authorization: Bearer $OPENBOOK_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "directory": "0b8e2f4a-6c1d-4e7b-9a3f-5d2c8e1b7f60"
}'
```

MCP:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "activity_log",
    "arguments": {
      "directory": "0b8e2f4a-6c1d-4e7b-9a3f-5d2c8e1b7f60"
    }
  }
}
```

> IDs are made up. Get real ones from `my_access` and `search_contacts`, and send the person’s own OAuth token.
