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

> ## Agent Instructions
> H Platform has three products: the Agents API (managed computer-use agents, base URL https://agp.eu.hcompany.ai/api/v2 or https://agp.hcompany.ai/api/v2 for the US), the Models API (OpenAI-compatible Holo vision-language models at https://api.hcompany.ai/v1), and HoloTab (a free no-code Chrome extension that runs Holo in the user's browser, with recordable routines and schedules). The `holo` CLI (`pip install "hai-agents[cli]"`) runs Agents API agents from a terminal, drives the user's own desktop with `-a h/holo-desktop`, and serves coding agents through `holo mcp`.
> Authenticate with a bearer API key from the HAI_API_KEY environment variable. SDKs: `pip install hai-agents` (Python, `from hai_agents import Client`) and `npm install hai-agents` (TypeScript, `import { HaiAgentsClient } from "hai-agents"`). CLI: `holo`.
> Agents do work in a browser or on a desktop; describe the task as an imperative instruction. To run a task quickly, prefer the pre-built agent `h/web-surfer-flash`. Read results from the session's `latest_answer` after it reaches a terminal status.
> Sessions are the unit of work; wait for a terminal status (completed, failed, timed_out, interrupted) before reading the answer. Use webhooks or the `changes` long-poll endpoint to follow progress.

# List agent revisions

> List an agent's revisions, newest first.

## Behavior

Specs are not included. Read a [revision](https://hub.hcompany.ai/agents-api/agents/overview.md#revisions) with [Retrieve](https://hub.hcompany.ai/agents-api/agents/retrieve.md) and `?revision=N`, or run it with `"agent": "name:N"`.

## Path parameters

**agent\_name** `string` *required*

The agent's `name`, for example `my-research-bot` or `h/web-surfer-flash`.

## Query parameters

**page** `integer` (default: 1)

Page number (1-based).

**size** `integer` (default: 10)

Items per page. Maximum: `1000`.

**sort** `string` (default: -number)

Sort order. Options: `number`, `-number`.

## Response

`200` with a [page envelope](https://hub.hcompany.ai/agents-api/sdks.md#pagination) whose `items` are revision objects.

**number** `integer`

Revision number, from `1`.

**created\_at** `string`

When the revision was written, ISO 8601.

**created\_by** `string | null`

UUID of the user who wrote it. `null` when unknown, and on `h/` agents.

**message** `string | null`

The `message` sent with the write, if any. A [restore](https://hub.hcompany.ai/agents-api/agents/restore-revision.md) stores `Restored from vN`.

**restored\_from** `integer | null`

The revision this one was [restored](https://hub.hcompany.ai/agents-api/agents/restore-revision.md) from. `null` for ordinary writes.

```python Python theme={"system"}
from hai_agents import Client

client = Client()

revisions = client.agents.list_agent_revisions(agent_name="my-research-bot")
for revision in revisions.items:
    print(revision.number, revision.created_at, revision.message)
```

```typescript TypeScript theme={"system"}
import { HaiAgentsClient } from "hai-agents";

const client = new HaiAgentsClient();

const revisions = await client.agents.listAgentRevisions({ agentName: "my-research-bot" });
console.log(revisions.items);
```

```bash cURL theme={"system"}
curl "https://agp.eu.hcompany.ai/api/v2/agents/my-research-bot/revisions" \
  -H "Authorization: Bearer $HAI_API_KEY"
```

```json 200 theme={"system"}
{
  "items": [
    {
      "number": 2,
      "created_at": "2026-10-16T09:12:44Z",
      "created_by": "5f0c2a8e-3b1d-4f6a-9c2e-7d8b1a4e6f30",
      "message": "Cite a source for every claim",
      "restored_from": null
    },
    {
      "number": 1,
      "created_at": "2026-10-14T15:03:10Z",
      "created_by": "5f0c2a8e-3b1d-4f6a-9c2e-7d8b1a4e6f30",
      "message": null,
      "restored_from": null
    }
  ],
  "page": 1,
  "total": 2
}
```

## Errors

| Status | Cause |
| - | - |
| `404` | Not found, or not in your organization. |


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