All features
🔌

Legal API

Bring Lawwit's Turkish-law AI into your ERP, CLM and internal portals.

Request a Demo Sign In

Companies on the Enterprise plan can use Lawwit's capabilities from their own software. With an organization API key you can search case law and fetch full texts, get sourced answers under Turkish law, turn a contract text into a structured (JSON) risk report and sync the contract repository with your ERP. AI endpoints are charged per token from the same usage balance you use in the panel.

Deep dive

The Legal API brings Lawwit's Turkish-law AI into your company's own software. You can automatically run a contract arriving in your procurement system through risk review, answer employees' legal questions in your internal portal with sourced answers, or keep the contract repository in sync with your ERP.

All endpoints return JSON and are called with an organization API key (Authorization: Bearer). Only organization managers can create keys; the raw key is shown only once, only its hash is stored, and a key can be revoked at any moment. A limit of 60 requests per minute applies per key.

AI endpoints (Q&A and contract review) are charged per token from the same balance you use in the panel; case law search and contract repository endpoints do not consume usage. Calls and consumption are tracked per endpoint in the panel. For organizations in in-house mode, API answers are also generated from the company's perspective.

Example Request: Contract Risk Review

Prompt:
POST /api/v1/contracts/review {"text": "…The Service Provider shall not be liable for any damage even if at fault…", "perspective": "buyer", "language": "en"}

Lawwit:
{"data": {"overall_risk": "high", "key_dates": {"notice_days": 40, "auto_renewal": true}, "risks": [{"clause": "Article 5 - Liability", "severity": "high", "legal_basis": "TBK art. 115", "recommendation": "Cap liability at the contract value and carve out intent and gross negligence."}], "missing_clauses": ["Data processing provisions under KVKK"]}}

Use cases

Procurement and Supply Processes

Run supplier contracts through an automatic risk report before they enter the approval flow.

Employee Self-Service Portal

Answer business units' frequent legal questions with case-law-sourced answers.

ERP / CLM Sync

Push contract records from your ERP to the Lawwit repository and read back notice deadlines.

Key capabilities

Sourced Legal Answers

POST /api/v1/ask — an answer with [n] citations to case law and a source list.

Contract Risk Review (JSON)

POST /api/v1/contracts/review — summary, overall risk, parties, key dates, risky clauses and missing provisions.

Case Law Search

GET /api/v1/emsal and /api/v1/emsal/{id} — search Court of Cassation / Council of State rulings and fetch full text.

Contract Repository Sync

GET/POST /api/v1/contracts — contracts with notice deadlines and days left; add records from your ERP.

Secure Keys

Organization keys are shown only once and stored hashed; managers can revoke them anytime. 60 requests per minute.

How does it work?

1

Create a key

Generate your organization key under Panel → API Access.

2

Send requests

Send JSON requests with the Authorization: Bearer header.

3

Monitor usage

See calls and usage per endpoint in the panel.

Key benefits

Lawwit capabilities are added to your existing workflows without another screen.

Structured JSON output can be used directly in automations.

Keys belong to the organization, are managed only by managers and can be revoked.

Usage is tracked transparently from the same balance as the panel.

Frequently asked questions

Which plan includes the Legal API?

The Legal API is available only on the Enterprise plan. Keys are created by the organization manager under Panel → API Access.

Which endpoints are available?

POST /api/v1/ask (sourced legal answer), POST /api/v1/contracts/review (contract risk review, JSON), GET /api/v1/emsal and /api/v1/emsal/{id} (case law search and full text), GET and POST /api/v1/contracts (contract repository).

How is API usage charged?

Q&A and contract review are deducted per token from the same usage balance as the panel. Case law search and contract repository endpoints are free. If the balance is insufficient, a 402 insufficient_credits error is returned.

Is there a rate limit?

Yes, 60 requests per minute per key. When exceeded, a 429 rate_limited error with a Retry-After header is returned.

Is my data used for AI training?

No. Texts you send via the API are not used for AI training; records added to the contract repository are visible only within your own organization.

Other features

🧠 Legal Counsel (Brain) 📝 Petitions & Contracts 📑 Contract Room 🗂️ Contract Management & Tracking 🔍 Case Law Search ⚖️ Legislation & Statutes

Transform your legal practice today

Let our team walk you through Lawwit on your own firm's files; we are with you from setup to team training.

Request a Demo