Sandbox information is bound to the API key, so you can only query the sandbox information associated with the current API key.
Request Code 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":[{"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