> ## Documentation Index
> Fetch the complete documentation index at: https://docs.boxlite.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloud REST API

> Find the BoxLite Cloud HTTP API reference, Swagger explorer, authentication guide, and Box REST API examples.

Integrate BoxLite Cloud into your application with HTTP requests. Use the API explorer to inspect platform endpoints, or the Box REST API to operate remote sandboxes.

> [card] [Open Cloud API reference](https://api.boxlite.ai/)
>
> Browse the live Swagger API explorer for platform endpoints, request parameters, and response schemas.

## Choose the API you need

Both surfaces use the same API host, but their routes and authentication requirements differ.

| You want to… | Start here |
| - | - |
| Explore platform interfaces such as images, volumes, and preview access | [Cloud API reference ↗](https://api.boxlite.ai/) — the Swagger explorer lists `/api/...` routes. Check each operation's authorization requirements. |
| Create and operate boxes through the SDK-compatible REST interface | [Box REST API guide](https://docs.boxlite.ai/guides/agent-service-endpoint.md) — Cloud uses `/v1/...` routes. These routes are separate from the platform Swagger listing. |
| Get a credential for Cloud requests | [API keys and authentication](https://docs.boxlite.ai/cloud/api-keys.md) |

> [!NOTE]
>
> The explorer also includes operations that require additional roles or authentication. An endpoint appearing in Swagger does not mean every Cloud API key can call it.

## API host and authentication

**Base URL:** `https://api.boxlite.ai`

Open that URL in a browser to view Swagger. In your HTTP client, append the exact route for the operation you need. The [console](https://app.boxlite.ai) is where you manage your account and credentials; it is not the API host.

For the Box REST API, send your Cloud API key as a bearer token:

```http theme={"theme":{"light":"github-light","dark":"github-dark"}}
Authorization: Bearer <YOUR_API_KEY>
```

Create a key with the permissions your application needs using [API keys and authentication](https://docs.boxlite.ai/cloud/api-keys.md). Keep it on your server or workstation, outside source control and browser code. For platform routes, follow the authentication and organization requirements shown for the specific operation.

## Make a read-only Box API request

In Bash or Zsh, read your key without saving it in shell history, then list your boxes:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
printf 'BoxLite Cloud API key: '
read -rs BOXLITE_API_KEY
printf '\n'
export BOXLITE_API_KEY

curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer $BOXLITE_API_KEY" \
  https://api.boxlite.ai/v1/boxes
```

This request lists boxes without creating or changing resources. If authentication fails, check your key and its expiration. For the complete Box REST workflow and Cloud connection settings, see the [Box REST API guide](https://docs.boxlite.ai/guides/agent-service-endpoint.md) and [Cloud authentication guide](https://docs.boxlite.ai/cloud/api-keys.md).

## Choose a client

* **REST API:** use HTTP from your preferred language or service. Start with the appropriate reference above.
* **SDK:** use the [Python or TypeScript examples](https://docs.boxlite.ai/cloud/box-from-code.md) to manage boxes from application code.
* **CLI:** follow the [Cloud deployment quickstart](https://docs.boxlite.ai/cloud/quickstart.md) to create and publish an application from your terminal.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.