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

# Environments API

> The Environments API provides endpoints for managing deployment environments in Apinizer. Environments are deployment targets where API proxies can be deployed (e.g., production, staging, development).

## Endpoints

* [List Environments](/api-reference/environments/list-environments) - Get all environments (admin only)
* [Get Environments by Project](/api-reference/environments/get-environments-by-project) - Get environments accessible from a project

## Authentication

All endpoints require authentication using a Personal API Access Token.

## Permissions

### List All Environments

* User must have **system admin (`sysAdmin`)** role
* This endpoint returns all environments system-wide

### Get Environments by Project

* User must have **any permission** in the project (read access)
* Returns only environments accessible through the specified project

### Permission Requirements

| Operation                   | Required Permission       |
| --------------------------- | ------------------------- |
| List All Environments       | System Admin (`sysAdmin`) |
| Get Environments by Project | Any permission in project |

## Related Documentation

* [Authentication Guide](/api-reference/getting-started/authentication) - How to obtain and use API tokens
* [Error Handling](/api-reference/getting-started/error-handling) - Error response formats
