cloudcli
    cloudcli
    • CloudCLI API Documentation
    • List environments
      GET
    • Create environment
      POST
    • Get environment
      GET
    • Delete environment
      DELETE
    • Start environment
      POST
    • Stop environment
      POST
    • Get SSH credentials
      GET
    • Execute AI agent
      POST
    • Schemas
      • Schemas
        • Environment
        • CreateEnvironmentRequest
        • SSHCredentials
        • AgentExecuteRequest
        • Error

      List environments

      GET
      https://app.cloudcli.ai/api/v1/environments
      Get all environments for the authenticated user

      Request

      Authorization
      API Key
      Add parameter in header
      X-API-KEY
      Example:
      X-API-KEY: ********************
      or
      Query Params

      Responses

      🟢200OK
      application/json
      Successful response
      Body

      🟠401Unauthorized
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://app.cloudcli.ai/api/v1/environments?status' \
      --header 'X-API-KEY: <api-key>'
      Response Response Example
      200 - Example 1
      {
          "environments": [
              {
                  "id": "123e4567-e89b-12d3-a456-426614174000",
                  "name": "My Backend API",
                  "subdomain": "mybackend-abc123",
                  "access_url": "https://mybackend-abc123.cloudcli.ai",
                  "status": "running",
                  "github_url": "https://github.com/username/repo",
                  "created_at": "2019-08-24T14:15:22Z"
              }
          ]
      }
      Modified at 2025-11-12 15:10:25
      Previous
      CloudCLI API Documentation
      Next
      Create environment
      Built with