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

# Create a sandbox based on a specific property version.

```curl cURL
egcurl --eg-section default --request POST \ 

    --url 'https://$host//sandbox-api/v1/sandboxes' \ 
    --header 'Accept: application/json' \ 
    --header 'Content-Type: application/json' \     
    --data '
{
    "property": {
        "propertyName": "exampledevops.com",
        "propertyVersion": 12345
    },
    "name": "Sandbox-123",
}'
```

```node Node
const EdgeGrid = require("akamai-edgegrid");
const os = require("os");
const edgercPath = os.homedir + "/.edgerc.txt";
const edgercSection = "default";  
const eg = new EdgeGrid({
  path: edgercPath,
  section: edgercSection
});   


eg.auth({
  path: `sandbox-api/v1/sandboxes`,
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    "Accept": "application/json"},
  
  body: {
    "property": {
        "propertyName": "exampledevops.com",
        "propertyVersion": 12345
    },
    "name": "Sandbox-123",
}                    
});
eg.send(function(error, response, body) {
  console.log(body);    
});
```

```python Python
import requests
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from urllib.parse import urljoin

edgerc = EdgeRc('~/.edgerc.txt')
section = 'default'
baseurl = 'https://%s' % edgerc.get(section, 'host')

session = requests.Session()
session.auth = EdgeGridAuth.from_edgerc(edgerc, section)
 

path= '/sandbox-api/v1/sandboxes'
headers = {
  'Content-Type': 'application/json',
  'Accept': 'application/json'}

payload = {
    "property": {
        "propertyName": "exampledevops.com",
        "propertyVersion": 12345
    },
    "name": "Sandbox-123",
}
```

```json Response Example
{
    "sandboxId": "2956607f-854e-11e8-898a-0242ac110002",
    "createdBy": "joe@example.com",
    "createdOn": "2018-10-09T15:20:36.441Z",
    "name": "Sandbox-123",
    "jwtToken": "eyJ0eXA ... qggqqw",
    "isClonable": false,
    "status": "OK",
    "properties": [
        {
            "sandboxPropertyId": "e7b77afe-271b-4159-bdd1-c312ef560cdb",
            "requestHostnames": [
                "shop.exampledevops.com",
                "info.abc1234def.com"
            ],
            "additionalRequestHostnamesInProperty": [
                "www.abc1234def.com"
            ],
            "filteredRuleBehaviors": [
                "http2"
            ],
            "editedRuleBehaviors": [
                "cpCode"
            ],
            "validationWarnings": [
                {
                    "type": "https://problems.luna.akamaiapis.net/papi/v1/validation/validation_message.ssl_delegate_warning_rotate",
                    "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"
                }
            ],
            "_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"
                }
            }
        }
    ],
    "_links": {
        "self": {
            "href": "/sandbox-api/v1/sandboxes/2956607f-854e-11e8-898a-0242ac110002"
        },
        "rotateJWT": {
            "href": "/sandbox-api/v1/sandboxes/2956607f-854e-11e8-898a-0242ac110002/rotateJWT"
        },
        "clone": {
            "href": "/sandbox-api/v1/sandboxes/2956607f-854e-11e8-898a-0242ac110002/clone"
        }
    }
}

```

# Set up authorization

<!-- curl@1 -->
<!-- node@1-7 -->
<!-- python@1-10 -->

Before you can use this API, you need to [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials).

Then, you can use these code samples to apply the token values to your requests.

# Specify a property name

<!-- curl@9 -->
<!-- node@20 -->
<!-- python@20 -->

Include the `propertyName` that contains the rules you want to test in your sandbox in the request body.

# Specify a property version

<!-- curl@10 -->
<!-- node@21 -->
<!-- python@21 -->

Include a value for the `propertyVersion`.

# Call the API

<!-- curl@1-100 -->
<!-- node@1-100 -->
<!-- python@1-100 -->

Run POST on the request URL, providing the request body object.

# GET the response

<!-- curl@0 -->
<!-- node@0 -->
<!-- python@0 -->

The response object provides detailed information about the newly created sandbox.

Use the the hypermedia _links to perform actions on the sandbox.