Legal Insights
AI Analysis
Legal Insights
Generate legal-domain insights across a matter or deal - risk analysis, precedent pointers, and workflow recommendations
POST
Legal Insights
Request
Headers
Optional UUID. Deduplicates retries within 24 hours.
Body Parameters
UUID of a matter to analyze. Provide either
matter_id or deal_id.UUID of a deal to analyze.
Optional subset of insight types:
risks, precedents, next_steps, deadlines, counterparty, regulatory. Defaults to all.Optional ISO 3166-1 alpha-2 country code (or EU subdivision) used to scope precedent suggestions. Defaults to the workspace’s default jurisdiction.
Response
X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, and X-Request-ID. Precedent citations are intended as a research starting point and should be independently verified before being relied upon in client work.
Example Response
Errors
| Status | Code | Description |
|---|---|---|
| 400 | validation_error | Missing both matter_id and deal_id, or invalid jurisdiction |
| 401 | invalid_key | Invalid or expired API key |
| 402 | insufficient_credits | Workspace credit balance is exhausted |
| 403 | insufficient_permissions | Missing write:ai permission |
| 404 | not_found | Target entity does not exist |
| 429 | rate_limited | Rate limit exceeded |