Skip to content

Commit 084eb5b

Browse files
committed
Complete v1 of API reference
1 parent 508adb5 commit 084eb5b

File tree

6 files changed

+2104
-9
lines changed

6 files changed

+2104
-9
lines changed

src/content/docs/sandbox/api/commands.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Commands API
2+
title: Commands
33
pcx_content_type: concept
44
sidebar:
55
order: 1

src/content/docs/sandbox/api/files.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Files API
2+
title: Files
33
pcx_content_type: concept
44
sidebar:
55
order: 2

src/content/docs/sandbox/api/index.mdx

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,22 @@ The Sandbox SDK is organized into focused APIs:
4949
Execute Python and JavaScript code with rich outputs including charts, tables, and formatted data.
5050
</LinkTitleCard>
5151

52+
<LinkTitleCard
53+
title="Ports"
54+
href="/sandbox/api/ports/"
55+
icon="globe"
56+
>
57+
Expose services running in the sandbox via preview URLs. Access web servers and APIs from the internet.
58+
</LinkTitleCard>
59+
60+
<LinkTitleCard
61+
title="Sessions"
62+
href="/sandbox/api/sessions/"
63+
icon="wrench"
64+
>
65+
Advanced: Create isolated execution contexts with persistent shell state. Configure environment variables and manage container lifecycle.
66+
</LinkTitleCard>
67+
5268
</CardGrid>
5369

5470
## Quick reference
@@ -98,13 +114,6 @@ The Sandbox SDK is organized into focused APIs:
98114
|--------|-------------|
99115
| `gitCheckout()` | Clone a repository into the sandbox |
100116

101-
### Environment and sessions
102-
103-
| Method | Description |
104-
|--------|-------------|
105-
| `setEnvVars()` | Set environment variables (must be called first) |
106-
| `createSession()` | Create an isolated execution session |
107-
108117
## Common patterns
109118

110119
### Error handling

0 commit comments

Comments
 (0)