A short-lived token a browser uses to reach this one sandbox directly.
The token runs commands, reads and writes files and reaches previews in this sandbox only, and cannot stop, pause, extend, fork, snapshot or change it, create anything, or reach anything else. It acts as this key's agent and ends when this key is revoked. Lasts ttlSeconds (3600 unless asked, 60 to 86400). Needs a key that may run commands in the sandbox. The token is in this answer only.
Request
- Base URL: https://api.withruntime.com
- URL: https://api.withruntime.com/v1/sandboxes/{id}/sessions
- Auth: HTTP bearer
Path parameters
Resource identifier (UUID).
Headers
Replaying the same key with the same request within 24 hours returns the first result and never repeats the effect. A refusal is not kept: a request refused before it ran (no_capacity, busy, a limit) runs afresh when sent again with its key. The SDKs send one automatically; the server makes one when absent and returns it in the idempotency-key response header.
Request body
Response
Success
Changes
No recorded changes to this operation across all 1 revision of this API.