LEONARDX / WORKSPACE

SDK

Typed client for supported LeonardX API operations.

@leo-os/sdk · v2.0.0 · npm package

Use the API from typed TypeScript.

@leo-os/sdk@2.0.0 is published on npm and exposes LeoClient, typed API errors, project operations and webhook signature verification. Keep API keys on a server and use the public /api/v1 contract.

Install from npm
npm install @leo-os/sdk

import { LeoClient } from '@leo-os/sdk';

const leo = new LeoClient({ apiKey: process.env.LEO_API_KEY! });
const projects = await leo.projects.list();

The published package targets the live v1 API. Keep API keys in server-side code.

Integration StudioSimulation · no request sent

Follow the integration, one step at a time.

Explore real LeonardX contracts with sample code and a simulated terminal. This walkthrough never uses credentials, contacts endpoints, or changes account data.

Source-backed examples

Walkthrough scenario

Use the typed client that is present in the repository package.

Install the published package

The SDK is published as @leo-os/sdk@2.0.0 and targets the live /api/v1 contract.

terminal1 / 2
npm install @leo-os/sdk

Execution preview

Synchronized to the highlighted code

Published package instruction · not executed
leo · sdksimulated

$ npm install @leo-os/sdk

[SIMULATION] Commands are shown, not executed

Package: @leo-os/sdk@2.0.0

What is live? The examples describe existing API, SDK, CLI, and webhook behavior. This preview itself is local UI only and does not report a real execution.

List projects: step 1 of 2. Install the published package