Sandbox information is bound to the API key, so you can only query the sandbox information associated with the current API key.
Request
Sandbox name provided at creation
Example:Bearer {{YOUR_API_KEY}}
Request samples
curl --location --request GET 'https://api.302.ai/302/sandbox/list?sandbox_name&sandbox_id' \
--header 'Authorization: Bearer sk-jls4AaVBGoe1GwZD64qZA1qyKTN1MPHa4NmvH1cT68z7K1Zz'
Responses
application/json sandboxes
array [object {7}]
required{"sandboxes":[{"sandbox_id":"in4kel8o0ivuzqllab7ln-4b1cc5d5","sandbox_name":"my sandbox","sandbox_template":"default","metadata":{},"envs":{},"created_at":1742895472,"max_alive_time":300}]}
Modified at 2025-03-27 02:49:49