REFERENCE

SDK

The official TypeScript SDK wraps every /v2/* endpoint with typed signatures, auto-retry, ETag-aware document fetches and bulk helpers.

Install

npm i @cleo-legal/sdk

Use

import { LegalData } from '@cleo-legal/sdk';

const ld = new LegalData({ apiKey: process.env.CLEO_LEGAL_API_KEY! });

const { data } = await ld.search({ q: 'GDPR', country: 'eu', limit: 3 });
console.log(data.results[0].title);

Full SDK reference coming soon. In the meantime see the REST reference — every method maps 1:1 to an endpoint.