API Documentation

Complete guide to integrating Legal Document Classifier into your applications

Getting Started

The Legal Document Classifier API allows you to automatically categorize legal documents with high accuracy. Get started in minutes.

Base URL

https://api.legaldocumentclassifier.com

Quick Start

  1. Sign up for an accountto get your API key
  2. Make your first API request to classify a document
  3. Integrate the API into your application workflow

Your First Request

Here's a simple example using cURL to classify a legal document:

curl -X POST https://api.legaldocumentclassifier.com/classify \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "This Service Agreement is entered into between..."
  }'

Response Format

All API responses are returned in JSON format:

{
  "classification": "Service Agreement",
  "confidence": 0.94,
  "categories": [
    {
      "name": "Service Agreement",
      "confidence": 0.94
    },
    {
      "name": "Contract",
      "confidence": 0.87
    }
  ],
  "analysis": "This document appears to be a service agreement..."
}