Skip to content

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

8.4 KB
Raw Blame

ApiKeysApi

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

Method HTTP request Description
createApiKey POST /api-keys Create API key
deleteApiKey DELETE /api-keys/{name} Delete API key
deleteApiKeyForUser DELETE /api-keys/{userId}/{name} Delete API key for user
getApiKey GET /api-keys/{name} Get API key
getCurrentApiKey GET /api-keys/current Get current API key's details
listApiKeys GET /api-keys List API keys

createApiKey

ApiKeyResponse createApiKey(createApiKey)

Example

import {
    ApiKeysApi,
    Configuration,
    CreateApiKey
} from './api';

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

let createApiKey: CreateApiKey; //
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.createApiKey(
    createApiKey,
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
createApiKey CreateApiKey
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

ApiKeyResponse

Authorization

bearer, oauth2

HTTP request headers

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

HTTP response details

Status code Description Response headers
201 API key created successfully. -

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

deleteApiKey

deleteApiKey()

Example

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

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

let name: string; //
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.deleteApiKey(
    name,
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
name [string]
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

void (empty response body)

Authorization

bearer, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 API key deleted successfully. -

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

deleteApiKeyForUser

deleteApiKeyForUser()

Example

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

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

let userId: string; //
let name: string; //
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.deleteApiKeyForUser(
    userId,
    name,
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
userId [string]
name [string]
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

void (empty response body)

Authorization

bearer, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status code Description Response headers
204 API key deleted successfully. -

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

getApiKey

ApiKeyList getApiKey()

Example

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

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

let name: string; //
let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.getApiKey(
    name,
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
name [string]
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

ApiKeyList

Authorization

bearer, oauth2

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 API key retrieved successfully. -

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

getCurrentApiKey

ApiKeyList getCurrentApiKey()

Example

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

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

let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.getCurrentApiKey(
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

ApiKeyList

Authorization

bearer, oauth2

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 API key retrieved successfully. -

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

listApiKeys

Array listApiKeys()

Example

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

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

let xBoxLiteOrganizationID: string; //Use with JWT to specify the organization ID (optional) (default to undefined)

const { status, data } = await apiInstance.listApiKeys(
    xBoxLiteOrganizationID
);

Parameters

Name Type Description Notes
xBoxLiteOrganizationID [string] Use with JWT to specify the organization ID (optional) defaults to undefined

Return type

Array

Authorization

bearer, oauth2

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 API keys retrieved successfully. -
500 Error fetching API keys. -

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