- Developers running Runtime from their terminal or local scripts to spin up cloud sessions
- Coding agents (Claude Code, Cursor, Codex, etc.) that call the API to orchestrate sessions programmatically
- CI/CD pipelines that build, deploy, and roll back applications
- Internal tools and dashboards that read activity, manage secrets, or sync templates across orgs
Base URL
All endpoints share the same base URL:/api/* routes. For self-hosted instances where you call the backend directly, use https://your-host/api instead.
Quick start
1
Create an API key
Sign in at app.runtm.com, open Settings > API Keys, and click Create key. Choose a scope preset (e.g. Session automation) or pick custom scopes. The raw secret is shown once; copy it immediately.
2
Verify the key
3
Make your first call
List the sessions the key can see:
Capability map
Use this map to find the right slice of the API for what you want to do.Sessions
Create cloud development sessions, manage their lifecycle, send prompts, and stream agent output.
Deploy
Scaffold, validate, and ship sessions to production with streaming logs.
Templates
Manage organization templates, build snapshots, and the secrets they require.
Secrets
Personal and team secret stores. Values are write-only.
Context
System instructions, skills, MCP servers, docs, and knowledge sources that shape agent behavior.
Guardrails
Allowlists, deploy permissions, org limits, and cleanup policies.
Activity
Personal and team telemetry: prompts, usage, traces, and member breakdowns.
Integrations
GitHub App, GitHub user tokens, Linear, and Slack.
Provider Keys
Bring-your-own Anthropic and OpenAI keys, resolved key status, and current plan.
WebSockets
Real-time terminal, prompt streaming, and collaboration presence.
Foundations
Every endpoint page assumes you have read these short pages:Authentication
How to send your API key and how the personal vs organization distinction works.
Scopes & Permissions
What each scope unlocks, role ceilings, and the legacy scope expansion table.
Errors & Rate Limits
Standard error shape, status codes, and the headers you should observe.
Conventions
Pagination, organization headers, datetimes, idempotency, and content types.
What is not covered
A few classes of endpoints exist in the platform but are intentionally absent from the API reference:- Dashboard-only routes. Anything that requires a browser session (e.g. some
/api/keysmutations, billing portal redirects, GitHub App install flow) is not part of the programmatic surface. - Internal service-to-service routes. Frontend-to-backend authentication and platform proxy mechanics are not part of the customer surface.
- Webhook receivers. Stripe, Slack events, Linear webhooks, GitHub App webhook callbacks, and similar inbound endpoints are platform infrastructure, not customer endpoints.