Runtime Ci API
The ci API from Runtime, for ci.
Operations 36
POST
/v2/ci/{id}:exec
Runs a command as a process and returns it once it ended, with its output; with…
#
PUT
/v2/ci/{id}/files
Writes the request's bytes to a file as they come, of any size (Content-Length…
#
GET
/v2/ci/{id}/processes/{process}/output
Returns a process's output after a cursor, and the cursor to read on from.
#
POST
/v2/ci/{id}/processes/{process}:write
Sends input to a process started with stdinOpen or a pty, and returns how much…
#
POST
/v2/ci/{id}/processes/{process}:signal
Sends a signal to a process and its group; a process that ended is not…
#
POST
/v2/ci/{id}/processes/{process}:resize
Resizes the terminal of a process started with a pty (its window's columns and…
#
GET
/v2/ci/{id}/processes
Lists a CI machine's processes, newest first: those running and those that…
#
POST
/v2/ci/{id}/files:remove
Removes a file, a link or a directory (recursive for one with contents).
#
GET
/v2/ci/{id}/files/stat
Returns what is at a path: a file, a directory or a link, or nothing (exists…
#
GET
/v2/ci/{id}/files/archive
Returns a folder as a tar archive (`application/x-tar`, or `application/gzip`…
#
PUT
/v2/ci/{id}/files/archive
Unpacks the request's tar archive (gzip-compressed or not, told by its first…
#
POST
/v2/ci/{id}/files/archive/uploads
Begins a folder's upload in parts: tar starts in the ci, unpacking into the…
#
PUT
/v2/ci/{id}/files/archive/uploads/{upload}
Sends the request's bytes, a part of the archive at its offset, into tar's…
#
POST
/v2/ci/{id}/files/archive/uploads/{upload}:commit
Ends a folder upload's input and returns once tar has ended, as an exec returns…
#
POST
/v2/ci/{id}/files/archive/uploads/{upload}:abort
Stops a folder upload's tar; what it unpacked so far stays
#
POST
/v2/ci/{id}/files:rename
Moves a file, a link or a directory; refused 409 when something is at its new…
#
POST
/v2/ci/{id}/files:link
Makes an expiring address for one file that anyone may open with no API key…
#
POST
/v2/ci/{id}/files:revokeLinks
Ends every file link made for a CI machine so far; links made after work
#
PUT
/v2/ci/{id}/network
Replaces where a CI machine may connect out, for its next connection and within…
#
GET
/v2/ci/{id}/metrics
Returns a CI machine's CPU, memory, disks and pressure, as its host reads them…
#
POST
/v2/ci/{id}:fork
Copies a CI machine as it is now, memory and disk, into `count` copies of its…
#
POST
/v2/ci/{id}:snapshot
Keeps a CI machine's memory and disk as they are now, a snapshot to start ci…
#
POST
/v2/ci/{id}:update
Changes its name, labels, idle pause, maxCost, autoWake, lifetime, delete…
#
GET
/v2/ci/{id}/screenshot
Returns what a CI machine's screen shows now, as `image/png` (or `image/jpeg`)…
#
POST
/v2/ci/{id}:act
Moves, clicks, drags and scrolls the mouse and types on the keyboard of a CI…
#
POST
/v2/ci/{id}:runCode
Runs a cell of Python in a CI machine as a notebook does, in a Jupyter kernel…
#
Specifications
Schemas & Data
JSONSchema
https://artifacts.apis.io/withruntime-com/json-schema/withruntime-com-sandbox-create-schema.json
JSONSchema
https://artifacts.apis.io/withruntime-com/json-schema/withruntime-com-sandbox-schema.json
JSONSchema
https://artifacts.apis.io/withruntime-com/json-schema/withruntime-com-machine-update-schema.json