DOCUMENTATION

Developer Docs

Integrate Lega into your existing workflow with our REST API and webhooks.

Authentication

API key management, OAuth flows, and secure access

REST API

Upload contracts, retrieve extractions, and manage flags

Webhooks

Real-time notifications for review completions

Quick Start

Get up and running in under 5 minutes

// Quick Start Example

const response = await fetch(
  'https://api.lega.ai/v1/reviews',
  {
    method: 'POST',
    headers: {
      'Authorization': 'Bearer lga_live_...',
      'Content-Type': 'application/pdf'
    },
    body: contractFile
  }
);

const { reviewId, status } = await response.json();