inis.run
API reference

API overview

REST API for sandbox execution and session management.

The execution API is versioned under /v1. All endpoints accept JSON and require bearer authentication.

Base URL: https://api.inis.run

Each endpoint in the reference shows the HTTP method, path, request body, and response shape. For interactive exploration, use the OpenAPI spec or the CLI.

Endpoints

MethodPathDescription
POST/v1/sessions/execStateless run in a throwaway session
GET/v1/sessionsList sessions
POST/v1/sessionsCreate session
GET/v1/sessions/{id}Get session
DELETE/v1/sessions/{id}Destroy session
POST/v1/sessions/{id}/execRun command
POST/v1/sessions/{id}/processesStart a named background process
GET/v1/sessions/{id}/processesList named background processes
GET/DELETE/v1/sessions/{id}/processes/{name}Get / kill a named background process
GET/v1/sessions/{id}/processes/{name}/logsProcess output — buffered, or ?follow=true for SSE
GET/v1/sessions/{id}/filesRead a file, list a directory, or ?op=find/?op=grep
PUT/v1/sessions/{id}/filesWrite a file
PUT/v1/sessions/{id}/files/batchWrite several small files in one call
GET/v1/sessions/{id}/ptyInteractive terminal (WebSocket)
GET/v1/sessions/{id}/tunnelSSH tunnel (WebSocket)
POST/v1/sessions/{id}/exposePreview URL
POST/v1/sessions/{id}/unexposeRemove exposed port
GET/POST/v1/sessions/{id}/egressRead / set the egress policy
POST/v1/sessions/{id}/forkFork into N children
POST/v1/sessions/{id}/pausePause session
POST/v1/sessions/{id}/resumeResume session
POST / GET/v1/sessions/{id}/checkpointsCreate / list checkpoints
POST/v1/sessions/{id}/restoreRoll back to a checkpoint in place
POST / GET/v1/sessions/{id}/artifactsCapture / list artifacts
GET/v1/templatesList available templates
POST/v1/sessions/{id}/templatesSave a session as a template
POST/v1/sessions/batch/execFan-out command
GET/v1/orgAccount capacity and limits
GET/v1/healthzNode health (no auth)

Detail: Stateless execution · Sessions · Organisation · Errors · Networking & egress · Execution log · Artifacts · Templates

Account management (API keys, usage, billing) lives on the control plane at https://app.inis.run/v1/* — separate from execution. That's also where GET /v1/audit/events lives — see Execution log.

Session sizes

Set the size on session create with three fields:

FieldRangeDefault
vcpus1, 2, 4, 8required with mem_mb
mem_mb1 to 4 GB per vCPU, in 1 GB steps, at most 32 GB (32768)required with vcpus
disk_gb8 to 256; needs vcpus and mem_mb; not allowed with volume_id16

Billing is exact, with no size buckets: €0.002 per vCPU-hour and €0.0065 per GB-hour of RAM while awake, and, for a session without a volume, €0.04 per GB-month of disk_gb for the session's whole life, awake or paused. A session with a volume bills the volume instead. Omitting vcpus, mem_mb and disk_gb creates the server's default fixed size, which bills storage differently: paused storage at €0.03 per GiB-month of stored bytes, and the live workspace at the volume rate. Examples and a calculator are on pricing. A fork of a flexible-size session returns 409 for now. The older size field is a deprecated alias; new code should not use it.

OpenAPI

The full schema is available as openapi.yaml.

New to the primitives? Start with Concepts.

On this page