API Documentation
Programmatic access to Clause Labs AI. Upload contracts, create reviews, and export results via REST API.
Endpoints
9 REST endpoints
Rate Limit
100 req/hour
Tier Required
Team
Getting Started
Authentication
All API requests require an API key in the X-API-Key header. Manage API keys in your dashboard settings.
bash
curl -X GET https://api.Clause Labs.ai/api/v1/contracts \
-H "X-API-Key: cp_live_your_key_here" \
-H "Content-Type: application/json"Key format
cp_live_...
Security
Never expose in client-side code or public repos.
Reference
Available Endpoints
Contracts
POST
/api/v1/contractsGET
/api/v1/contractsGET
/api/v1/contracts/{id}Reviews
POST
/api/v1/reviewsGET
/api/v1/reviewsGET
/api/v1/reviews/{id}POST
/api/v1/reviews/{id}/exportPlaybooks
GET
/api/v1/playbooksBilling
GET
/api/v1/billing/usageLimits
Rate Limits
API requests are limited to 100 requests per hour per API key. Rate limit information is included in response headers:
| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests per hour |
X-RateLimit-Remaining | Remaining requests this hour |
X-RateLimit-Reset | Unix timestamp when limit resets |
Errors
Error Handling
All error responses follow a consistent JSON format:
JSON response
{
"error": {
"code": "INSUFFICIENT_CREDITS",
"message": "Not enough review credits.",
"status": 402
}
}| Status | Meaning |
|---|---|
400 | Bad Request — invalid parameters |
401 | Unauthorized — invalid or missing API key |
402 | Payment Required — insufficient credits |
403 | Forbidden — insufficient permissions |
404 | Not Found — resource does not exist |
422 | Unprocessable Entity — validation error |
429 | Rate Limited — too many requests |
500 | Server Error — contact support |
Ready to integrate?
API access is available on the Team plan. Create API keys in your dashboard settings.
Start with Team Plan