You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: apps/web/src/app/(docs)/docs/sandbox/page.mdx
+31Lines changed: 31 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,6 +56,37 @@ sandbox.set_timeout(30)
56
56
```
57
57
</CodeGroup>
58
58
59
+
## Retrieve sandbox information
60
+
61
+
You can retrieve sandbox information like sandbox id, template, metadata, started at/end at date by calling the `getInfo` method in JavaScript or `get_info` method in Python.
62
+
63
+
<CodeGroup>
64
+
```js
65
+
import { Sandbox } from'@e2b/code-interpreter'
66
+
67
+
// Create sandbox with and keep it running for 60 seconds.
0 commit comments