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.

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

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 uploaded
  • document.processed - OCR processing completed
  • template.generated - Document generated from template
  • case.created - A new case was created
  • deadline.approaching - Deadline within 48 hours
  • client.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.