Deploy Runtype Sandbox
Deploy a live Runtype Sandbox preview. Omitted retention preserves unlimited legacy retention; explicit retention is metered and rollout-gated. Provider sleep or loss can end availability earlier.
Authentication
AuthorizationBearer
API key or Clerk session token
Request
This endpoint expects an object.
code
files
language
Allowed values:
managed
packageJson
port
retention
Allowed values:
sandboxId
sleepPolicy
startCommand
Response
Sandbox deployment result
sandboxId
status
effectivePolicy
error
output
previewUrl
stage
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
409
Conflict Error
500
Internal Server Error