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

# List environments

> Discover available environments.

Returns a paginated list of environments visible to you: both your custom environments and the built-in H preset catalog.

**Returns** a paginated list of [Environment](/computer-use-agents/environments/overview) objects.

***

## Query parameters

<ParamField query="page" type="integer" default="1">
  Page number (1-based).
</ParamField>

<ParamField query="size" type="integer" default="10">
  Items per page. Maximum: `1000`.
</ParamField>

<ParamField query="sort" type="string" default="-created_at">
  Sort order. Options: `created_at`, `-created_at`, `id`, `-id`.
</ParamField>

***

## Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://agp.eu.hcompany.ai/api/v2/environments" \
    -H "Authorization: Bearer $HAI_API_KEY"
  ```

  ```python Python theme={null}
  from hai_agents import Client

  client = Client()

  page = client.environments.list_environments()
  print(page.items)
  ```

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

  const client = new HaiAgentsClient();

  const page = await client.environments.listEnvironments();
  console.log(page.items);
  ```
</CodeGroup>

Each item is a full [Environment](/computer-use-agents/environments/overview) object.

```json Response theme={null}
{
  "items": [
    {"id": "h/browser", "kind": "web", "start_url": "https://www.bing.com", "mode": {"type": "visual", "width": 1200, "height": 1200, "markdown": false}, "vault_id": null},
    {"id": "h/textual_browser", "kind": "web", "start_url": "https://www.bing.com", "mode": {"type": "text", "chunk_size": 20000}, "vault_id": null}
  ],
  "page": 1,
  "total": 2
}
```
