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/contracts
GET/api/v1/contracts
GET/api/v1/contracts/{id}

Reviews

POST/api/v1/reviews
GET/api/v1/reviews
GET/api/v1/reviews/{id}
POST/api/v1/reviews/{id}/export

Playbooks

GET/api/v1/playbooks

Billing

GET/api/v1/billing/usage

Limits

Rate Limits

API requests are limited to 100 requests per hour per API key. Rate limit information is included in response headers:

HeaderDescription
X-RateLimit-LimitMaximum requests per hour
X-RateLimit-RemainingRemaining requests this hour
X-RateLimit-ResetUnix 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
  }
}
StatusMeaning
400Bad Request — invalid parameters
401Unauthorized — invalid or missing API key
402Payment Required — insufficient credits
403Forbidden — insufficient permissions
404Not Found — resource does not exist
422Unprocessable Entity — validation error
429Rate Limited — too many requests
500Server 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