Integrate contract generation and risk analysis into your product. Available on Pro and Enterprise plans.
All API requests require a Bearer token in the Authorization header:
Authorization: Bearer YOUR_API_KEY
Generate an API key in Dashboard → Settings → API Keys.
https://your-domain.com
/api/v1/generateGenerate a complete legal contract{
"type": "NDA",
"party1": "Acme Corp",
"party2": "TechFlow Inc",
"description": "Software partnership NDA",
"jurisdiction": "Delaware, USA",
"language": "en",
"tone": "formal"
}{
"id": "clx1234...",
"title": "NDA — Acme Corp & TechFlow Inc",
"content": "<h1>NON-DISCLOSURE AGREEMENT</h1>...",
"type": "NDA",
"status": "DRAFT",
"language": "en",
"createdAt": "2026-07-29T10:00:00Z"
}/api/v1/analyzeRun AI risk analysis on a contract{
"content": "<h1>CONTRACT</h1><p>...</p>"
}{
"overallScore": 62,
"overallLevel": "HIGH",
"risks": [
{
"title": "Unlimited Liability",
"description": "No liability cap defined",
"suggestion": "Add liability cap equal to 12 months fees",
"level": "CRITICAL",
"clauseRef": "§4"
}
],
"summary": "This contract heavily favors the Provider...",
"positives": ["Clear IP ownership", "Defined payment terms"]
}/api/ai/summarizeGet plain-English AI summary of a contract{
"content": "<h1>CONTRACT</h1><p>...</p>",
"contractTitle": "Service Agreement"
}{
"summary": {
"overview": "A service agreement between...",
"parties": [{"name": "Acme Corp", "role": "Client"}],
"keyTerms": [{"label": "Duration", "value": "12 months"}],
"financialTerms": [{"label": "Monthly fee", "amount": "$5,000"}],
"redFlags": [{"issue": "Unlimited liability", "severity": "high"}],
"readingTime": 3
}
}/api/webhooks/receiveZapier / Make webhook receiver — log events or query contracts{
"action": "get_contracts",
"payload": { "limit": 5 }
}{
"contracts": [
{
"id": "clx1234...",
"title": "NDA — Acme Corp",
"type": "NDA",
"status": "SIGNED",
"createdAt": "2026-07-29T10:00:00Z"
}
]
}/api/contracts/[id]/approveContract approval workflow — submit, approve, or reject{
"action": "submit_review",
"comment": "Ready for legal review"
}{
"contract": {
"id": "clx1234...",
"status": "IN_REVIEW",
"title": "Service Agreement"
},
"message": "Contract submit review successfully"
}| Plan | Requests/month | Rate limit |
|---|---|---|
| Free | Not available | — |
| Pro | 200 | 60/hour |
| Enterprise | Unlimited | Custom |
Configure webhooks in your dashboard to receive real-time events. All payloads are signed with HMAC-SHA256.
| Event | Description |
|---|---|
| contract.created | Fired when a new contract is created |
| contract.updated | Fired when contract content is updated |
| contract.signed | Fired when all parties have signed |
| contract.analyzed | Fired when AI risk analysis completes |
| signature.requested | Fired when a signature request is sent |
| signature.signed | Fired when one party signs |
| signature.declined | Fired when a signer declines |
import crypto from "crypto";
function verifyWebhook(payload: string, signature: string, secret: string): boolean {
const expected = crypto
.createHmac("sha256", secret)
.update(payload)
.digest("hex");
return crypto.timingSafeEqual(
Buffer.from(expected),
Buffer.from(signature)
);
}