> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/developer-tools-and-resources/api-reference/settings-apis/returns-environment-name.md).

# Returns Environment Name

**`GET /settings/environment`**

Returns the name of the current Hedera network environment.

**Authentication:** Bearer token required (`Authorization: Bearer <token>`)

***

## Request

No request body or parameters required.

***

## Response

### Success Response

**Status:** `200 OK`

```json
"testnet"
```

Possible values: `mainnet`, `testnet`, `previewnet`.

### Error Responses

| Status                      | Description               |
| --------------------------- | ------------------------- |
| `401 Unauthorized`          | Missing or invalid token  |
| `500 Internal Server Error` | Unexpected server failure |
