> ## 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 four 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), HoloDesktop CLI (Holo on the user's own desktop), and HoloTab (a free no-code Chrome extension that runs Holo in the user's browser, with recordable routines and schedules).
> 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: `hai`.
> 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

> See an agent's history: every revision's number, author, time, and change note, newest first.

Lists an agent's [revisions](/agents-api/agents/overview#revisions), newest first, without their specs. Read one with [Retrieve](/agents-api/agents/retrieve) and `?revision=N`, or run one with `"agent": "name:N"`.

**Returns** a [page envelope](/agents-api/api-reference#pagination) whose `items` are revision objects.

## Path parameters

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

The agent's `name` (e.g. `my-research-bot` or `h/web-surfer-flash`). Slash-containing names are supported.

## 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

**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](/agents-api/agents/restore-revision) stores `Restored from vN`.

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

The revision this one was [restored](/agents-api/agents/restore-revision) from. `null` for ordinary writes.

## Examples

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

```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);
```

```json Response 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` | Agent not found or you don't have access. |


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