Cumulus TalosDocs
Open Talos
On this page

environments.ensure_sandbox

Create this organization's sandbox environment on first use (same members)

Request

POST /api/v1/environments/sandbox

  • MCP: environments_ensure_sandbox
  • SDK: client.environments.ensure_sandbox (SDK path arguments use path; MCP uses params).
  • Minimum API key role: admin.
  • Idempotency: natural.

Use the request schema below. Read IDs from earlier operation results.

Input schema

json
{
  "parameters": [],
  "requestBody": null
}

Responses

json
{
  "200": {
    "description": "Create this organization's sandbox environment on first use (same members)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/EnvironmentsEnsureSandboxResponse200"
        }
      }
    }
  },
  "4XX": {
    "description": "Typed error (ApiError)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  },
  "5XX": {
    "description": "Typed error (ApiError)",
    "content": {
      "application/json": {
        "schema": {
          "$ref": "#/components/schemas/ApiError"
        }
      }
    }
  }
}

Referenced schemas

json
{
  "components": {
    "schemas": {
      "EnvironmentsEnsureSandboxResponse200": {
        "type": "object",
        "properties": {
          "current": {
            "type": "string",
            "enum": [
              "production",
              "sandbox"
            ]
          },
          "items": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "kind": {
                  "type": "string",
                  "enum": [
                    "production",
                    "sandbox"
                  ]
                },
                "tenant_id": {
                  "type": "string",
                  "format": "uuid"
                },
                "slug": {
                  "type": "string",
                  "minLength": 1
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "display_name": {
                  "type": "string",
                  "nullable": true
                }
              },
              "required": [
                "kind",
                "tenant_id",
                "slug",
                "name",
                "display_name"
              ],
              "additionalProperties": false
            }
          },
          "created": {
            "type": "boolean"
          },
          "sandbox_provisioning": {
            "type": "string",
            "enum": [
              "configured",
              "pending",
              "unavailable"
            ]
          }
        },
        "required": [
          "current",
          "items",
          "created",
          "sandbox_provisioning"
        ],
        "additionalProperties": false
      },
      "ApiError": {
        "type": "object",
        "properties": {
          "error": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "unauthenticated",
                  "forbidden",
                  "not_found",
                  "conflict",
                  "invalid_request",
                  "idempotency_conflict",
                  "policy_denied",
                  "capability_unavailable",
                  "provider_unavailable",
                  "knowledge_unavailable",
                  "publication_invalid",
                  "run_not_active",
                  "rate_limited",
                  "outcome_unknown",
                  "internal"
                ]
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean"
              },
              "outcome": {
                "type": "string",
                "enum": [
                  "none",
                  "unknown"
                ]
              },
              "details": {
                "type": "object",
                "additionalProperties": {}
              }
            },
            "required": [
              "code",
              "message",
              "retryable",
              "outcome"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "error"
        ],
        "additionalProperties": false
      }
    }
  }
}

Errors and recovery

See API error handling and Troubleshooting.

Content version 8dd63c82Markdown source
environments.ensure_sandbox · Cumulus Talos docs