Skip to content

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

7.7 KB
Raw Blame

UsersApi

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

Method HTTP request Description
createUser POST /users Create user
getAuthenticatedUser GET /users/me Get authenticated user
getAvailableAccountProviders GET /users/account-providers Get available account providers
getUser GET /users/{id} Get user by ID
linkAccount POST /users/linked-accounts Link account
listUsers GET /users List all users
unlinkAccount DELETE /users/linked-accounts/{provider}/{providerUserId} Unlink account

createUser

createUser(createUser)

Example

import {
    UsersApi,
    Configuration,
    CreateUser
} from './api';

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

let createUser: CreateUser; //

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

Parameters

Name Type Description Notes
createUser CreateUser

Return type

void (empty response body)

Authorization

bearer, oauth2

HTTP request headers

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

HTTP response details

Status code Description Response headers
201 -

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

getAuthenticatedUser

User getAuthenticatedUser()

Example

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

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

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

Parameters

This endpoint does not have any parameters.

Return type

User

Authorization

bearer, oauth2

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 User details -

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

getAvailableAccountProviders

Array getAvailableAccountProviders()

Example

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

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

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

Parameters

This endpoint does not have any parameters.

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 Available account providers -

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

getUser

User getUser()

Example

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

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

let id: string; //

const { status, data } = await apiInstance.getUser(
    id
);

Parameters

Name Type Description Notes
id [string]

Return type

User

Authorization

bearer, oauth2

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 User details -

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

linkAccount

linkAccount(createLinkedAccount)

Example

import {
    UsersApi,
    Configuration,
    CreateLinkedAccount
} from './api';

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

let createLinkedAccount: CreateLinkedAccount; //

const { status, data } = await apiInstance.linkAccount(
    createLinkedAccount
);

Parameters

Name Type Description Notes
createLinkedAccount CreateLinkedAccount

Return type

void (empty response body)

Authorization

bearer, oauth2

HTTP request headers

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

HTTP response details

Status code Description Response headers
204 Account linked successfully -

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

listUsers

listUsers()

Example

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

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

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

Parameters

This endpoint does not have any parameters.

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
200 -

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

unlinkAccount

unlinkAccount()

Example

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

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

let provider: string; //
let providerUserId: string; //

const { status, data } = await apiInstance.unlinkAccount(
    provider,
    providerUserId
);

Parameters

Name Type Description Notes
provider [string]
providerUserId [string]

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 Account unlinked successfully -

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