- contact@insightcontractsai.com
Configuration, the data it reads and the API behind every screen.
A Python (FastAPI) API, a React app and PostgreSQL. InsightContracts reads the company’s contract systems from a source schema and keeps its matters, clauses, findings, requests, decisions and agent runs in its own schema.
Point CONTRACTS_SOURCE_SCHEMA at your intake requests, contract register and documents, or at views over them.
Your positions per clause and contract type, as rows in playbook_positions, and the approval controls in Rules Studio.
Counsel, the General Counsel and administrators, through the identity service or your SSO.
Set in the environment of the API.
| Variable | What it sets |
|---|---|
INSIGHT_DATABASE_URL, INSIGHT_DATABASE_SCHEMA | PostgreSQL connection and the schema InsightContracts keeps its own work in (default contracts) |
CONTRACTS_SOURCE_SCHEMA | The schema holding the company’s contract systems: intake requests, contracts, documents, amendments, counterparties, the playbook and the obligation log. Read only (default contracts_data) |
AWS_REGION | The region for the language model on Amazon Bedrock; with no model configured, the agents and the copilot run on their rules |
CONTRACTS_AGENTS_LLM, CONTRACTS_AGENT_MODEL | Whether the agents use a language model (0 switches it off), and which |
CONTRACTS_COPILOT_LLM, CONTRACTS_CLAUDE_MODEL | The same for the copilot |
CONTRACTS_AGENTS_MAX_LEVEL | The autonomy ceiling for every agent in the tenant (L2 by default; sending, signing and approving stay a person’s whatever it says) |
CONTRACTS_COMMS_LIVE, CONTRACTS_APP_URL | Whether sending a request emails the counterparty (otherwise a dry run: the sender sends the message), and the address the counterparty’s link points to |
CONTRACTS_CORS_ORIGINS | The web origins allowed to call the API |
The demo builds these tables for a fictional company; a deployment maps them to the company’s own systems.
| Source table | What it holds |
|---|---|
company_profile, people | The company, its contracting entity and its people |
counterparties | Who the company contracts with |
intake_requests | What the business asked for: type, counterparty, paper, personal data, value, needed-by date |
contracts, amendments | The contract register: every contract’s status, family (parent and children) and amendments |
documents | Drafts, executed copies, exhibits and DPAs, as PDF or Word with their text |
playbook_positions | The playbook: preferred, fallback and walk-away rules and language, severity and approver per clause and contract type |
obligation_log | What the business has already recorded as done |
Authenticated with the session’s bearer token; the counterparty request page is the only public route.
| Area | Endpoints (under /api/contracts) |
|---|---|
| Reference and intake | GET /reference, GET /intake, POST /matters, POST /matters/upload |
| Matters | GET /matters, GET /matters/{id}, PUT /matters/{id}/owner, GET /matters/{id}/timeline, POST /matters/{id}/steps/{read|review} |
| Documents and versions | GET|POST /matters/{id}/documents, GET /documents/{id}, GET /documents/{id}/file, GET /matters/{id}/diff |
| Clauses and review | GET /matters/{id}/clauses, GET /matters/{id}/findings, POST /findings/{id}, POST /matters/{id}/memo, GET /playbook |
| Requests | GET|POST /matters/{id}/requests, PUT /requests/{id}, POST /requests/{id}/send, POST /requests/{id}/cancel; the counterparty’s page uses GET|POST /api/public/request/{token} |
| Approval and signature | POST /matters/{id}/submit, POST /matters/{id}/decide, GET /matters/{id}/decision, POST /matters/{id}/signed |
| Repository, renewals and obligations | GET /repository, POST /repository/sync, GET /repository/{contract}, POST /repository/{contract}/renewal, POST /repository/{contract}/renewal-review, POST /repository/{contract}/requests, GET /renewals, GET /obligations, POST /obligations/{id}, POST /obligations/{id}/owner |
Agents (under /api/contracts_agents) | POST /matters/{id}/run, POST /portfolio/run, GET /prepared, POST /prepared/{id}/answer, GET /autonomy, PUT /autonomy/{agent}/level, GET /activity, GET /metrics |
| Rules Studio and health | Approval controls under /api/contracts_rules; readiness at GET /api/ready |