Skip to content

The micro-VM for AI agents — light enough to embed on your laptop, elastic enough to power an agentic cloud.

2.5 KB
Raw Blame

PreviewApi

All URIs are relative to http://localhost:3000

Method HTTP request Description
getBoxInboundMode GET /preview/{boxId}/inbound Read the inbound mode of a box
hasBoxAccess GET /preview/{boxId}/access Check if user has access to the box

getBoxInboundMode

string getBoxInboundMode()

Example

import {
    PreviewApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new PreviewApi(configuration);

let boxId: string; //ID of the box

const { status, data } = await apiInstance.getBoxInboundMode(
    boxId
);

Parameters

Name Type Description Notes
boxId [string] ID of the box

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Inbound mode of the box: `enabled` permits access subject to each tunnel policy; `disabled` rejects all callers -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

hasBoxAccess

boolean hasBoxAccess()

Example

import {
    PreviewApi,
    Configuration
} from './api';

const configuration = new Configuration();
const apiInstance = new PreviewApi(configuration);

let boxId: string; //

const { status, data } = await apiInstance.hasBoxAccess(
    boxId
);

Parameters

Name Type Description Notes
boxId [string]

Return type

boolean

Authorization

bearer, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 User access status to the box -

[Back to top] [Back to API list] [Back to Model list] [Back to README]