> For the complete documentation index, see [llms.txt](https://docs.release.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.release.com/reference-documentation/release-api/ai-sandbox-api.md).

# AI Sandbox API

The AI Sandbox API provides endpoints for managing sandbox sessions — isolated compute environments for running code, executing commands, and managing persistent memory. These endpoints run on the ephemeral environment backend, not `api.release.com`.

## Base URL

The base URL is scoped to your environment handle:

```
https://backend-{handle}-envs.gcp.release.com
```

For example, if your environment handle is `thor`:

```
https://backend-thor-envs.gcp.release.com
```

## Authentication

See [Authentication](/reference-documentation/release-api/authentication.md) for setup. All AI Sandbox endpoints use user authentication (`X-User-Email` + `X-User-Token`).

## Resources

| Resource                                                                              | Description                                                |
| ------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| [Sessions](/reference-documentation/release-api/ai-sandbox-api/sessions.md)           | Create and manage sandbox sessions, templates, and classes |
| [Executions](/reference-documentation/release-api/ai-sandbox-api/executions.md)       | Run commands in a sandbox session                          |
| [Snapshots](/reference-documentation/release-api/ai-sandbox-api/snapshots.md)         | Create and restore session snapshots                       |
| [Events](/reference-documentation/release-api/ai-sandbox-api/events.md)               | List events and subscribe to real-time SSE stream          |
| [Memory Stores](/reference-documentation/release-api/ai-sandbox-api/memory-stores.md) | Create vector stores for semantic search                   |
| [File Uploads](/reference-documentation/release-api/ai-sandbox-api/file-uploads.md)   | Upload files for use in sessions                           |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.release.com/reference-documentation/release-api/ai-sandbox-api.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
