Skip to main content
Official SDKs for JavaScript/TypeScript and Python wrap the Quickstart HTTP API in a single typed client with matching shortcuts for all five decision kinds.

Install

View on npm

View on PyPI

JS/TS requires Node 18+ and has zero runtime dependencies (native fetch). Python requires 3.9+ and depends on httpx.

Initialize the client

Need a key? See Authentication.

Make a decision

Shortcuts

Each shortcut builds the matching question, makes one single decision, and returns just the result payload.

Batch requests

One document, many questions -> an aligned array/list. See Batch requests for grouped multi-document batching.
Both SDKs expose the same client surface: one client object, five decision kinds, matching shortcuts, errors, and retry behavior. Python additionally ships an AsyncLevantoClient with an identical API, used with await:

Full reference

Each README is a complete reference: every exported function and type, every default, and every behavior not obvious from the signatures.

levanto-js README

Full reference for the TypeScript/JavaScript client: every export, type, and behavior.

levanto-py README

Full reference for the Python client: every export, type, and behavior.