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

# Get all environments

> Retrieve a list of all environments



## OpenAPI

````yaml https://console.gputrader.io/assets/gputrader-api.json get /environments
openapi: 3.1.1
info:
  title: GPU Trader API
  version: 0.4.16
  description: This is the Swagger/OpenAPI-compatible GPUTrader API documentation
servers:
  - url: https://api.gputrader.io/v1
security: []
tags: []
paths:
  /environments:
    get:
      tags:
        - Environments
      summary: Get all environments
      description: Retrieve a list of all environments
      responses:
        '200':
          description: Successfully retrieved environments
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    name:
                      type: string
                      description: Environment name
                    createdAt:
                      type: string
                      format: date-time
                      description: Creation timestamp
                    updatedAt:
                      type: string
                      format: date-time
                      description: Last update timestamp
                    orgId:
                      type: string
                      description: Organization ID
                    userId:
                      type: string
                      description: User ID
                    envId:
                      type: string
                      description: Environment ID
                    pEnvId:
                      type: number
                      description: Provider environment ID
                    pEdgeKey:
                      type: string
                      description: Provider edge key
                    systemData:
                      type: object
                      description: System-specific data
                    isCompliant:
                      type: boolean
                      description: Compliance status
                    failedComplianceReason:
                      type: string
                      description: Reason for compliance failure
                    initState:
                      type: object
                      description: Initialization state
                    hold:
                      type: object
                      description: Hold information
                    listing:
                      type: object
                      description: Environment listing details
                    apiKey:
                      type: string
                      description: API key for the environment
                    heartbeat:
                      type: object
                      description: Heartbeat status information
                    isSeed:
                      type: boolean
                      description: Indicates if this is a seed environment
        '500':
          description: Internal server error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````