Skip to content

Create, list, get, change and delete SVMs, and run the lifecycle actions

Resource, request and plan limits are listed on Limits.

Download OpenAPI specification · Version 0.1.0

List agent sessions

GET
/agent-sessions

Returns the agent sessions of the organization, newest change first, at most 200; a working or blocked session of an SVM that is not running reads paused. Without the project query, the call returns every project that the key reads.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Query Parameters

project?string

The project id or name to list; without it the call lists every project that the key reads. An unknown project answers 404 project_not_found.

seen?string

The endpoint of this browser's push subscription, which marks only that subscription as seen so the person's other browsers still get the push; without it nothing is marked.

Length1 <= length <= 2048

Response Body

The agent sessions that the credential reads.

application/json
  1. response

The agent sessions that the credential reads.

sessions*array<>

The sessions of the organization, newest change first, at most 200.

Example Request
curl -X GET 'https://api.slashinfra.com/agent-sessions'
Example Response
{  "sessions": [    {      "agent": "claude",      "at_ms": 1767225600000,      "changed_ms": 1767225600000,      "cwd": "/home/user/project",      "id": "ags_0123456789ab",      "kind": "permission",      "message": "May I edit src/main.rs?",      "project": "proj_6f1c0f0e8a",      "session": "term-1234/build",      "state": "blocked",      "svm": "6f1c0f0e8a",      "svm_name": "build-1",      "svm_state": "running",      "terminal": "t3"    }  ]}

Delete an agent session

DELETE
/agent-sessions/{id}

Deletes one agent session of the organization. An unknown id, or the id of another organization, is 404 not_found.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

id*string

The agent session id.

Length1 <= length

Response Body

The agent session is deleted, with no body.

response?stringtext/plain

The agent session is deleted, with no body.

Example Request
curl -X DELETE 'https://api.slashinfra.com/agent-sessions/ags_0123456789ab'
Example Response
"string"

List SVMs

GET
/svms

Returns one page of the SVMs of one project, newest first; limit is 1 to 200 and 100 by default. Filter with label.<key>=<value> pairs, which are ANDed, and send next_cursor as cursor to read the next page.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

limit?integer

The SVMs of this page: a whole number from 1 to 200, 100 by default.

Range1 <= value <= 200
cursor?string

The next_cursor of the previous page, opaque and returned by this route; an unknown or malformed cursor answers 400 invalid_cursor.

Response Body

One page of the SVMs of a project.

application/json
  1. response

One page of the SVMs of a project.

next_cursor*|

Send it as cursor to read the next page; it carries the creation time and id of the last SVM of this page.

svms*array<>

The SVMs of this page, newest first; a project with no SVM gets [].

Example Request
curl -X GET 'https://api.slashinfra.com/svms'
Example Response
{  "next_cursor": "MTc2NzIyNTYwMDAwMCw2ZjFjMGYwZThh",  "svms": [    {      "concurrency": 64,      "cpu_ceiling_millis": 2000,      "cpu_millis": 1000,      "created_ms": 1767225600000,      "disk_mib": 51200,      "egress": {        "allowed_domains": [          "api.example.com"        ],        "filtering": true      },      "env": {        "DEBUG": "1"      },      "expires_at": 1767484800000,      "generation": 1,      "github": "conn_6f1c0f0e8a",      "guest_vcpus": 2,      "id": "6f1c0f0e8a",      "image": "default",      "inbox": {        "allowed_senders": [          "ada@example.com"        ],        "enabled": true      },      "labels": {        "app": "web",        "tier": "api"      },      "memory_mib": 2048,      "name": "build-1",      "project": "proj_6f1c0f0e8a",      "readiness": {        "port": 5432,        "timeout_s": 30      },      "region": "eu-gra",      "secret_injections": [        {          "domain": "api.openai.com",          "header": "authorization",          "placeholder": "__TELEGRAM_BOT_TOKEN__",          "secret_id": "sec_6f1c0f0e8a",          "value_format": "raw",          "value_prefix": "Bearer "        }      ],      "sleep": {        "mode": "auto"      },      "state": "stopped",      "state_changed_ms": 1767225600000,      "tier": "shared",      "url": "https://6f1c0f0e8a.slashinfra.dev/bin/bash"    }  ]}

Create an SVM

POST
/svms

Creates an SVM in its project and starts it on its first request. Its profile, snapshot, fork source and secret injections must belong to the same project, and a dedicated create with no free whole core answers 409 dedicated_capacity; sizes and limits are in limits.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Request Body

The optional settings of the new SVM.

  1. body

The optional settings of the new SVM.

concurrency?number

The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the max_concurrency of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.

egress?

The optional domain filter of a workload; filtering is off by default.

env?

The environment of a workload: at most 128 variables and 32 KiB together. SVM_*, SI_*, proxy variables and HOME, USER and LOGNAME are refused.

fork_of?string

The SVM to fork: takes a snapshot named fork-of-<source>-<time> and creates this SVM from it; snapshot excludes this field.

github?|

A GitHub connection id of the organization.

if_absent?boolean

Return the existing SVM of the organization with the same name and its stored settings with 200 instead of 409 name_taken; it needs a name.

inbox?

The optional email inbox of a workload, off by default.

labels?

String labels of the SVM, at most 32, for the label.<key>=<value> filter of the list; a settings change replaces the map whole, and {} removes every label.

memory_mib?integer

The RAM of the new SVM in MiB: 2048, 4096, 8192 or 16384, or 4096, 8192 or 16384 on the dedicated tier; the default is 2048, the standard plan stops at 8192 on the shared tier and has no dedicated tier (403 size_not_allowed), the CPU follows at 1 vCPU per 2 GiB, and derived fields such as cpu_millis are refused.

Multiple Of2048
Range2048 <= value <= 16384
name?string

The name of the new SVM, unique in its project: ^[a-z][a-z0-9-]{0,31}$, and never a valid id; without one the SVM has none.

profile_id?string

The workload profile to copy, by id, or by name in the project of the request; its environment, inbox and egress blocks fill the blocks this request does not set, and a missing profile, or one of another project, answers 404 profile_not_found.

project?string

The project id or name that the SVM belongs to, default when omitted; its profile, snapshot, fork source and secret injections must belong to the same project, or the reference answers 404 not_found, and an unknown project answers 404 project_not_found.

readiness?|

The readiness of a declared service port: a request that waits on a wake is released when the port is ready.

region?string

The region to place the new SVM in; without one it takes the first preferred region with room, else any region, and an unknown region answers 400 unknown_region.

secret_injections?array<>

HTTPS secret injections of the new SVM, replacing the profile list whole; a client expands a preset from GET /secret-injection-presets into explicit rules.

sleep?

The sleep policy: {"mode":"auto"}, {"mode":"timer","after_s":1800} or {"mode":"on"}.

snapshot?string

The snapshot to start the new SVM from, by id, or by name in the project of the request; a creating snapshot is accepted and the first wake waits for it, and fork_of excludes this field (see snapshots).

tier?string
Value in"shared""dedicated"
ttl_s?number

The life of the new SVM in seconds, a whole number from 1 to 2592000 (30 days); the minute cron deletes the SVM when it expires, and without it the SVM lives until it is deleted.

Response Body

The SVM that the create made or reused, when it expires, its generation and its labels.

application/json
  1. response

The SVM that the create made or reused, when it expires, its generation and its labels.

expires_at*|

When the minute cron deletes the SVM, in milliseconds since the Unix epoch.

generation*integer

The generation of the SVM after the create: 1 for a new SVM, or the stored generation of the SVM that if_absent reused.

id*string

The id of the SVM, used as <svm> in si exec and the other commands.

labels*

String labels of the SVM, at most 32, for the label.<key>=<value> filter of the list; a settings change replaces the map whole, and {} removes every label.

project*string

The id of the project of the SVM.

region*|

The region of the SVM.

url*string

The terminal URL of the SVM: https://<id>.<SVM domain>/bin/bash.

Example Request
curl -X POST 'https://api.slashinfra.com/svms' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "expires_at": 1767484800000,  "generation": 1,  "id": "6f1c0f0e8a",  "labels": {    "app": "web",    "tier": "api"  },  "project": "proj_6f1c0f0e8a",  "region": "eu-gra",  "url": "https://6f1c0f0e8a.slashinfra.dev/bin/bash"}

Delete an SVM

DELETE
/svms/{id}

Permanently deletes the SVM with its disk, processes, terminals and preview connections; this cannot be undone. The SVM host answers 404 within 30 seconds.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

id*string

The SVM id: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz; a name is not accepted here.

Match^[0-9abcdefghjkmnpqrstvwxyz]{10}$

Header Parameters

if-match?string

The generation that the change expects, the generation of the last answer for this SVM; a different stored generation answers 412 generation_mismatch and changes nothing, and without the header the change is unconditional.

Response Body

The SVM is marked for deletion, and its processes, disk and record are deleted once the next node report confirms it.

response?stringtext/plain

The SVM is marked for deletion, and its processes, disk and record are deleted once the next node report confirms it.

Example Request
curl -X DELETE 'https://api.slashinfra.com/svms/6f1c0f0e8a'
Example Response
"string"

Get an SVM

GET
/svms/{ref}

Returns one SVM of the organization. An id resolves in every project; a name resolves in the project query, default when omitted.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The SVM id, or its name in the organization of the key: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz is an id, any other reference is a name.

Length1 <= length

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Response Body

One SVM of the organization.

application/json
  1. response

One SVM of the organization.

concurrency*number

The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the max_concurrency of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.

cpu_ceiling_millis*integer

The CPU ceiling of the SVM in millicores: twice the base CPU on the shared tier, the base CPU on the dedicated tier; the host enforces it as a cgroup quota.

cpu_millis*integer

The base CPU of the SVM in millicores: memory_mib * 1000 / 2048. 2048 MiB is 1000 millicores.

created_ms*integer

The creation time in milliseconds since the Unix epoch.

disk_mib*integer

The sparse virtual disk of every SVM, in MiB: a capacity limit, not purchased storage.

egress*

The domain filter of a workload; with filtering on, it permits only the listed destinations.

env*

The environment of a workload: at most 128 variables and 32 KiB together. SVM_*, SI_*, proxy variables and HOME, USER and LOGNAME are refused.

expires_at*|

When the minute cron deletes the SVM, in milliseconds since the Unix epoch.

generation*integer

The version of the intent of the SVM: each lifecycle or configuration change increments it, a node report such as falling asleep does not; send it as If-Match to make a change conditional.

github*|

The GitHub connection whose rules cover every GitHub host of the workload, or null.

guest_vcpus*integer

The virtual CPUs that the guest boots with: ceil(cpu_ceiling_millis / 1000) on the shared tier and cpu_millis / 1000 on the dedicated tier, reserved because CPU topology cannot change live, so it can exceed the base CPU allocation.

id*string

The SVM id: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz; a reference that does not match it is a name.

image*string

The guest image of the SVM, fixed at creation: default or the standalone Postgres image.

Value in"default""postgres"
inbox*

The inbox of a workload: whether it accepts mail and its sender rule.

labels*

String labels of the SVM, at most 32, for the label.<key>=<value> filter of the list; a settings change replaces the map whole, and {} removes every label.

memory_mib*integer

The RAM of the SVM in MiB, fixed at creation: 2048, 4096, 8192 or 16384 (4096 or more on the dedicated tier), and the CPU follows at 1 vCPU per 2 GiB.

name*|

The name of the SVM.

project*string

The id of the project of the SVM; a project name can repeat across projects of one organization, the id cannot.

readiness*|

The readiness of a declared service port: a request that waits on a wake is released when the port is ready.

region*|

The region of the SVM.

secret_injections*array<>

The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.

sleep*||

The sleep policy of an SVM: auto follows the workload; timer ignores background signals; on never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in auto and timer modes.

state*string

The reported runtime state: running, paused, stopped, or unknown when unavailable; a deleting SVM stays listed until its deletion is confirmed.

Value in"running""paused""stopped""unknown""deleting"
state_changed_ms*|

The time that control first saw the current runtime state, in milliseconds since the Unix epoch, or null when the state is unknown or was never recorded; it can lag the node report that changed the state.

tier*string
Value in"shared""dedicated"
url*string

The terminal URL of the SVM: https://<id>.<SVM domain>/bin/bash; opening it starts the SVM and a login shell in /home/user.

Example Request
curl -X GET 'https://api.slashinfra.com/svms/build-1'
Example Response
{  "concurrency": 64,  "cpu_ceiling_millis": 2000,  "cpu_millis": 1000,  "created_ms": 1767225600000,  "disk_mib": 51200,  "egress": {    "allowed_domains": [      "api.example.com"    ],    "filtering": true  },  "env": {    "DEBUG": "1"  },  "expires_at": 1767484800000,  "generation": 1,  "github": "conn_6f1c0f0e8a",  "guest_vcpus": 2,  "id": "6f1c0f0e8a",  "image": "default",  "inbox": {    "allowed_senders": [      "ada@example.com"    ],    "enabled": true  },  "labels": {    "app": "web",    "tier": "api"  },  "memory_mib": 2048,  "name": "build-1",  "project": "proj_6f1c0f0e8a",  "readiness": {    "port": 5432,    "timeout_s": 30  },  "region": "eu-gra",  "secret_injections": [    {      "domain": "api.openai.com",      "header": "authorization",      "placeholder": "__TELEGRAM_BOT_TOKEN__",      "secret_id": "sec_6f1c0f0e8a",      "value_format": "raw",      "value_prefix": "Bearer "    }  ],  "sleep": {    "mode": "auto"  },  "state": "stopped",  "state_changed_ms": 1767225600000,  "tier": "shared",  "url": "https://6f1c0f0e8a.slashinfra.dev/bin/bash"}

Change the settings of an SVM

PATCH
/svms/{ref}

Changes the name, environment, domain filter, secret injections, readiness, concurrency or labels; an omitted field keeps its stored value and a given block replaces it whole. Domain, injection, readiness and concurrency changes apply at once to a running SVM and at its next wake otherwise, and memory_mib, region, the profile and the snapshot are fixed at creation.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The SVM id, or its name in the organization of the key: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz is an id, any other reference is a name.

Length1 <= length

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Header Parameters

if-match?string

The generation that the change expects, the generation of the last answer for this SVM; a different stored generation answers 412 generation_mismatch and changes nothing, and without the header the change is unconditional.

Request Body

The settings to change: an omitted field keeps its stored value, a given block replaces the stored block whole, and an empty object answers 400 invalid_patch.

  1. body

The settings to change: an omitted field keeps its stored value, a given block replaces the stored block whole, and an empty object answers 400 invalid_patch.

concurrency?number

The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the max_concurrency of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.

egress?

The optional domain filter of a workload; filtering is off by default.

env?

The environment of a workload: at most 128 variables and 32 KiB together. SVM_*, SI_*, proxy variables and HOME, USER and LOGNAME are refused.

github?|

A GitHub connection id of the organization.

labels?

String labels of the SVM, at most 32, for the label.<key>=<value> filter of the list; a settings change replaces the map whole, and {} removes every label.

name?|

The new name, unique in the project: ^[a-z][a-z0-9-]{0,31}$, and never a valid id.

readiness?|

The readiness of a declared service port: a request that waits on a wake is released when the port is ready.

secret_injections?array<>

The HTTPS secret injections of the SVM, replacing the stored list whole; every rule must name a secret or connection of this organization.

Response Body

One SVM of the organization.

application/json
  1. response

One SVM of the organization.

concurrency*number

The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the max_concurrency of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.

cpu_ceiling_millis*integer

The CPU ceiling of the SVM in millicores: twice the base CPU on the shared tier, the base CPU on the dedicated tier; the host enforces it as a cgroup quota.

cpu_millis*integer

The base CPU of the SVM in millicores: memory_mib * 1000 / 2048. 2048 MiB is 1000 millicores.

created_ms*integer

The creation time in milliseconds since the Unix epoch.

disk_mib*integer

The sparse virtual disk of every SVM, in MiB: a capacity limit, not purchased storage.

egress*

The domain filter of a workload; with filtering on, it permits only the listed destinations.

env*

The environment of a workload: at most 128 variables and 32 KiB together. SVM_*, SI_*, proxy variables and HOME, USER and LOGNAME are refused.

expires_at*|

When the minute cron deletes the SVM, in milliseconds since the Unix epoch.

generation*integer

The version of the intent of the SVM: each lifecycle or configuration change increments it, a node report such as falling asleep does not; send it as If-Match to make a change conditional.

github*|

The GitHub connection whose rules cover every GitHub host of the workload, or null.

guest_vcpus*integer

The virtual CPUs that the guest boots with: ceil(cpu_ceiling_millis / 1000) on the shared tier and cpu_millis / 1000 on the dedicated tier, reserved because CPU topology cannot change live, so it can exceed the base CPU allocation.

id*string

The SVM id: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz; a reference that does not match it is a name.

image*string

The guest image of the SVM, fixed at creation: default or the standalone Postgres image.

Value in"default""postgres"
inbox*

The inbox of a workload: whether it accepts mail and its sender rule.

labels*

String labels of the SVM, at most 32, for the label.<key>=<value> filter of the list; a settings change replaces the map whole, and {} removes every label.

memory_mib*integer

The RAM of the SVM in MiB, fixed at creation: 2048, 4096, 8192 or 16384 (4096 or more on the dedicated tier), and the CPU follows at 1 vCPU per 2 GiB.

name*|

The name of the SVM.

project*string

The id of the project of the SVM; a project name can repeat across projects of one organization, the id cannot.

readiness*|

The readiness of a declared service port: a request that waits on a wake is released when the port is ready.

region*|

The region of the SVM.

secret_injections*array<>

The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.

sleep*||

The sleep policy of an SVM: auto follows the workload; timer ignores background signals; on never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in auto and timer modes.

state*string

The reported runtime state: running, paused, stopped, or unknown when unavailable; a deleting SVM stays listed until its deletion is confirmed.

Value in"running""paused""stopped""unknown""deleting"
state_changed_ms*|

The time that control first saw the current runtime state, in milliseconds since the Unix epoch, or null when the state is unknown or was never recorded; it can lag the node report that changed the state.

tier*string
Value in"shared""dedicated"
url*string

The terminal URL of the SVM: https://<id>.<SVM domain>/bin/bash; opening it starts the SVM and a login shell in /home/user.

Example Request
curl -X PATCH 'https://api.slashinfra.com/svms/build-1' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "concurrency": 64,  "cpu_ceiling_millis": 2000,  "cpu_millis": 1000,  "created_ms": 1767225600000,  "disk_mib": 51200,  "egress": {    "allowed_domains": [      "api.example.com"    ],    "filtering": true  },  "env": {    "DEBUG": "1"  },  "expires_at": 1767484800000,  "generation": 1,  "github": "conn_6f1c0f0e8a",  "guest_vcpus": 2,  "id": "6f1c0f0e8a",  "image": "default",  "inbox": {    "allowed_senders": [      "ada@example.com"    ],    "enabled": true  },  "labels": {    "app": "web",    "tier": "api"  },  "memory_mib": 2048,  "name": "build-1",  "project": "proj_6f1c0f0e8a",  "readiness": {    "port": 5432,    "timeout_s": 30  },  "region": "eu-gra",  "secret_injections": [    {      "domain": "api.openai.com",      "header": "authorization",      "placeholder": "__TELEGRAM_BOT_TOKEN__",      "secret_id": "sec_6f1c0f0e8a",      "value_format": "raw",      "value_prefix": "Bearer "    }  ],  "sleep": {    "mode": "auto"  },  "state": "stopped",  "state_changed_ms": 1767225600000,  "tier": "shared",  "url": "https://6f1c0f0e8a.slashinfra.dev/bin/bash"}

Run the pause action of an SVM

POST
/svms/{ref}/pause

Runs pause through the control API and answers once the node has run it; an id resolves in any project and a name in the project query. pause is a memory sleep: the processes stay and resume on the next request.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The SVM id, or its name in the organization of the key: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz is an id, any other reference is a name.

Length1 <= length

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Header Parameters

if-match?string

The generation that the change expects, the generation of the last answer for this SVM; a different stored generation answers 412 generation_mismatch and changes nothing, and without the header the change is unconditional.

Response Body

The pause action ran and answered with the new state and generation of the SVM.

application/json
  1. response

The pause action ran and answered with the new state and generation of the SVM.

generation*integer

The generation of the SVM after the action: a lifecycle action increments it, so a later change can name this value in If-Match.

id*string

The SVM id.

state*string

The state of the SVM after the action: running after start, paused after pause, and stopped after stop or after a pause of an SVM with no process, which sleeps on disk.

Example Request
curl -X POST 'https://api.slashinfra.com/svms/build-1/pause'
Example Response
{  "generation": 2,  "id": "6f1c0f0e8a",  "state": "paused"}

Run the start action of an SVM

POST
/svms/{ref}/start

Runs start through the control API and answers once the node has run it; an id resolves in any project and a name in the project query. start wakes a stopped or paused SVM now, and a request to the SVM host also wakes it.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The SVM id, or its name in the organization of the key: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz is an id, any other reference is a name.

Length1 <= length

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Header Parameters

if-match?string

The generation that the change expects, the generation of the last answer for this SVM; a different stored generation answers 412 generation_mismatch and changes nothing, and without the header the change is unconditional.

Response Body

The start action ran and answered with the new state and generation of the SVM.

application/json
  1. response

The start action ran and answered with the new state and generation of the SVM.

generation*integer

The generation of the SVM after the action: a lifecycle action increments it, so a later change can name this value in If-Match.

id*string

The SVM id.

state*string

The state of the SVM after the action: running after start, paused after pause, and stopped after stop or after a pause of an SVM with no process, which sleeps on disk.

Example Request
curl -X POST 'https://api.slashinfra.com/svms/build-1/start'
Example Response
{  "generation": 2,  "id": "6f1c0f0e8a",  "state": "running"}

Run the stop action of an SVM

POST
/svms/{ref}/stop

Runs stop through the control API and answers once the node has run it; an id resolves in any project and a name in the project query. stop is a disk-only sleep: the processes end and the disk stays.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The SVM id, or its name in the organization of the key: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz is an id, any other reference is a name.

Length1 <= length

Query Parameters

project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Header Parameters

if-match?string

The generation that the change expects, the generation of the last answer for this SVM; a different stored generation answers 412 generation_mismatch and changes nothing, and without the header the change is unconditional.

Response Body

The stop action ran and answered with the new state and generation of the SVM.

application/json
  1. response

The stop action ran and answered with the new state and generation of the SVM.

generation*integer

The generation of the SVM after the action: a lifecycle action increments it, so a later change can name this value in If-Match.

id*string

The SVM id.

state*string

The state of the SVM after the action: running after start, paused after pause, and stopped after stop or after a pause of an SVM with no process, which sleeps on disk.

Example Request
curl -X POST 'https://api.slashinfra.com/svms/build-1/stop'
Example Response
{  "generation": 2,  "id": "6f1c0f0e8a",  "state": "stopped"}

Wait for the observed state of an SVM

GET
/svms/{ref}/wait

Holds the request until the node reports the state that is named, then answers 200 with the SVM; an offline or unknown report never matches. It answers 409 generation_moved when generation is no longer current, and 408 wait_timeout at the deadline without changing anything.

Authorization

apiKey
headerAuthorizationBearer <token>

An API key (si_ and 43 base64url characters), sent as Authorization: Bearer si_...; see Using the API.

Path Parameters

ref*string

The SVM id, or its name in the organization of the key: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz is an id, any other reference is a name.

Length1 <= length

Query Parameters

state*string
Value in"running""paused""stopped"
generation*integer

The generation whose state the wait observes: the current generation of the SVM, or the wait answers 409 generation_moved.

Range1 <= value
timeout_s?integer

How long to wait: a whole number of seconds from 1 to 60, 30 by default; at the deadline the wait answers 408 wait_timeout.

Range1 <= value <= 60
project?string

The project id or name, default when omitted; an unknown project answers 404 project_not_found.

Response Body

One SVM of the organization.

application/json
  1. response

One SVM of the organization.

concurrency*number

The most requests that run on the SVM at once: a whole number from 1 to 1024, never above the max_concurrency of the plan. 64 unless a profile or the create names one, and never more than the node's own ceiling: a request above it waits in the SVM's queue instead of failing.

cpu_ceiling_millis*integer

The CPU ceiling of the SVM in millicores: twice the base CPU on the shared tier, the base CPU on the dedicated tier; the host enforces it as a cgroup quota.

cpu_millis*integer

The base CPU of the SVM in millicores: memory_mib * 1000 / 2048. 2048 MiB is 1000 millicores.

created_ms*integer

The creation time in milliseconds since the Unix epoch.

disk_mib*integer

The sparse virtual disk of every SVM, in MiB: a capacity limit, not purchased storage.

egress*

The domain filter of a workload; with filtering on, it permits only the listed destinations.

env*

The environment of a workload: at most 128 variables and 32 KiB together. SVM_*, SI_*, proxy variables and HOME, USER and LOGNAME are refused.

expires_at*|

When the minute cron deletes the SVM, in milliseconds since the Unix epoch.

generation*integer

The version of the intent of the SVM: each lifecycle or configuration change increments it, a node report such as falling asleep does not; send it as If-Match to make a change conditional.

github*|

The GitHub connection whose rules cover every GitHub host of the workload, or null.

guest_vcpus*integer

The virtual CPUs that the guest boots with: ceil(cpu_ceiling_millis / 1000) on the shared tier and cpu_millis / 1000 on the dedicated tier, reserved because CPU topology cannot change live, so it can exceed the base CPU allocation.

id*string

The SVM id: ten symbols of 0123456789abcdefghjkmnpqrstvwxyz; a reference that does not match it is a name.

image*string

The guest image of the SVM, fixed at creation: default or the standalone Postgres image.

Value in"default""postgres"
inbox*

The inbox of a workload: whether it accepts mail and its sender rule.

labels*

String labels of the SVM, at most 32, for the label.<key>=<value> filter of the list; a settings change replaces the map whole, and {} removes every label.

memory_mib*integer

The RAM of the SVM in MiB, fixed at creation: 2048, 4096, 8192 or 16384 (4096 or more on the dedicated tier), and the CPU follows at 1 vCPU per 2 GiB.

name*|

The name of the SVM.

project*string

The id of the project of the SVM; a project name can repeat across projects of one organization, the id cannot.

readiness*|

The readiness of a declared service port: a request that waits on a wake is released when the port is ready.

region*|

The region of the SVM.

secret_injections*array<>

The HTTPS secret injections of a workload, in order; no two rules share a domain and header or a domain and placeholder.

sleep*||

The sleep policy of an SVM: auto follows the workload; timer ignores background signals; on never sleeps. An open terminal, or a preview that moves data, keeps the SVM awake in auto and timer modes.

state*string

The reported runtime state: running, paused, stopped, or unknown when unavailable; a deleting SVM stays listed until its deletion is confirmed.

Value in"running""paused""stopped""unknown""deleting"
state_changed_ms*|

The time that control first saw the current runtime state, in milliseconds since the Unix epoch, or null when the state is unknown or was never recorded; it can lag the node report that changed the state.

tier*string
Value in"shared""dedicated"
url*string

The terminal URL of the SVM: https://<id>.<SVM domain>/bin/bash; opening it starts the SVM and a login shell in /home/user.

Example Request
curl -X GET 'https://api.slashinfra.com/svms/build-1/wait?state=running&generation=1'
Example Response
{  "concurrency": 64,  "cpu_ceiling_millis": 2000,  "cpu_millis": 1000,  "created_ms": 1767225600000,  "disk_mib": 51200,  "egress": {    "allowed_domains": [      "api.example.com"    ],    "filtering": true  },  "env": {    "DEBUG": "1"  },  "expires_at": 1767484800000,  "generation": 1,  "github": "conn_6f1c0f0e8a",  "guest_vcpus": 2,  "id": "6f1c0f0e8a",  "image": "default",  "inbox": {    "allowed_senders": [      "ada@example.com"    ],    "enabled": true  },  "labels": {    "app": "web",    "tier": "api"  },  "memory_mib": 2048,  "name": "build-1",  "project": "proj_6f1c0f0e8a",  "readiness": {    "port": 5432,    "timeout_s": 30  },  "region": "eu-gra",  "secret_injections": [    {      "domain": "api.openai.com",      "header": "authorization",      "placeholder": "__TELEGRAM_BOT_TOKEN__",      "secret_id": "sec_6f1c0f0e8a",      "value_format": "raw",      "value_prefix": "Bearer "    }  ],  "sleep": {    "mode": "auto"  },  "state": "stopped",  "state_changed_ms": 1767225600000,  "tier": "shared",  "url": "https://6f1c0f0e8a.slashinfra.dev/bin/bash"}