Lotta API Integration Demo

Beta

Live API calls using @lotta.supply/js-client

Demo Mode@lotta.supply/js-client

Available Endpoints

Code Example
import { LottaClient } from '@lotta.supply/js-client'

const client = new LottaClient({
  baseUrl: 'https://demo-api.lotta.supply',
  token: 'demo-token'
})

// Select an endpoint to see the code example
API Response

Select an endpoint to see the response

Key Features

🔗

Type-Safe API

Full TypeScript support with autocomplete and compile-time validation

Fast & Reliable

Built with Bun for optimal performance and developer experience

🔍

Complete Traceability

Track materials from waste collection to final products

🏢

Multi-Tenant

Secure organization isolation with cross-org tracking

🔄

Real-Time Updates

Live tracking updates across the supply chain

🌐

Open Source

Fully open source with permissive licensing

Get Started with @lotta.supply/js-client

Installation

# Using Bun (recommended)
bun add @lotta.supply/js-client

# Using npm
npm install @lotta.supply/js-client

# Using yarn
yarn add @lotta.supply/js-client

Quick Start

import { LottaClient } from '@lotta.supply/js-client'

const client = new LottaClient({
  baseUrl: 'https://api.lotta.supply',
  token: 'your-jwt-token'
})

// Create a lot
const lot = await client.createLot({
  materialTypeId: 'uuid',
  weight: 1000,
  unit: 'kg'
})