---
updatedAt: 2026-03-01T18:49:17.000Z
---

# Create a sandbox

You can create a sandbox based on an existing `property`, `hostname`, or property `version`. Refer to the examples in the [Recipes](https://techdocs.akamai.com/sandbox/recipes). In order to create a sandbox with this method, you need to have an API client for the `Sandbox API` with read-write access and Property Manager authorization enabled in Control Center.

# OpenAPI definition

```json
{
  "externalDocs": {
    "description": "See documentation for Akamai's Sandbox API",
    "url": "https://techdocs.akamai.com/sandbox/reference"
  },
  "info": {
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Sandboxes",
    "version": "v0"
  },
  "openapi": "3.0.0",
  "paths": {
    "/sandboxes": {
      "post": {
        "description": "You can create a sandbox based on an existing `property`, `hostname`, or property `version`. Refer to the examples in the [Recipes](https://techdocs.akamai.com/sandbox/recipes). In order to create a sandbox with this method, you need to have an API client for the `Sandbox API` with read-write access and Property Manager authorization enabled in Control Center.",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Sandbox API",
          "url": "https://techdocs.akamai.com/sandbox/reference/post-sandbox"
        },
        "operationId": "post-sandbox",
        "parameters": [
          {
            "description": "For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).",
            "in": "query",
            "name": "accountSwitchKey",
            "required": false,
            "schema": {
              "example": "1-5C0YLB:1-8BYUX",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "example": {
                "isClonable": true,
                "name": "Sandbox-123",
                "property": {
                  "propertyName": "exampledevops.com",
                  "propertyVersion": 12345
                }
              },
              "schema": {
                "additionalProperties": false,
                "description": "Create a JSON request body including data members as described in the table below.",
                "properties": {
                  "isClonable": {
                    "default": false,
                    "description": "Indicates whether the sandbox can be cloned by other developers.",
                    "type": "boolean"
                  },
                  "name": {
                    "description": "Descriptive name for the new sandbox. Specify a name, otherwise it's the `sandboxId` value by default. If the name isn't unique, you get an error message.",
                    "type": "string"
                  },
                  "property": {
                    "additionalProperties": false,
                    "description": "Contains information about the property within the sandbox.",
                    "minProperties": 1,
                    "properties": {
                      "contractId": {
                        "description": "The identifier you can use to create a sandbox from a specific contract. If you use this, you also need to specify the `groupId`.",
                        "type": "string"
                      },
                      "cpcode": {
                        "description": "Unique code you use to isolate sandbox traffic in report data. If you don't specify a value, the system creates one.",
                        "type": "number"
                      },
                      "edgeHostname": {
                        "description": "The edge hostname for the property as configured in Property Manager. May be specified instead of `propertyId`, `hostname`, or `propertyName`.",
                        "type": "string"
                      },
                      "groupId": {
                        "description": "The identifier you can use to create a sandbox from a specific group. If you use this, you also need to specify the `contractId`.",
                        "type": "string"
                      },
                      "hostname": {
                        "description": "The hostname for the property as configured in Property Manager. May be specified instead of `propertyId`, `edgeHostname`, or `propertyName`.",
                        "type": "string"
                      },
                      "propertyId": {
                        "description": "The unique identifier for the property as it appears in Property Manager. May be specified instead of `hostname`, `edgeHostname`, or `propertyName`.",
                        "type": "string"
                      },
                      "propertyName": {
                        "description": "The name of the property as it appears in Property Manager. May be specified instead of `propertyId`, `edgeHostname`, or `hostname`.",
                        "type": "string"
                      },
                      "propertyVersion": {
                        "description": "Specifies the version, otherwise the API uses the version active in production. If an active version isn't found, the API uses the most recent version.",
                        "type": "number"
                      },
                      "requestHostnames": {
                        "description": "Specifies the hostnames for the request. If you try to create a sandbox property with a `requestHostname` that isn't already contained in the property configuration, you may get unexpected results. The Sandbox API automatically converts any specified request hostnames to lower case.",
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      },
                      "ruleFormat": {
                        "description": "Specifies the rule format. The rule format is a dated version of the rule object in a property configuration. For more information, refer to the [Property Manager API](https://developer.akamai.com/api/core_features/property_manager/v1.html#understandingruleformats).",
                        "type": "string"
                      },
                      "rules": {
                        "description": "Defines how your website and applications process requests and the behaviors to apply to those requests. Include a `rules` object if you want to apply specific rules to test within your sandbox. The content-handling rules are defined in the [Property Manager API](https://techdocs.akamai.com/property-mgr/reference/rule-trees).",
                        "type": "object"
                      }
                    },
                    "type": "object",
                    "x-akamai": {
                      "file-path": "schemas/property-create-request.yaml"
                    }
                  }
                },
                "required": [
                  "property"
                ],
                "type": "object",
                "x-akamai": {
                  "file-path": "schemas/sandbox-create-request.yaml"
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "201": {
            "content": {
              "application/json": {
                "example": {
                  "_links": {
                    "clone": {
                      "href": "/sandbox-api/v1/sandboxes/2956607f-854e-11e8-898a-0242ac110002/clone"
                    },
                    "rotateJWT": {
                      "href": "/sandbox-api/v1/sandboxes/2956607f-854e-11e8-898a-0242ac110002/rotateJWT"
                    },
                    "self": {
                      "href": "/sandbox-api/v1/sandboxes/2956607f-854e-11e8-898a-0242ac110002"
                    }
                  },
                  "createdBy": "alfulani@example.com",
                  "createdOn": "2021-10-09T15:20:36.441Z",
                  "isClonable": true,
                  "jwtToken": "eyJ0eXA ... qggqqw",
                  "name": "Sandbox-123",
                  "properties": [
                    {
                      "_links": {
                        "property": {
                          "href": "/sandbox-api/v1/sandboxes/2956607f-854e-11e8-898a-0242ac110002/properties/e7b77afe-271b-4159-bdd1-c312ef560cdb"
                        },
                        "rules": {
                          "href": "/sandbox-api/v1/sandboxes/2956607f-854e-11e8-898a-0242ac110002/properties/e7b77afe-271b-4159-bdd1-c312ef560cdb/rules"
                        }
                      },
                      "additionalRequestHostnamesInProperty": [
                        "www.abc1234def.com"
                      ],
                      "editedRuleBehaviors": [
                        "cpCode"
                      ],
                      "filteredRuleBehaviors": [
                        "http2"
                      ],
                      "requestHostnames": [
                        "shop.exampledevops.com",
                        "info.abc1234def.com"
                      ],
                      "sandboxPropertyId": "e7b77afe-271b-4159-bdd1-c312ef560cdb",
                      "validationWarnings": [
                        {
                          "detail": "If your `Origin Server` uses HTTPS, make sure to follow <a href=\"/dl/property-manager/property-manager-help/csh_lookup.html?id=PM_0034\" target=\"_blank\">this procedure</a> to avoid a service outage or a security breach when you rotate your origin's certificate.",
                          "errorLocation": "#/rules/behaviors/0",
                          "type": "https://problems.luna.akamaiapis.net/papi/v1/validation/validation_message.ssl_delegate_warning_rotate"
                        }
                      ]
                    }
                  ],
                  "sandboxId": "2956607f-854e-11e8-898a-0242ac110002",
                  "status": "OK"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "A sandbox is an isolated development environment used for testing. Each sandbox has a unique identifier, or `sandboxId`. If you create a sandbox with `isClonable` enabled, another developer can quickly create a sandbox with the same configuration settings. When you create a sandbox, give it a meaningful `name`.",
                  "properties": {
                    "_links": {
                      "additionalProperties": true,
                      "description": "HAL-formatted hypermedia links relating to the sandbox. See [Hypermedia](ref:api#hypermedia) for more information.",
                      "minProperties": 1,
                      "properties": {
                        "resource": {
                          "additionalProperties": true,
                          "description": "Contains a link to the current resource.",
                          "properties": {
                            "href": {
                              "description": "A relative link to access the resource.",
                              "type": "string"
                            }
                          },
                          "required": [
                            "href"
                          ],
                          "type": "object"
                        }
                      },
                      "type": "object",
                      "x-akamai": {
                        "file-path": "schemas/links.yaml"
                      }
                    },
                    "createdBy": {
                      "description": "The identifier for the developer who created the sandbox.",
                      "type": "string"
                    },
                    "createdOn": {
                      "description": "A timestamp when the system created the sandbox.",
                      "format": "date-time",
                      "type": "string"
                    },
                    "isClonable": {
                      "description": "Indicates whether the sandbox can be copied for another developer's use.",
                      "type": "boolean"
                    },
                    "jwtToken": {
                      "description": "Java Web Token returned in the JSON response when you create a sandbox and used for authentication. Use this string value to configure the Sandbox Client.",
                      "type": "string"
                    },
                    "name": {
                      "description": "The name of the sandbox defined by the developer when the sandbox was created. If you don't specify a name, the default is the `sandboxId`.",
                      "type": "string"
                    },
                    "properties": {
                      "description": "A list of the properties available for testing in the sandbox environment. A sandbox can contain more than one property, but a given hostname may only be associated to one property within a sandbox.",
                      "items": {
                        "additionalProperties": false,
                        "properties": {
                          "_links": {
                            "additionalProperties": true,
                            "description": "HAL-formatted hypermedia links relating to the sandbox's properties. See [Hypermedia](ref:api#hypermedia) for more information.",
                            "minProperties": 1,
                            "properties": {
                              "resource": {
                                "additionalProperties": true,
                                "description": "Contains a link to the current resource.",
                                "properties": {
                                  "href": {
                                    "description": "A relative link to access the resource.",
                                    "type": "string"
                                  }
                                },
                                "required": [
                                  "href"
                                ],
                                "type": "object"
                              }
                            },
                            "type": "object",
                            "x-akamai": {
                              "file-path": "schemas/links.yaml"
                            }
                          },
                          "additionalRequestHostnamesInProperty": {
                            "description": "Hostnames assigned to the property referenced in the [Create a sandbox](ref:post-sandbox) request and not included as request hostnames in the JSON body.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "editedRuleBehaviors": {
                            "description": "Behaviors in the rule tree that were modified for use in the Sandbox.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "filteredRuleBehaviors": {
                            "description": "Behaviors in the rule tree that were removed because they aren't supported by Sandbox.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "requestHostnames": {
                            "description": "A set of hostnames you can use for testing requests within your sandbox.",
                            "items": {
                              "type": "string"
                            },
                            "type": "array"
                          },
                          "sandboxPropertyId": {
                            "description": "The unique identifier for the sandbox.",
                            "type": "string"
                          },
                          "validationWarnings": {
                            "description": "Warnings from validating the rule tree when a sandbox exists or a property is added. For details, refer to [Errors](ref:errors).",
                            "items": {
                              "additionalProperties": false,
                              "properties": {
                                "detail": {
                                  "description": "__Read-only__ Provides specific information related to this validation warning.",
                                  "readOnly": true,
                                  "type": "string"
                                },
                                "errorLocation": {
                                  "description": "__Read-only__ Provides a path expression to the offending rule.",
                                  "readOnly": true,
                                  "type": "string"
                                },
                                "instance": {
                                  "description": "__Read-only__ A unique identifier for this particular validation.",
                                  "readOnly": true,
                                  "type": "string"
                                },
                                "type": {
                                  "description": "__Read-only__ A unique name for this particular validation.",
                                  "readOnly": true,
                                  "type": "string"
                                }
                              },
                              "type": "object"
                            },
                            "type": "array",
                            "x-akamai": {
                              "file-path": "schemas/ValidationWarnings.yaml"
                            }
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "sandboxId": {
                      "description": "The unique identifier for the sandbox.",
                      "type": "string"
                    },
                    "status": {
                      "description": "The status of the sandbox. `OK` indicates that the sandbox is able to send traffic.",
                      "type": "string"
                    },
                    "statusReason": {
                      "description": "Provides more information when the status field is `ERROR`.",
                      "type": "string"
                    }
                  },
                  "required": [
                    "sandboxId",
                    "createdBy",
                    "createdOn",
                    "name",
                    "isClonable",
                    "properties"
                  ],
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/sandbox.yaml"
                  }
                }
              }
            },
            "description": "The resource was created.",
            "headers": {
              "Location": {
                "description": "Provides a URL link to GET the newly created resource.",
                "schema": {
                  "example": "/sandbox-api/v1/sandboxes/2956607f-854e-11e8-898a-0242ac110002/properties/f48caeff-68e5-11e8-8870-0242ac110003",
                  "type": "string"
                },
                "x-akamai": {
                  "file-path": "headers/Location.yaml"
                }
              },
              "X-Limit-Sandboxes-Limit": {
                "description": "The total number of sandboxes you can create.",
                "schema": {
                  "example": 100,
                  "type": "integer"
                },
                "x-akamai": {
                  "file-path": "headers/X-Limit-Sandboxes-Limit.yaml"
                }
              },
              "X-Limit-Sandboxes-Remaining": {
                "description": "The number of remaining sandboxes you can create.",
                "schema": {
                  "example": 98,
                  "type": "integer"
                },
                "x-akamai": {
                  "file-path": "headers/X-Limit-Sandboxes-Remaining.yaml"
                }
              }
            }
          }
        },
        "summary": "Create a sandbox",
        "tags": [
          "Sandboxes"
        ]
      }
    }
  },
  "servers": [
    {
      "url": "https://{hostname}/sandbox-api/v1"
    }
  ],
  "x-akamai": {
    "auth-type": "EDGE_GRID",
    "file-path": "sandboxes.yaml"
  },
  "x-readme": {
    "samples-languages": [
      "curl",
      "python",
      "node"
    ],
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```

# Sibling pages

* [List sandboxes](https://techdocs.akamai.com/sandbox/reference/get-sandboxes.md)
* [Get a sandbox](https://techdocs.akamai.com/sandbox/reference/get-sandbox.md)
* [Modify a sandbox](https://techdocs.akamai.com/sandbox/reference/put-sandbox.md)
* [Delete a sandbox](https://techdocs.akamai.com/sandbox/reference/delete-sandbox.md)
* [Clone a sandbox](https://techdocs.akamai.com/sandbox/reference/post-sandbox-clone.md)