The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.
VolumesApi
All URIs are relative to http://localhost:3000
| Method | HTTP request | Description |
|---|---|---|
| createVolume | POST /volumes | Create a new volume |
| deleteVolume | DELETE /volumes/{volumeId} | Delete volume |
| getVolume | GET /volumes/{volumeId} | Get volume details |
| listVolumes | GET /volumes | List all volumes |
createVolume
VolumeDto createVolume(createVolume)
Example
import {
VolumesApi,
Configuration,
CreateVolume
} from './api';
const configuration = new Configuration();
const apiInstance = new VolumesApi(configuration);
let createVolume: CreateVolume; //
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)
const { status, data } = await apiInstance.createVolume(
createVolume,
xBoxLiteOrganizationID
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| createVolume | CreateVolume | ||
| xBoxLiteOrganizationID | [string] | Use with JWT to specify the organization ID | (optional) defaults to undefined |
Return type
VolumeDto
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | The volume has been successfully created. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
deleteVolume
deleteVolume()
Example
import {
VolumesApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new VolumesApi(configuration);
let volumeId: string; //ID of the volume
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)
const { status, data } = await apiInstance.deleteVolume(
volumeId,
xBoxLiteOrganizationID
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| volumeId | [string] | ID of the volume | |
| xBoxLiteOrganizationID | [string] | Use with JWT to specify the organization ID | (optional) defaults to undefined |
Return type
void (empty response body)
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: Not defined
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | Volume has been marked for deletion | - |
| 409 | Volume is in use by one or more boxes | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
getVolume
VolumeDto getVolume()
Example
import {
VolumesApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new VolumesApi(configuration);
let volumeId: string; //ID of the volume
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)
const { status, data } = await apiInstance.getVolume(
volumeId,
xBoxLiteOrganizationID
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| volumeId | [string] | ID of the volume | |
| xBoxLiteOrganizationID | [string] | Use with JWT to specify the organization ID | (optional) defaults to undefined |
Return type
VolumeDto
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | Volume details | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
listVolumes
Array listVolumes()
Example
import {
VolumesApi,
Configuration
} from './api';
const configuration = new Configuration();
const apiInstance = new VolumesApi(configuration);
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)
let includeDeleted: boolean; //Include deleted volumes in the response (optional) (default to undefined)
const { status, data } = await apiInstance.listVolumes(
xBoxLiteOrganizationID,
includeDeleted
);
Parameters
| Name | Type | Description | Notes |
|---|---|---|---|
| xBoxLiteOrganizationID | [string] | Use with JWT to specify the organization ID | (optional) defaults to undefined |
| includeDeleted | [boolean] | Include deleted volumes in the response | (optional) defaults to undefined |
Return type
Array
Authorization
HTTP request headers
- Content-Type: Not defined
- Accept: application/json
HTTP response details
| Status code | Description | Response headers |
|---|---|---|
| 200 | List of all volumes | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]