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

# Public API and SDK overview

> Understand Deepest Public API V1, choose the right entry point, interpret envelopes and errors, and navigate the generated OpenAPI Reference.

**Public API V1** is the single contract shared by the Deepest Web Console, HTTP clients, and the `@deepest/sdk` TypeScript SDK. It covers Account-owned Computers, Sandboxes, resources, SSH keys, Tools, Private Preview, Share links, Desktop, human assistance, and Vault Secrets—without exposing host administration or internal node controls.

## Choose an entry

> [card] [Web Console](https://docs.deepest.dev/quickstart.md)
>
> Interactive human management for Machines, Invite activation, Agent Keys, and Desktop takeover.

> [card] [Standard SSH](https://docs.deepest.dev/connect/ssh.md)
>
> Interactive Linux shell, SFTP file transfer, local TCP port forwarding, and VS Code Remote SSH.

> [card] [TypeScript SDK](https://docs.deepest.dev/api-and-sdk/typescript.md)
>
> Zero-dependency ESM client (`@deepest/sdk`) with typed envelopes and 1:1 error fidelity.

> [card] [HTTP API & Reference](https://docs.deepest.dev/api-reference.md)
>
> Direct REST JSON requests documented by the generated OpenAPI 3.0.3 Reference.

> [!NOTE]
>
> Deepest does not distribute an official CLI or MCP server. Operate programmatically via `@deepest/sdk` or HTTP, and interactively via standard OpenSSH tools.

## Control API base URL

The default Deepest control origin is `https://console.deepest.dev` (or your deployment's configured control origin). Pass the origin alone to the SDK—operation paths already include `/v1`. Never use a Preview, Share, or Desktop Viewer runtime URL as an API base.

Every control origin serves its machine-readable OpenAPI 3.0.3 contract at `GET /openapi.json`:

```sh theme={null}
curl --fail --show-error --silent "${DEEPEST_API_URL:-https://console.deepest.dev}/openapi.json"
```

## Read the operation result

Every control API response uses a structured envelope:

* **Success (`ok: true`):** includes `resource_id`, `retry` (`safe` or `no-retry`), and an operation-specific `result`.
* **Failure (`ok: false`):** non-2xx HTTP status with `resource_id`, `retry` (`safe`, `query-first`, or `no-retry`), `error.code`, `error.message`, and optional `error.limit`, `error.retry_after_seconds`, or `error.details`.

A 2xx envelope does not replace task-level inspection: `exec` can succeed with a nonzero `exit_code`, `resize` can return `disposition: "restart_required"` without changing running Memory, and Vault grants can require a later Start.

The SDK returns valid envelopes untouched. Transport errors or malformed payloads produce a client-side `UNKNOWN` (`retry: "query-first"`) envelope, and the SDK never retries automatically. See [Errors](https://docs.deepest.dev/api-and-sdk/errors.md) and [Reliability and recovery](https://docs.deepest.dev/api-and-sdk/reliability.md).

## Match API capabilities to guides

While the [API Reference](https://docs.deepest.dev/api-reference.md) documents exact schemas, parameters, and response codes, each guide explains prerequisites and safe recovery:

* [Account resources](https://docs.deepest.dev/concepts/account-resources.md) before creating or scaling workloads
* [Computer lifecycle](https://docs.deepest.dev/computers/lifecycle.md) for stable IDs, Stop/Start, and Delete
* [Commands](https://docs.deepest.dev/connect/commands.md) for Exec arguments, timeouts, and long-running SSH jobs
* [Sandbox lifecycle](https://docs.deepest.dev/sandboxes/lifecycle.md) for idle policy and fixed 24-hour hard expiry
* [Vault](https://docs.deepest.dev/security/vault.md) for exact-host HTTPS substitution and rotation dispositions
* [Desktop and human assistance](https://docs.deepest.dev/desktop/human-assistance.md) for cooperative handoff
* [Private Preview](https://docs.deepest.dev/network/private-preview.md) and [Share](https://docs.deepest.dev/network/share.md) for Guest web ports

Standard SFTP and local port forwarding operate over [SSH](https://docs.deepest.dev/connect/ssh.md) rather than separate Deepest HTTP endpoints, and running a browser inside a Computer does not add a platform screenshot or DOM API.

## Versioning

* **Public API V1:** The stable product contract name (`/v1/...`).
* **OpenAPI 3.0.3:** The schema format served at `GET /openapi.json`.
* **`@deepest/sdk@0.1.0`:** The MIT-licensed TypeScript/JavaScript ESM package on npm, versioned independently via SemVer for Node.js 18+.

Continue with [Authentication](https://docs.deepest.dev/api-and-sdk/authentication.md) or [TypeScript SDK setup](https://docs.deepest.dev/api-and-sdk/typescript.md).


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