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

# Retrieve an environment

> Get the full specification of an environment.

Retrieves the complete [Environment](/computer-use-agents/environments/overview) object.

**Returns** the Environment object if the identifier is valid and you have access.

***

## Path parameters

<ParamField path="id" type="string" required>
  The environment's `id` (e.g., `h/browser` or `my-browser`). Slash-containing identifiers are supported.
</ParamField>

***

## Examples

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

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

  client = Client()

  environment = client.environments.get_environment("h/browser")
  print(environment)
  ```

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

  const client = new HaiAgentsClient();

  const environment = await client.environments.getEnvironment({ id: "h/browser" });
  console.log(environment);
  ```
</CodeGroup>

```json Response theme={null}
{
  "id": "h/browser",
  "kind": "web",
  "start_url": "https://www.bing.com",
  "mode": {"type": "visual", "width": 1200, "height": 1200, "markdown": false},
  "vault_id": null
}
```

***

## Errors

| Status | Cause                                           |
| ------ | ----------------------------------------------- |
| `404`  | Environment not found or you don't have access. |
