API Reference

Embed Lexyfi anywhere

A small REST API for the document analysis pipeline. Bring your own UI; we’ll do the AI heavy lifting.

Endpoints

Full reference coming soon. Until then, here’s the surface area.

POST/v1/documents/parse

Upload a PDF, DOCX, or TXT and receive extracted text.

POST/v1/documents/analyze

Run the multi-agent pipeline. Returns risks, clauses, parties, and a plain-language summary.

GET/v1/documents/{id}

Fetch a previously analyzed document and its analysis.

POST/v1/documents/{id}/sign

Apply an electronic signature and generate a signed PDF.

Auth

Send your API key in the Authorization header as `Bearer sk_…`. Rotate keys from your dashboard at any time.

SDKs

Official SDKs for Node and Python are in private beta. Open a request via integrations@lexyfi.com to get early access.