Skip to main content
The REST API is the platform underneath the SDK, CLI, and dashboard — anything they do, you can do with an HTTP request. In practice, reach for the SDK first: it handles the base URLs, auth headers, and response envelopes below for you. Drop to raw REST when you need a language the SDK doesn’t cover, or full control over the wire.

API Bases

RunTools exposes a few public API bases. The SDK routes calls for you, so most applications only need RUNTOOLS_API_KEY.
Tool Hub, custom tools, installed tool credentials, and secrets:
OAuth account connections:
Workspace file APIs:
Billing, credits, usage, and top-ups:
The TypeScript SDK routes calls to the correct API base when you use rt.sandbox, rt.agent, rt.tools, rt.secrets, rt.auth, or rt.billing.

Authentication

API keys use the X-API-Key header:
Dashboard and CLI sessions use bearer tokens:

Create an API key

API keys are managed from the Credentials page or through the CLI.

Request Format

JSON endpoints expect:

Response Format

Most APIs return a JSON envelope:
Some execution endpoints return raw engine payloads for compatibility. The SDK normalizes the common cases.

Errors

Pagination

List endpoints that page results return cursor metadata:
The SDK exposes both high-level collection methods and page-aware methods where pagination matters. For sandboxes, use rt.sandbox.list() for all pages or rt.sandbox.listPage() when you need the cursor.

Core Resources

Sandboxes

Create sandboxes, execute commands, pause, resume, and destroy them.

Workspaces

Manage persistent workspaces and file operations.

Agents

Create agents and run one-shot or threaded agent tasks.

Threads

Read cloud thread history, subscribe to live frames, and publish local runtime events.

Models

List selectable Platform/BYOK models and use the platform model proxy.

RunMesh

Link local devices and manage private mesh nodes.

Activity

Query customer-visible resource activity.

Billing

Read credits, usage, top-ups, and customer-facing resource billing summaries.

Tools

Search Tool Hub, install tools, store credentials, and execute actions.

SDK

Use the SDK when you can. It handles service URLs, authentication headers, response envelopes, and common validation.