Skip to main content
POST
/
sandbox
Python
from acontext import AcontextClient

client = AcontextClient(api_key='sk_project_token')

# Create a new sandbox
sandbox = client.sandboxes.create()
print(f"Sandbox ID: {sandbox.sandbox_id}")
print(f"Status: {sandbox.sandbox_status}")
{
  "code": 123,
  "error": "<string>",
  "msg": "<string>",
  "data": {
    "sandbox_created_at": "<string>",
    "sandbox_expires_at": "<string>",
    "sandbox_id": "<string>",
    "sandbox_status": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Project Bearer token (e.g., "Bearer sk-ac-xxxx")

Response

201 - application/json

Created

code
integer
error
string
msg
string
data
object