Build powerful integrations with our RESTful API
Everything you need to integrate contract intelligence into your applications
Simple, predictable API design following REST principles
OAuth 2.0 and API key authentication with rate limiting
Official libraries for Python, JavaScript, Ruby, and more
Interactive API explorer with real-time examples
Get started with our API in minutes. Choose your preferred language and start building powerful contract management features into your application.
Sign up and generate your API key from the dashboard
Use our official SDK or make direct HTTP requests
Upload a contract and get AI-powered insights instantly
// Initialize the SDK
const ContractAPI = require('@contractai/sdk');
const client = new ContractAPI('YOUR_API_KEY');
// Upload and analyze a contract
async function analyzeContract() {
const contract = await client.contracts.create({
file: fs.createReadStream('contract.pdf'),
metadata: {
title: 'Vendor Agreement',
category: 'procurement'
}
});
// Trigger AI analysis
const analysis = await client.contracts.analyze(contract.id);
console.log('Risk Score:', analysis.risk_score);
console.log('Key Dates:', analysis.key_dates);
console.log('Obligations:', analysis.obligations);
return analysis;
}Complete reference of all available endpoints
| Method | Endpoint | Description | Parameters |
|---|---|---|---|
| GET | /v1/contracts | List all contracts | pagelimitstatussearch |
| POST | /v1/contracts | Create a new contract | filemetadatatags |
| GET | /v1/contracts/:id | Get contract details | id |
| PUT | /v1/contracts/:id | Update contract | idmetadatastatus |
| DELETE | /v1/contracts/:id | Delete contract | id |
| POST | /v1/contracts/:id/analyze | Trigger AI analysis | idoptions |
| GET | /v1/contracts/:id/insights | Get AI-generated insights | id |
| POST | /v1/search | Search contracts | queryfilterssort |
| GET | /v1/alerts | List all alerts | pagelimittype |
| POST | /v1/webhooks | Create webhook | urleventssecret |
Choose the plan that fits your needs
Our developer support team is here to help you integrate our API successfully