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

# Get Environment

> Fetches a single Google Tag Manager environment's details, including its authorization code

Fetches a single Google Tag Manager environment's details, including its authorization code.

|                      |                       |
| -------------------- | --------------------- |
| **App**              | Google Tag Manager    |
| **Operation ID**     | `gtm_get_environment` |
| **Type**             | Action                |
| **Connection**       | `gtm` (required)      |
| **Credits per run**  | 1                     |
| **Agent / MCP tool** | Yes                   |

## Inputs

| Field         | Type           | Required | Default | Description                                                                        |
| ------------- | -------------- | -------- | ------- | ---------------------------------------------------------------------------------- |
| `account`     | DynamicAccount | Yes      | -       | Select the Google Tag Manager account.                                             |
| `container`   | DynamicAccount | Yes      | -       | Select the container.                                                              |
| `environment` | DynamicAccount | Yes      | -       | Select the environment, or provide an environment ID from gtm\_list\_environments. |

## Output

**Type**: `Dict`

Returns the environment as provided by the Tag Manager API.
