Sensifai Platform Integration
RESTful API Reference
Automate toxic clause detection in your legal workflows, HR onboarding, property management portals, and procurement pipelines.
Production Gateways & Authentication
Canonical App Domainhttps://ContractGuard.sensifai.com
Sensifai Gatekeeperhttps://gatekeeper.sensifai.com
Shared Rate Limit800 req / minute budget
POST/api/v1/contractguard/analyze
Analyze Contract Document or TextUpload multipart contract file (PDF, image, audio) or send JSON body to detect toxic clauses and get redlines.
cURL Example:
curl -X POST https://ContractGuard.sensifai.com/api/v1/contractguard/analyze \
-H "X-API-Key: smp_live_..." \
-H "Content-Type: application/json" \
-d '{
"text": "Landlord reserves the right to increase rent unilaterally by 35% with 7 days notice.",
"input_type": "text",
"lang": "en"
}'Sample JSON Response:
{
"id": "req_8f2a1b",
"app": "ContractGuard",
"confidence": 94,
"risk_score": 85,
"result": {
"label": "Residential Lease — CRITICAL RISK DETECTED",
"severity": "critical",
"contract_type": "Residential Lease",
"description": "Detected 1 hazardous provisions that heavily skew legal liability."
},
"toxic_clauses": [
{
"id": "clause_unilateral_escalation",
"clause_title": "Unilateral Price / Rent Escalation",
"severity": "high",
"risk_category": "financial",
"plain_english": "The other party can raise your costs or rent at their sole discretion.",
"recommended_change": "Cap annual increases to local CPI / inflation (max 3-5%) with 60 days written notice."
}
],
"actions": [
"Cap annual increases to local CPI / inflation with 60 days written notice",
"Cap maximum aggregate liability to total fees paid",
"Request written confirmation of redlines before signature"
]
}POST/api/v1/contractguard/analyze-url
Analyze Agreement from Hosted URLAnalyze remote contract images, hosted scanned drafts, or online agreements via direct URL.
cURL Example:
curl -X POST https://ContractGuard.sensifai.com/api/v1/contractguard/analyze-url \
-H "X-API-Key: smp_live_..." \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/agreements/sample_lease.png"
}'POST/api/v1/contractguard/batch
Batch Concurrent Contract AuditScreen an array of contract clauses or documents simultaneously.
cURL Example:
curl -X POST https://ContractGuard.sensifai.com/api/v1/contractguard/batch \
-H "X-API-Key: smp_live_..." \
-H "Content-Type: application/json" \
-d '{
"items": [
"Clause 1: Unilateral rent adjustment...",
"Clause 2: Perpetual IP assignment..."
]
}'POST/api/v1/contractguard/feedback
Submit Clause Accuracy & Correction FeedbackReport model accuracy, lawyer counter-feedback, or false-positive clause detections to refine future models.
cURL Example:
curl -X POST https://ContractGuard.sensifai.com/api/v1/contractguard/feedback \
-H "X-API-Key: smp_live_..." \
-H "Content-Type: application/json" \
-d '{
"report_id": "req_8f2a1b",
"clause_id": "clause_unilateral_escalation",
"feedback_type": "accurate",
"user_notes": "Confirmed predatory rent hike clause by tenant counsel"
}'