API Reference
Complete reference for all Legistry AI API endpoints.
Base URL
https://api.legistry.ai/api/v1Authentication
All endpoints require a Bearer token unless marked as Public.
Authorization: Bearer YOUR_ACCESS_TOKENResponse Format
All responses return JSON with consistent structure:
Success:
{
"id": "uuid",
"field": "value",
"created_at": "2026-03-08T12:00:00Z"
}Error:
{
"detail": "Human-readable error message"
}Available APIs
| API | Base Path | Description |
|---|---|---|
| Contracts | /contracts | CRUD + AI drafting + analysis |
| Signatures | /signatures | E-signature sending, signing, verification |
| Chat | /chat | RAG AI Q&A over your documents |
| Compliance | /compliance | Regulatory scanning + alerts |
| Vendors | /vendors | Vendor management + risk assessment |
| Analytics | /analytics | Legal spend data + forecasts |
| Documents | /documents | File upload + AI analysis |
| Team | /team | Invitations + member management |
| Integrations | /integrations | Third-party connections |
Pagination
List endpoints support pagination via query parameters:
GET /api/v1/contracts?page=1&page_size=20| Parameter | Default | Max | Description |
|---|---|---|---|
page | 1 | — | Page number |
page_size | 20 | 100 | Items per page |
Status Codes
| Code | Meaning |
|---|---|
200 | Success |
201 | Created |
400 | Bad Request — invalid input |
401 | Unauthorized — missing or invalid token |
403 | Forbidden — insufficient permissions |
404 | Not Found |
429 | Rate Limited |
500 | Internal Server Error |