API Documentation
Integrate LegalPrizm's powerful document automation capabilities into your existing workflows. Our RESTful API provides programmatic access to documents, templates, cases, and more.
Getting Started
Everything you need to integrate with LegalPrizm's API.
Base URL
https://api.legalprizm.com/v1
All API requests are made to this base URL. The API uses HTTPS exclusively.
Authentication
Authenticate using Bearer tokens in the Authorization header:
Authorization: Bearer your_api_key
API keys are available in your account settings (Enterprise and Professional plans).
API Capabilities
Access the full power of LegalPrizm programmatically.
Documents
Upload, download, and manage documents. Process documents with OCR and extract structured data.
Templates
Create and manage document templates. Generate documents from templates with variable substitution.
Clients
Manage client records with full CRUD operations. Import and export client data securely.
Cases
Create and manage legal cases. Associate documents, clients, and deadlines with cases.
Calendar
Manage deadlines, court dates, and appointments. Sync with external calendar systems.
Search
Full-text search across documents, clients, and cases. Filter and sort results programmatically.
API Endpoints
Overview of available endpoints. Full documentation available upon API access approval.
Documents
| Method | Endpoint | Description |
|---|---|---|
| GET | /documents |
List all documents |
| GET | /documents/{id} |
Get document by ID |
| POST | /documents |
Upload a new document |
| POST | /documents/{id}/ocr |
Process document with OCR |
| DELETE | /documents/{id} |
Delete a document |
Templates
| Method | Endpoint | Description |
|---|---|---|
| GET | /templates |
List all templates |
| GET | /templates/{id} |
Get template by ID |
| POST | /templates |
Create a new template |
| POST | /templates/{id}/generate |
Generate document from template |
| PUT | /templates/{id} |
Update a template |
Clients
| Method | Endpoint | Description |
|---|---|---|
| GET | /clients |
List all clients |
| GET | /clients/{id} |
Get client by ID |
| POST | /clients |
Create a new client |
| PUT | /clients/{id} |
Update a client |
| DELETE | /clients/{id} |
Delete a client |
Cases
| Method | Endpoint | Description |
|---|---|---|
| GET | /cases |
List all cases |
| GET | /cases/{id} |
Get case by ID |
| POST | /cases |
Create a new case |
| GET | /cases/{id}/documents |
Get documents for a case |
| GET | /cases/{id}/deadlines |
Get deadlines for a case |
Rate Limits
API rate limits vary by plan to ensure fair usage and optimal performance.
Professional
- 1,000 requests per minute
- 100,000 requests per day
- 10 concurrent connections
Enterprise
- 10,000 requests per minute
- Unlimited daily requests
- 100 concurrent connections
- Priority support
Custom
- Custom rate limits
- Dedicated infrastructure
- SLA guarantees
- 24/7 support
Code Examples
Quick examples to get you started with the LegalPrizm API.
List Documents (cURL)
curl -X GET "https://api.legalprizm.com/v1/documents" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json"
Generate Document (cURL)
curl -X POST "https://api.legalprizm.com/v1/templates/123/generate" \
-H "Authorization: Bearer your_api_key" \
-H "Content-Type: application/json" \
-d '{
"variables": {
"client_name": "John Doe",
"case_number": "2025-CV-1234"
}
}'
Webhooks
Receive real-time notifications when events occur in LegalPrizm.
Available Events
document.created- A new document was uploadeddocument.processed- OCR processing completedtemplate.generated- Document generated from templatecase.created- A new case was createddeadline.approaching- Deadline within 48 hoursclient.updated- Client information was modified
All webhook payloads are signed with HMAC-SHA256 for verification. Configure webhooks in your account settings or via the API.
SDKs & Libraries
Official client libraries to accelerate your integration.
JavaScript / Node.js
npm install @legalprizm/sdk
Full TypeScript support included.
Python
pip install legalprizm
Compatible with Python 3.8+
Ruby
gem install legalprizm
Works with Ruby 2.7+
Additional SDKs for C#, Java, and PHP coming soon. In the meantime, use our REST API directly.
Ready to integrate?
Request API access to receive your credentials and full documentation. Our team is ready to help you get started.