Legal Summary
The /legal-summary endpoint is designed to analyze and distill lengthy legal documents into concise, accurate summaries. It allows users to extract the most important legal insights.
Endpoint
POST https://api.lawyergptai.cc/v1/legal-summary
✅ Purpose
Summarize long legal documents or agreements
Highlight risks, obligations, and clauses
Translate legal language into plain English
Useful for reviewing contracts, terms of service, privacy policies, and court rulings
Example Request
{
"api_key": "YOUR_API_KEY",
"document": "This Agreement is made on the 30th day of May, 2025, between...",
"language": "en",
"tone": "neutral"
}
Response Example
{
"summary": "This agreement establishes a service contract between two parties starting May 30, 2025. Key clauses include confidentiality, payment terms, and liability limitations.",
"risk_level": "low",
"key_clauses": [
"Confidentiality Clause",
"Termination Rights",
"Limitation of Liability"
],
"language_detected": "en"
}
Parameters
api_key
string
✅ Yes
Your API key
document
string
✅ Yes
Full legal text to summarize
language
string
❌ Optional
Preferred summary language (default: detected language)
tone
string
❌ Optional
Summary tone: "neutral"
, "friendly"
, "formal"
Response Fields
summary
string
Generated legal summary
risk_level
string
Estimated legal risk: "low"
, "medium"
, "high"
key_clauses
array
Highlighted sections of legal interest
language_detected
string
Detected document language
⚙️ Use Cases
Startups reviewing SaaS agreements before signing
Consumers analyzing privacy policies
Law firms pre-processing large amounts of case data
Enterprises vetting vendor terms
Error Codes
400
Invalid document
Text is empty or too short
413
Payload too large
Document exceeds allowed size limit
403
Unauthorized
API key missing or invalid
500
Internal error
Server-side processing issue
Last updated