# Start environment

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /environments/{id}/start:
    post:
      summary: Start environment
      deprecated: false
      description: >-
        Start a previously stopped CloudCLI environment and bring it back
        online. When an environment has been stopped - manually, automatically
        after its idle window, or at the end of a trial - this endpoint boots
        its container on the assigned server, reconnects the network routes, and
        makes the environment reachable again at its subdomain.
      tags:
        - Environments
      parameters:
        - name: id
          in: path
          description: ''
          required: true
          example: ''
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: Environment starting
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    examples:
                      - Environment started successfully
                  status:
                    type: string
                    examples:
                      - running
                x-apidog-orders:
                  - message
                  - status
                x-apidog-ignore-properties: []
          headers: {}
          x-apidog-name: OK
        '400':
          description: Bad request - Cannot start environment in current status
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/Error'
          headers: {}
          x-apidog-name: Bad Request
        '404':
          description: Environment not found
          content:
            application/json:
              schema: *ref_0
          headers: {}
          x-apidog-name: Not Found
      security:
        - ApiKeyAuth: []
          x-apidog:
            schemeGroups:
              - id: nyTYV523pyZpXNGC1U365
                schemeIds:
                  - ApiKeyAuth
            required: true
            use:
              id: nyTYV523pyZpXNGC1U365
            scopes:
              nyTYV523pyZpXNGC1U365:
                ApiKeyAuth: []
      x-apidog-folder: Environments
      x-apidog-status: released
      x-run-in-apidog: https://app.eu.apidog.com/web/project/359666/apis/api-3998771-run
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
          examples:
            - Invalid or missing API key
      x-apidog-orders:
        - error
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    ApiKeyAuth:
      type: apikey
      in: header
      name: X-API-KEY
      description: API key obtained from the CloudCLI dashboard
servers:
  - url: https://cloudcli.ai/api/v1
    description: Production API
security:
  - ApiKeyAuth: []
    x-apidog:
      schemeGroups:
        - id: nyTYV523pyZpXNGC1U365
          schemeIds:
            - ApiKeyAuth
      required: true
      use:
        id: nyTYV523pyZpXNGC1U365
      scopes:
        nyTYV523pyZpXNGC1U365:
          ApiKeyAuth: []

```