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.
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.
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.
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.
npm install @leo-os/sdkExecution preview
Synchronized to the highlighted code
$ npm install @leo-os/sdk
[SIMULATION] Commands are shown, not executed
Package: @leo-os/sdk@2.0.0
List projects: step 1 of 2. Install the published package