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

      Create environment

      POST
      https://app.cloudcli.ai/api/v1/environments
      Create a new development environment

      Request

      Authorization
      API Key
      Add parameter in header
      X-API-KEY
      Example:
      X-API-KEY: ********************
      or
      Body Params application/jsonRequired

      Examples

      Responses

      🟢201Created
      application/json
      Environment created successfully
      Body

      🟠400Bad Request
      🟠401Unauthorized
      🟠402Payment Required
      🟠409Conflict
      🔴503Service Unavailable
      Request Request Example
      Shell
      JavaScript
      Java
      Swift
      cURL
      curl --location --request POST 'https://app.cloudcli.ai/api/v1/environments' \
      --header 'X-API-KEY: <api-key>' \
      --header 'Content-Type: application/json' \
      --data-raw '{
          "name": "My Project",
          "subdomain": "myproject-abc123"
      }'
      Response Response Example
      201 - 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
      List environments
      Next
      Get environment
      Built with