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

      Get environment

      GET
      https://app.cloudcli.ai/api/v1/environments/{id}
      Get details of a specific environment

      Request

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

      Responses

      🟢200OK
      application/json
      Successful response
      Body

      🟠404Not Found
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      curl --location --request GET 'https://app.cloudcli.ai/api/v1/environments/' \
      --header 'X-API-KEY: <api-key>'
      Response Response Example
      200 - Example 1
      {
          "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
      Create environment
      Next
      Delete environment
      Built with