> ## 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 environment details

> Retrieve details for a specific environment



## OpenAPI

````yaml https://console.gputrader.io/assets/gputrader-api.json get /environments/{envId}
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/{envId}:
    get:
      tags:
        - Environments
      summary: Get environment details
      description: Retrieve details for a specific environment
      parameters:
        - in: path
          name: envId
          required: true
          schema:
            type: string
          description: Environment ID
      responses:
        '200':
          description: Successfully retrieved environment
          content:
            application/json:
              schema:
                type: object
                properties:
                  envId:
                    type: string
                    description: Environment identifier
                  listing:
                    type: object
                    description: Environment listing details
                  heartbeat:
                    type: object
                    description: Environment heartbeat status
                  pEnvId:
                    type: number
                    description: Provider environment ID
                required:
                  - envId
                  - listing
                  - heartbeat
                  - pEnvId
        '404':
          description: Environment not found
        '500':
          description: Internal server error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````