> ## 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.

# Create a new environment

> Create a new environment



## OpenAPI

````yaml https://console.gputrader.io/assets/gputrader-api.json post /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:
    post:
      tags:
        - Environments
      summary: Create a new environment
      description: Create a new environment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - name
              properties:
                name:
                  type: string
                  description: The name of the environment to create
      responses:
        '200':
          description: Environment successfully created
          content:
            application/json:
              schema:
                type: string
                format: uuid
                description: The unique identifier (UUID) of the created environment
                example: 123e4567-e89b-12d3-a456-426614174000
        '400':
          description: Invalid request body
        '500':
          description: Internal server error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key

````