Skip to main content
The Runtime API lets you programmatically spin up sandboxes, deploy, and manage applications. Use it to integrate Runtime into your agent workflows or automation pipelines.

Base URL

For self-hosted instances, use your own API URL.

Authentication

All API requests require a Bearer token in the Authorization header:
Get your API key from app.runtm.com or create one via CLI:

API Scopes

API keys have specific permissions:

Endpoints

Deployments

Logs

Domains

User

Rate Limits

Error Responses

Errors return JSON with an error field:
Common HTTP status codes:

Idempotency

For POST requests, use the Idempotency-Key header to ensure safe retries:
If the same key is used again, the API returns the existing deployment instead of creating a new one.

SDKs

Python

Use the CLI module programmatically

HTTP Client

Use any HTTP client with the REST API