---
title: "Create a staging environment"
url: https://docs.corefinity.com/api/reference/environments/create-site-environment
type: endpoint
last_updated: 2026-11-13
feature: environments
related:
  - https://docs.corefinity.com/guides/sites/environments-and-copies/create-an-environment.md
  - https://docs.corefinity.com/mcp/tools/corestack_environment_create.md
---
# Create a staging environment

Adds a staging environment to the site, protected by HTTP authentication from the start, with the data
`source` chooses. Follow `operation.id` until it completes; `credentials` is the generated HTTP authentication login, answered once with
`Cache-Control: no-store`.

```http
POST /api/corestack/sites/{site}/environments
```

- Scope: `write`
- Also needs `exec` when To be shown the generated HTTP authentication password in `credentials`. Without it the create still succeeds and the password is null
- Also needs `deploy` when The environment is built from a git branch, which deploys that branch
- Two-factor: required on your account (all)
- Rate limit: 60 a minute
- Long-running: answers with an operation to poll
- Try it in the console: off. It can add to your bill. Copy the request and run it yourself when you are sure.

## Path parameters

- `site` (integer, required): The id of a site row. A website's production site and each of its environments has its own id. Digits only.

## Body

- `mariadb_version` (string): The site's own version when left out.
- `name` (string, required): A label of 1 to 40 characters without `<`, `>` or control characters. Spaces, tabs and line breaks around it are taken off first and do not count.
- `node_acknowledge` (array of strings): Send `["eol"]` to accept a Node.js major that is past its end of life.
- `node_major` (integer): The Node.js major to run, while Node.js is on for your company.
- `php_version` (string): The site's own version when left out.
- `slug` (string): The short name used in the environment's address: 2 to 16 lower-case letters, digits or dashes, starting with a letter. Made from `name` when left out.
- `source` (object, required): Where the environment's data comes from, chosen by `type`. Each kind takes its own fields only; a field of another kind is refused `422` on that field.
- `start_from_template` (boolean): True to start from your company's deployment template, while templates are on. Defaults to `false`.
- `tier` (string): The tier, for a site in a CoreCluster. The site's own tier when left out. Refused on a CoreStack site, which takes `uat_size`; never sent beside `uat_size`.
- `uat_size` (string): The staging size, for a CoreStack site: a `key` of the staging sizes. Refused on a site in a CoreCluster.

## Request

### curl

```bash
curl -X POST https://manage.corefinity.com/api/corestack/sites/1042/environments \
  -H "Authorization: Bearer $COREFINITY_TOKEN" \
  -H "Accept: application/json" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Review",
    "slug": "review",
    "source": {
      "environment_id": 1043,
      "scope": "files_db",
      "type": "clone"
    }
  }'
```

### PHP

```php
use Illuminate\Support\Facades\Http;

$response = Http::withToken(env('COREFINITY_TOKEN'))
    ->acceptJson()
    ->post('https://manage.corefinity.com/api/corestack/sites/1042/environments', [
        'name' => 'Review',
        'slug' => 'review',
        'source' => [
            'environment_id' => 1043,
            'scope' => 'files_db',
            'type' => 'clone',
        ],
    ]);

$data = $response->json();
```

### Node

```javascript
const res = await fetch('https://manage.corefinity.com/api/corestack/sites/1042/environments', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.COREFINITY_TOKEN}`,
    Accept: 'application/json',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    name: 'Review',
    slug: 'review',
    source: {
      environment_id: 1043,
      scope: 'files_db',
      type: 'clone',
    },
  }),
});

// An answer with no body (204) has nothing to parse.
const text = await res.text();
const data = text && JSON.parse(text);
```

### Python

```python
import os
import requests

res = requests.post(
    "https://manage.corefinity.com/api/corestack/sites/1042/environments",
    headers={
        "Authorization": f"Bearer {os.environ['COREFINITY_TOKEN']}",
        "Accept": "application/json",
    },
    json={
        "name": "Review",
        "slug": "review",
        "source": {
            "environment_id": 1043,
            "scope": "files_db",
            "type": "clone",
        },
    },
)

data = res.json() if res.content else None
```

## Responses

### 201 The environment is being created. Follow `operation.id`.

```json
{
  "credentials": {
    "password": "Example-generated-password-1",
    "revealed_at": "2026-11-10T00:59:39Z",
    "rule_id": 3120,
    "user_id": 3121,
    "username": "example"
  },
  "environment": {
    "access_summary": {
      "apply_state": "applied",
      "company_keys": 0,
      "keys": 0,
      "users": 1
    },
    "actions": {
      "apply_pending_now": {
        "available": false,
        "reason": "Scheduled maintenance is switched off at the moment"
      },
      "attach_domain": {
        "available": false,
        "reason": "The site is still being created"
      },
      "change_url": {
        "available": false,
        "reason": "Domains are switched off at the moment"
      },
      "clone": {
        "available": false,
        "reason": "This environment is still being created"
      },
      "create_environment": {
        "available": true,
        "reason": null
      },
      "delete": {
        "available": true,
        "reason": null
      },
      "go_live": {
        "available": false,
        "reason": "The site is still being created"
      },
      "maintenance": {
        "available": false,
        "reason": "This site is still being created"
      },
      "push_to_live": {
        "available": false,
        "reason": "This environment is still being created"
      },
      "restore_deleted": {
        "available": false,
        "reason": "Environments are removed at once. Recreate it from the final snapshot."
      },
      "terminal": {
        "available": false,
        "reason": "The terminal is available once the site is running"
      }
    },
    "adoption": "adopted",
    "cloudflare": {
      "connected": false,
      "zone": null
    },
    "cluster": {
      "id": 1017,
      "name": "Northwind UK 1"
    },
    "commands": [],
    "compute_family": "general",
    "counts": {
      "crons": 1
    },
    "crons_enabled": false,
    "database": {
      "host": "127.0.0.1",
      "name": "wordpress",
      "password_revealable": true,
      "port": 3306,
      "username": "application",
      "via": "SSH tunnel"
    },
    "deleted": null,
    "deploy_mode": "manual",
    "deploy_mode_label": "Manual",
    "deployments_summary": {
      "last": null,
      "mode": "manual"
    },
    "domain": "harbourandfinch.example.com",
    "domains_summary": {
      "aliases": 0,
      "dns": "unknown",
      "noindex": false,
      "primary": null,
      "tls": "none",
      "www": null
    },
    "email_summary": {
      "sending_domain": null,
      "state": "preview"
    },
    "environment": {
      "env_id": "rs-northwind-harbourandfinch-example-com--qa",
      "hostname": "harbourandfinch-example-com-qa.northwind.cfstack.example.net",
      "id": 1044,
      "name": "QA",
      "role": "staging",
      "role_label": "Staging",
      "slug": "qa"
    },
    "environments": [
      {
        "env_id": "rs-northwind-harbourandfinch-example-com",
        "hostname": "harbourandfinch-example-com.northwind.cfstack.example.net",
        "id": 1042,
        "name": "Production",
        "role": "production",
        "role_label": "Production",
        "slug": "production"
      },
      {
        "env_id": "rs-northwind-harbourandfinch-example-com--staging",
        "hostname": "harbourandfinch-example-com-staging.northwind.cfstack.example.net",
        "id": 1043,
        "name": "Staging",
        "role": "staging",
        "role_label": "Staging",
        "slug": "staging"
      },
      {
        "env_id": "rs-northwind-harbourandfinch-example-com--qa",
        "hostname": "harbourandfinch-example-com-qa.northwind.cfstack.example.net",
        "id": 1044,
        "name": "QA",
        "role": "staging",
        "role_label": "Staging",
        "slug": "qa"
      }
    ],
    "final_snapshot_note": "Snapshots are off for this cluster, so no final copy is taken: it cannot be brought back afterwards.",
    "health": "applying",
    "hosting": {
      "cluster_kind": "customer",
      "label": "CoreCluster Northwind UK 1"
    },
    "http_auth_summary": {
      "apply_state": "applied",
      "enabled": true,
      "rules": 1,
      "users": 1
    },
    "id": 1044,
    "kind": "corestack",
    "lifecycle": "provisioning",
    "limits": {
      "cpu_millicores": 2000,
      "disk_bytes": 10737418240,
      "memory_bytes": 4294967296
    },
    "logs": null,
    "maintenance": {
      "bypass_corefinity": 1,
      "bypass_ips": [],
      "enabled": false,
      "since": null
    },
    "mariadb": {
      "version": "11.4"
    },
    "mode": "staging",
    "mode_label": "No domain",
    "operation": {
      "id": 5120,
      "scope": "site",
      "status": "committed",
      "status_label": "Waiting for the platform",
      "summary": "New environment",
      "to_version": null,
      "type": "env_create",
      "type_label": "New environment"
    },
    "operations": [],
    "package": null,
    "pending_changes": {
      "count": 0,
      "outcome_at": null,
      "state": null,
      "window_starts_at": null
    },
    "php": {
      "version": "8.3"
    },
    "platform": {
      "key": "wordpress",
      "label": "WordPress"
    },
    "platform_url": "https://harbourandfinch-example-com-qa.northwind.cfstack.example.net",
    "preview": {
      "label": "Platform address",
      "protected": true,
      "url": "https://harbourandfinch-example-com-qa.northwind.cfstack.example.net"
    },
    "primary_url": null,
    "production_hosts": [],
    "provisioning": null,
    "removed": false,
    "restore": null,
    "settings": {
      "auto_deploy": false,
      "http_auth_enabled": true,
      "scheduled_snapshots": false
    },
    "site": {
      "domain": "harbourandfinch.example.com",
      "id": 1042
    },
    "site_id": "rs-northwind-harbourandfinch-example-com--qa",
    "snapshots": {
      "count": 0,
      "effective_frequency": "off",
      "effective_label": "Off",
      "latest": null,
      "latest_ready_at": null,
      "next_scheduled_at": null,
      "overridden": false,
      "stored_gb": 0
    },
    "ssh": {
      "command": "ssh -p 20033 web@ssh-northwind.example.net",
      "host": "ssh-northwind.example.net",
      "key_management": false,
      "keys": [],
      "port": 20033,
      "sftp_command": "sftp -P 20033 web@ssh-northwind.example.net",
      "tunnel_command": "ssh -N -L 3306:127.0.0.1:3306 -p 20033 web@ssh-northwind.example.net",
      "user": "web",
      "users": 1
    },
    "tier": "S",
    "uat_size": null,
    "usage": {
      "cpu_millicores": null,
      "disk_used_bytes": null,
      "memory_bytes": null,
      "observed_at": null,
      "source": null
    }
  },
  "operation": {
    "applied_at": null,
    "can_retry": false,
    "cluster": {
      "id": 1017,
      "name": "Northwind UK 1"
    },
    "committed_at": "2026-11-10T00:59:39Z",
    "completed_at": null,
    "created_at": "2026-11-10T00:59:39Z",
    "environment": {
      "env_id": "rs-northwind-harbourandfinch-example-com--qa",
      "hostname": "harbourandfinch-example-com-qa.northwind.cfstack.example.net",
      "id": 1044,
      "name": "QA",
      "role": "staging",
      "role_label": "Staging",
      "slug": "qa"
    },
    "error": null,
    "failure_reason": null,
    "from_version": null,
    "hot": false,
    "id": 5120,
    "install": null,
    "label": "Picked up by the platform",
    "notes": [],
    "parent_operation_id": null,
    "requested_by": {
      "id": 2041,
      "name": "Eleanor Finch"
    },
    "reset_target": null,
    "result": null,
    "result_state": "none",
    "retried_by_operation_id": null,
    "retries_operation_id": null,
    "retry_requires": null,
    "revealed": null,
    "scope": "site",
    "site": {
      "domain": "harbourandfinch.example.com",
      "id": 1044
    },
    "status": "committed",
    "status_label": "Waiting for the platform",
    "step": "picked_up",
    "steps": [
      {
        "key": "reserved",
        "label": "Port and address reserved",
        "state": "done"
      },
      {
        "key": "namespace",
        "label": "Place on the platform created",
        "state": "done"
      },
      {
        "key": "dns",
        "label": "Address published",
        "state": "done"
      },
      {
        "key": "committed",
        "label": "Saved to the platform",
        "state": "done"
      },
      {
        "key": "picked_up",
        "label": "Picked up by the platform",
        "state": "current"
      },
      {
        "key": "starting",
        "label": "Environment started",
        "state": "todo"
      },
      {
        "key": "seeded",
        "label": "Site prepared",
        "state": "todo"
      },
      {
        "key": "ready",
        "label": "Ready",
        "state": "todo"
      }
    ],
    "subject": null,
    "summary": "New environment",
    "to_version": null,
    "type": "env_create",
    "type_label": "New environment"
  }
}
```

### 202 The environment was accepted and waits: another change holds the cluster, or the platform's answer is still being confirmed. `operation.status` is `pending`. Follow `operation.id`.

```json
{
  "credentials": {
    "password": "Example-generated-password-1",
    "revealed_at": "2026-11-10T00:59:52Z",
    "rule_id": 3120,
    "user_id": 3121,
    "username": "example"
  },
  "environment": {
    "access_summary": {
      "apply_state": "applied",
      "company_keys": 0,
      "keys": 0,
      "users": 1
    },
    "actions": {
      "apply_pending_now": {
        "available": false,
        "reason": "Scheduled maintenance is switched off at the moment"
      },
      "attach_domain": {
        "available": false,
        "reason": "The site is still being created"
      },
      "change_url": {
        "available": false,
        "reason": "Domains are switched off at the moment"
      },
      "clone": {
        "available": false,
        "reason": "This environment is still being created"
      },
      "create_environment": {
        "available": true,
        "reason": null
      },
      "delete": {
        "available": true,
        "reason": null
      },
      "go_live": {
        "available": false,
        "reason": "The site is still being created"
      },
      "maintenance": {
        "available": false,
        "reason": "This site is still being created"
      },
      "push_to_live": {
        "available": false,
        "reason": "This environment is still being created"
      },
      "restore_deleted": {
        "available": false,
        "reason": "Environments are removed at once. Recreate it from the final snapshot."
      },
      "terminal": {
        "available": false,
        "reason": "The terminal is available once the site is running"
      }
    },
    "adoption": "adopted",
    "cloudflare": {
      "connected": false,
      "zone": null
    },
    "cluster": {
      "id": 1017,
      "name": "Northwind UK 1"
    },
    "commands": [],
    "compute_family": "general",
    "counts": {
      "crons": 1
    },
    "crons_enabled": false,
    "database": {
      "host": "127.0.0.1",
      "name": "wordpress",
      "password_revealable": true,
      "port": 3306,
      "username": "application",
      "via": "SSH tunnel"
    },
    "deleted": null,
    "deploy_mode": "manual",
    "deploy_mode_label": "Manual",
    "deployments_summary": {
      "last": null,
      "mode": "manual"
    },
    "domain": "harbourandfinch.example.com",
    "domains_summary": {
      "aliases": 0,
      "dns": "unknown",
      "noindex": false,
      "primary": null,
      "tls": "none",
      "www": null
    },
    "email_summary": {
      "sending_domain": null,
      "state": "preview"
    },
    "environment": {
      "env_id": "rs-northwind-harbourandfinch-example-com--qa",
      "hostname": "harbourandfinch-example-com-qa.northwind.cfstack.example.net",
      "id": 1044,
      "name": "QA",
      "role": "staging",
      "role_label": "Staging",
      "slug": "qa"
    },
    "environments": [
      {
        "env_id": "rs-northwind-harbourandfinch-example-com",
        "hostname": "harbourandfinch-example-com.northwind.cfstack.example.net",
        "id": 1042,
        "name": "Production",
        "role": "production",
        "role_label": "Production",
        "slug": "production"
      },
      {
        "env_id": "rs-northwind-harbourandfinch-example-com--staging",
        "hostname": "harbourandfinch-example-com-staging.northwind.cfstack.example.net",
        "id": 1043,
        "name": "Staging",
        "role": "staging",
        "role_label": "Staging",
        "slug": "staging"
      },
      {
        "env_id": "rs-northwind-harbourandfinch-example-com--qa",
        "hostname": "harbourandfinch-example-com-qa.northwind.cfstack.example.net",
        "id": 1044,
        "name": "QA",
        "role": "staging",
        "role_label": "Staging",
        "slug": "qa"
      }
    ],
    "final_snapshot_note": "Snapshots are off for this cluster, so no final copy is taken: it cannot be brought back afterwards.",
    "health": "applying",
    "hosting": {
      "cluster_kind": "customer",
      "label": "CoreCluster Northwind UK 1"
    },
    "http_auth_summary": {
      "apply_state": "applied",
      "enabled": true,
      "rules": 1,
      "users": 1
    },
    "id": 1044,
    "kind": "corestack",
    "lifecycle": "provisioning",
    "limits": {
      "cpu_millicores": 2000,
      "disk_bytes": 10737418240,
      "memory_bytes": 4294967296
    },
    "logs": null,
    "maintenance": {
      "bypass_corefinity": 1,
      "bypass_ips": [],
      "enabled": false,
      "since": null
    },
    "mariadb": {
      "version": "11.4"
    },
    "mode": "staging",
    "mode_label": "No domain",
    "operation": {
      "id": 5120,
      "scope": "site",
      "status": "pending",
      "status_label": "Saving change",
      "summary": "New environment",
      "to_version": null,
      "type": "env_create",
      "type_label": "New environment"
    },
    "operations": [],
    "package": null,
    "pending_changes": {
      "count": 0,
      "outcome_at": null,
      "state": null,
      "window_starts_at": null
    },
    "php": {
      "version": "8.3"
    },
    "platform": {
      "key": "wordpress",
      "label": "WordPress"
    },
    "platform_url": "https://harbourandfinch-example-com-qa.northwind.cfstack.example.net",
    "preview": {
      "label": "Platform address",
      "protected": true,
      "url": "https://harbourandfinch-example-com-qa.northwind.cfstack.example.net"
    },
    "primary_url": null,
    "production_hosts": [],
    "provisioning": null,
    "removed": false,
    "restore": null,
    "settings": {
      "auto_deploy": false,
      "http_auth_enabled": true,
      "scheduled_snapshots": false
    },
    "site": {
      "domain": "harbourandfinch.example.com",
      "id": 1042
    },
    "site_id": "rs-northwind-harbourandfinch-example-com--qa",
    "snapshots": {
      "count": 0,
      "effective_frequency": "off",
      "effective_label": "Off",
      "latest": null,
      "latest_ready_at": null,
      "next_scheduled_at": null,
      "overridden": false,
      "stored_gb": 0
    },
    "ssh": {
      "command": null,
      "host": "ssh-northwind.example.net",
      "key_management": false,
      "keys": [],
      "port": null,
      "sftp_command": null,
      "tunnel_command": null,
      "user": "web",
      "users": 1
    },
    "tier": "S",
    "uat_size": null,
    "usage": {
      "cpu_millicores": null,
      "disk_used_bytes": null,
      "memory_bytes": null,
      "observed_at": null,
      "source": null
    }
  },
  "operation": {
    "applied_at": null,
    "can_retry": false,
    "cluster": {
      "id": 1017,
      "name": "Northwind UK 1"
    },
    "committed_at": null,
    "completed_at": null,
    "created_at": "2026-11-10T00:59:52Z",
    "environment": {
      "env_id": "rs-northwind-harbourandfinch-example-com--qa",
      "hostname": "harbourandfinch-example-com-qa.northwind.cfstack.example.net",
      "id": 1044,
      "name": "QA",
      "role": "staging",
      "role_label": "Staging",
      "slug": "qa"
    },
    "error": null,
    "failure_reason": null,
    "from_version": null,
    "hot": false,
    "id": 5120,
    "install": null,
    "label": "Port and address reserved",
    "notes": [],
    "parent_operation_id": null,
    "requested_by": {
      "id": 2041,
      "name": "Eleanor Finch"
    },
    "reset_target": null,
    "result": null,
    "result_state": "none",
    "retried_by_operation_id": null,
    "retries_operation_id": null,
    "retry_requires": null,
    "revealed": null,
    "scope": "site",
    "site": {
      "domain": "harbourandfinch.example.com",
      "id": 1044
    },
    "status": "pending",
    "status_label": "Waiting for another change to finish. This carries on by itself.",
    "step": "reserved",
    "steps": [
      {
        "key": "reserved",
        "label": "Port and address reserved",
        "state": "current"
      },
      {
        "key": "namespace",
        "label": "Place on the platform created",
        "state": "todo"
      },
      {
        "key": "dns",
        "label": "Address published",
        "state": "todo"
      },
      {
        "key": "committed",
        "label": "Saved to the platform",
        "state": "todo"
      },
      {
        "key": "picked_up",
        "label": "Picked up by the platform",
        "state": "todo"
      },
      {
        "key": "starting",
        "label": "Environment started",
        "state": "todo"
      },
      {
        "key": "seeded",
        "label": "Site prepared",
        "state": "todo"
      },
      {
        "key": "ready",
        "label": "Ready",
        "state": "todo"
      }
    ],
    "subject": null,
    "summary": "New environment",
    "to_version": null,
    "type": "env_create",
    "type_label": "New environment"
  }
}
```

### 401 No token, or a token that is not valid.

```json
{
  "message": "Unauthenticated."
}
```

### 403 The token lacks the scope (`scope_required`, with the `scope` to use), your company requires two-factor authentication and you have not set it up, or your account has no company that can use Managed Clusters, for example because the company was closed (`company_unavailable` or `company_not_enabled`, whichever the route checks first). For Managed Clusters routes; any other route uses `ForbiddenScopeOrTwoFactor`.

```json
{
  "code": "company_unavailable",
  "message": "Your company is unavailable.",
  "reason": "company_unavailable"
}
```

### 404 The id does not exist or is something you cannot change, or the feature is not on for your company (`feature_off`). A `source` that names something you cannot use answers the same plain `404`.

```json
{
  "code": "feature_off",
  "message": "Not found.",
  "reason": "feature_off"
}
```

### 409 The environment cannot be added now. `reason` says why: `managed_elsewhere` (checked first), `deleted`, `provisioning`, `site_unadopted` (the site is not ready to be changed from the Control Panel; contact support), `duplicate` (an environment with that name was added meanwhile), `cleaning_up` (an environment with that name is still being removed), `source_busy` (the environment to copy from is not ready), `busy` (another change holds the name or the address) or another reason the message explains, such as a CoreCluster with no room left.

```json
{
  "code": "cleaning_up",
  "message": "This environment is being removed. Try again in a few minutes.",
  "reason": "cleaning_up"
}
```

### 422 A field is missing or wrong (`invalid`, with `field` and `errors`), or the request is refused for a reason of its own that names the field in `errors`.

```json
{
  "code": "invalid",
  "errors": {
    "name": [
      "Give the environment a name"
    ]
  },
  "field": "name",
  "message": "Give the environment a name",
  "reason": "invalid"
}
```

### 429 Too many environments were added: wait for `Retry-After` seconds. Only a create that is accepted counts against the limit; one refused with a `4xx` does not.

```json
{
  "code": "rate_limited",
  "message": "Too many requests. Try again in 60 seconds.",
  "reason": "rate_limited",
  "retry_after_seconds": 60
}
```

### 502 The platform did not save the new environment. Its operation has failed and nothing is left to follow; try again in a minute.

```json
{
  "message": "The platform could not be reached. Try again in a minute."
}
```

### 503 The platform cannot place the environment at the moment. `reason` says why: `tier_cluster_missing` (no servers for it in this region yet; contact support) or `temporarily_unavailable` (try again in a few minutes). Nothing was added.

```json
{
  "code": "tier_cluster_missing",
  "message": "The platform has no compute cluster for this here yet. Contact support.",
  "reason": "tier_cluster_missing"
}
```

## If it is refused

| Status | Reason | What to do |
|---|---|---|
| 401 |  | Send a valid token as `Authorization: Bearer <token>`. |
| 403 | `company_unavailable` | Your company is unavailable. |
| 403 | `scope_required` | Use a token with the scope named in `scope`. |
| 403 | `two_factor_required` | Turn on two-factor on your account, then send again. |
| 404 | `feature_off` | This feature is not on for your organisation yet. |
| 409 | `cleaning_up` | The site, the environment or its last restore is still being cleaned up or removed. Try again in a few minutes. |
| 409 | `deleted` | The site, environment or copy has been deleted, or is being deleted. Nothing can be changed on it. Restore a deleted site first if it can still be restored. |
| 409 | `duplicate` | The same thing already exists here. Use the existing one, or choose another name or value. |
| 409 | `managed_elsewhere` | This site is read-only here. Change it in the control panel that manages it. |
| 409 | `provisioning` | The site is still being created. Try again in a few minutes. |
| 409 | `site_unadopted` | This site is not ready to be changed from the Control Panel yet. Contact support. |
| 409 | `source_busy` | The environment to copy from is busy with another change, or is being deleted. Nothing was copied. Wait, then try again. |
| 422 | `invalid` | Fix the field named in `field`; `errors` says why. |
| 422 | `snapshot_transfer` | A saved snapshot can be copied only to an environment on the same servers for now. Copy the live environment instead, or restore the snapshot first. |
| 429 | `rate_limited` | Wait for the seconds in `Retry-After`. |
| 502 |  | Read the message; it says what happened. |
| 503 | `tier_cluster_missing` | The platform has no compute cluster for this here yet. Contact support. |

## The same task elsewhere

- Guide: [Create an environment](https://docs.corefinity.com/guides/sites/environments-and-copies/create-an-environment.md)
- MCP tool: [`corestack_environment_create`](https://docs.corefinity.com/mcp/tools/corestack_environment_create.md)
