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

# digest

> The company's sessions and agents in one read — client.digest.

Two methods. Each reads what one dashboard screen draws, in one request. See [Digest](https://vetta.sh/docs/api/digest.md)
for every list and its cap.

## get

```ts theme={"system"}
client.digest.get(): Promise<Digest>
```

`GET /v1/digest`. `agents`, `waiting.awaiting_approval`, `waiting.awaiting_answer`,
`waiting.budget_paused`, `failed` and `recent` are each `{ data, has_more }`, cut at a cap. Past a
cap, page `client.agents.list` or `client.sessions.list`. `channels.data` holds each agent's
channel session. Needs `sessions:read` and `agents:read`.

## chat

```ts theme={"system"}
client.digest.chat(query?: { agent?: string; session?: string }): Promise<AgentChat>
```

`GET /v1/chat`. An agent (`agent`; the company's CEO unless you name one), its newest 20 chats
(`sessions`) and one chat's last 200 events with the files they name (`open`). See [Digest](https://vetta.sh/docs/api/digest.md). Needs `sessions:read` and
`agents:read`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.