import { Sandbox } from 'novita-sandbox'// Start a sandbox and attach custom metadata.const sbx = await Sandbox.create({ metadata: { userId: '123', },})// Retrieve active sandboxes and inspect their metadata.const page = await Sandbox.list()const active = await page.nextItems()console.log(active[0].metadata)// Example output:// { userId: '123' }
from novita_sandbox.core import Sandbox# Start a sandbox and attach custom metadata.sbx = Sandbox.create( metadata={ "userId": "123", },)# Retrieve active sandboxes and inspect their metadata.page = Sandbox.list()active = page.next_items()print(active[0].metadata)# Example output:# {"userId": "123"}